CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting
3 Months Free and Free Setup - ASP.NET Web Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 9/7/2006 8:53:27 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 22 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
jaswalters
Asp.Net User
I'm almost there...One little issue can someone help9/7/2006 8:53:27 PM

0

This is what I have done.

1. Created the Classifieds database on remote sql in my intranet

2. Created the Membership database on remote sql in my intranet

Modified web.config to account for remote hosting of databases. My complete web.config is below at bottom:

The problem is that I can access the site fine but if you try to register on the site after you click finish when registering you get the error below
I'm not sure why it's saying empty when I have created a connection string called "LocalSqlServer"

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The attribute 'connectionStringName' is missing or empty.

Source Error:

Line 52: 			<providers>
Line 53: 				<clear/>
Line 54: 				<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringname="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
Line 55: 			</providers>
Line 56: 		</membership>

I assume something is wrong in my config file but cannot figure it out.

 

 

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
 <connectionStrings>
  <add name="classifiedsConnection" connectionString="Data Source=servername\serverinstance;Initial Catalog=Classifieds;Integrated Security=True;User ID=domain\username;password=password;"/> 
  <remove name="LocalSqlServer"/>
  <add name="LocalSqlServer" connectionString="Data Source=servername\serverinstance;database=membership;user id=domain\user;password=password"/>
 </connectionStrings>
 <location path="Admin">
  <system.web>
   <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
 <location path="PostAd.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="EditPhotos.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="MyAds.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="MyProfile.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <system.web>
  <authorization>
   <allow roles="Administrators" />
  </authorization>
  <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
  <pages styleSheetTheme="Red"/>
  <authentication mode="Forms"/>
  <membership>
   <providers>
    <clear/>
    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringname="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
   </providers>
  </membership>
  <profile enabled="true">
   <properties>
    <add name="FirstName" type="System.String"/>
    <add name="LastName" type="System.String"/>
    <add name="MemberId" defaultValue="0" type="System.Int32"/>
    <group name="Core"/>
   </properties>
  </profile>
  <roleManager enabled="true"/>
  <siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true">
   <providers>
    <clear/>
    <add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
   </providers>
  </siteMap>
 </system.web>
 
 <system.net>
  <mailSettings>
   <smtp>
    <network host="yourSMTPhostname" port="25" defaultCredentials="true" userName="enterUserNameHereIfRequired" password="enterPasswordIfRequired"/>
    /&gt;
   </smtp>
  </mailSettings>
 </system.net>
</configuration>

 

jspeigner
Asp.Net User
Re: I'm almost there...One little issue can someone help9/11/2006 3:57:10 AM

0

This May help you, with out having a copy of the actual connection string that your server should supply this is about as much help as I can give. You will need two connection strings, one for membership and one for you db.  Take a look at the following web.config. I have modified it to run the membershipdp and the regular db from one database similar to what you would need to use with a live site.

This is assuming that you already have a database setup with both membershipdb and regulardb in the same datebase.

A couple other settings have been changed to my personal liking! Like the removal of having to use non-alphanumeric characters in your password when you register. After all, we are not protecting any top secret government stuff or anything. I like to make it as easy as possible for people to register.

 

<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
 <location path="Admin">
  <system.web>
   <authorization>
    <allow roles="Administrators"/>
    <deny users="*"/>
   </authorization>
  </system.web>
 </location>
 <location path="PostAd.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="EditPhotos.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="MyAds.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <location path="MyProfile.aspx">
  <system.web>
   <authorization>
    <deny users="?"/>
   </authorization>
  </system.web>
 </location>
 <system.web>
  <customErrors defaultRedirect="Error.aspx" mode="RemoteOnly"/>
  <pages styleSheetTheme="Red"/>
  <authentication mode="Forms"/>

 

 

 

<membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15" hashAlgorithmType="">

<providers>

<clear/>

<add connectionStringName="membershipdb"

enablePasswordRetrieval="false"

enablePasswordReset="true"

requiresQuestionAndAnswer="true"

applicationName="/"

requiresUniqueEmail="true"

passwordFormat="Hashed"

maxInvalidPasswordAttempts="5"

passwordAttemptWindow="10"

passwordStrengthRegularExpression=""

minRequiredPasswordLength="5"

minRequiredNonalphanumericCharacters="0"

name="AspNetSqlMembershipProvider"

type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

</providers>

</membership>

 

 

 

  <profile enabled="true">
   <properties>
    <add name="FirstName" type="System.String"/>
    <add name="LastName" type="System.String"/>
    <add name="MemberId" defaultValue="0" type="System.Int32"/>
    <group name="Core"/>
   </properties>
  </profile>
  <roleManager enabled="true"/>
  <compilation debug="true"/>
  <siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true">
   <providers>
    <clear/>
    <add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
   </providers>
  </siteMap>
 </system.web>

 


<connectionStrings>                        

<add name="classifiedsConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

<add name="membershipdb" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

</connectionStrings>

 

 

 <system.net> 

 <mailSettings>
   <smtp>
    <network host="yourSMTPhostname" port="25" defaultCredentials="true" userName="enterUserNameHereIfRequired" password="enterPasswordIfRequired"/>
   </smtp>
  </mailSettings>
 </system.net>
</configuration>

 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Obsessive-compulsive Disorders: A Complete Guide to Getting Well and Staying Well Authors: Fred Penzel, Pages: 448, Published: 2000
The Beatles Anthology Authors: Beatles, Beatles, Brian Roylance, Paul McCartney, John Lennon, George Harrison, Ringo Starr, Pages: 368, Published: 2000
Shantaram: A Novel Authors: Gregory David Roberts, Pages: 936, Published: 2004
Book of the Dead Authors: Patricia Daniels Cornwell, Pages: 405, Published: 2007
Living at the Edge of the World: How I Survived in the Tunnels of Grand Central Station Authors: Tina S., Jamie Pastor Bolnick, Pages: 304, Published: 2001
The Good Neighbor Guidebook for Colorado: Necessary Information and Good Advice for Living in and Enjoying Today's Colorado Authors: Nancy S. Greif, Charles Wilkinson, Erin J. Johnson, Pages: 274, Published: 2000
The Year's Best Science Fiction: Twenty First Annual Collection Authors: Gardner Dozois, Pages: 704, Published: 2004
Substance Abuse: A Comprehensive Textbook Authors: Joyce H. Lowinson, Pedro Ruiz, Robert B Millman, John G. Langrod, Pages: 1421, Published: 2004

Web:
I'm almost there...One little issue can someone help - ASP.NET Forums I'm almost there...One little issue can someone help. Last post 09-10-2006 11:57 PM by jspeigner. 1 replies. Sort Posts: ...
Linux.com :: Google Gadgets for Linux -- almost there -h, --help Print this message and exit. Gadgets: Can specify one or .... but running into a few issues with gadgets that display a webpage. ...
EdZachary!: Make Free iPhone Ringtones using iTunes 7.5 I had the same issue on one of my macs ... an old G4 powerbook. ...... can someone please help? I have a newer iPhone , I'm trying to dl something like ...
FreeBSD 7 Install Almost There But 1 Issue - MindTouch Developer ... I'm still working the issue and when I get it going I'll ... Anyone working on FreeBSd and Deki ping me if you need help or can offer help. ...
Achenblog One of the reasons we don't visit them [in SW Pennsylvania] with Little Bean ..... (Can someone help me clarify this?) I'm not sure the taxpayers want to ...
Linux.com :: Google Gadgets for Linux -- almost there -h, --help Print this message and exit. Gadgets: Can specify one or more Desktop Gadget ... After GGL starts, a little icon appears in the system tray. ...
I think I’m almost there « Simply Stitching I think I’m almost there. September 21, 2008 · 28 Comments ... I’ve charted it out and added little elements to fill in the gaps (this has been SO much fun! ...
How To Become A Hacker (There is one apparent exception to this. Hackers will sometimes do things that may seem .... You can find BSD Unix help and resources at www.bsd.org. ...
Achenblog And fear is an emotion that can overwhelm reason. There isn't one pundit in .... will help cut down on trolls and spammers, but otherwise should have little ...
Dr. Almost there We've all been there right? You work and toil and obsess over one little thing, ... For me these problems seem to always be solved by either someone ...

Videos:
"All Marketers are Liars" - Seth Godin speaks at Google Seth Godin is the author of six bestsellers, including Permission Marketing, an Amazon Top 100 bestseller for a year and a Fortune Best Business Book...
An Autumn Walk in the Dreamland - Part 1 First part of the true walk in this wonderful place, its streets, houses, the people on their working place, inside the families and their perception...
Full Focus: Oscar Preview; La Jolla Eruv Debate 3-1-06 If you consider yourself a 'movie buff' you probably know the Academy Awards are right around the corner. On Wednesday, two local film critics talk a...
Charlie Rose - Women's Health Issues / Tyler Perry Segment 1: Guest Host Robert Bazell of NBC discusses the latest in women's health issues with Frances Visco of the National Breast Cancer Coalition, ...
PBS Free to Choose 1990 Vol. 1 of 5 - The Power of the Market Free to Choose 1990 Volume 1 - The Power of the Market Topic: The Power of the Market to Promote Prosperity and Freedom ABSTRACT Dr. Friedman sta...
Comparing American and Chinese Negotiation Styles Google TechTalks August 24, 2006 Terry Hird, UC Berkeley, Founder of Negotiation-International, has over 25 years of international business and nego...
Charlie Rose - An Exclusive Hour with Warren Buffett and Bill and Melinda Gates An exclusive hour-long conversation about a new partnership in philanthropy with Warren Buffett and Bill and Melinda Gates.
Our Lives, Our Facebooks Google TechTalks May 3, 2006 Fred Stutzman Fred Stutzman is a Ph.D. student at the University of North Carolina at Chapel Hill's School of Informati...
Charlie Rose - E.O. Wilson & James Watson on Charles Darwin An hour on the life and work of Charles Darwin with James Watson, chancellor, Cold Spring Harbor Laboratory, and E.O. Wilson, professor emeritus, Har...
Charlie Rose - Lee Scott, CEO of Wal-Mart An in-depth conversation with Lee Scott, the CEO of Wal-Mart, the world’s largest retailer. Lee speaks openly about the challenges facing the future...












where is the subcategory table? i am trying to implement a multiple dropdown

i have successfuly extended the starterkit, including more fields in ad, createuserwizard, etc, read more !

my css is a mess

showing price as £poa and actual price £25.00

classifieds site starter kit

giving approval to site postings

classified ad page not working

query to return multiple categories

are there any themes? or can someone make me one for a small amnt?

help with featured ads - only one featured ad

application_start

i customized classifieds starter kit and extended it!

remote connection problems - authentication mode

not properly closed connections in csk???

advanced search bug

combined databases remote server error

different questions for different categories

forget username

enhancing the description box

classifieds site starter kit - sitemapdatasource

visual studio web developer and related

is there a way to hide price text box

need help step by step asap

trouble with classifieds starter kit after changing to sql 2000

featured ads

respond to ad........

forget password component

how to make another db class like adsdb which connects to sql server

newbie in need of help with classified starter kit...permissions issue?

email technique

   
  Privacy | Contact Us
All Times Are GMT