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!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 5/31/2007 1:08:30 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
deanh
Asp.Net User
Trouble with Classifieds Starter Kit after changing to SQL 20005/31/2007 1:08:30 PM

0/0

I have successfully gotten the DB on to our SQL 2000 Server and also use Windows Authentication for the Login since this will be going on our Intranet.  My problem is when I try to post an ad I keep getting this error: 

A user instance was requested in the connection string but the server specified does not support this option.
Changed database context to 'master'.
Changed language setting to us_english.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error:

The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:

  1. If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
  2. If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
  3. Sql Server Express must be installed on the machine.
  4. The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.

I have successfully changed the connection string to our SQL 2000 server and am able to bring up the initial page.  I have looked through all the code until I can see it in my sleep.  Can someone please help me?  I am missing something but just can't seem to find it.

Thank you in advance for any help you can provide

deanh
Asp.Net User
Re: Trouble with Classifieds Starter Kit after changing to SQL 20005/31/2007 2:30:09 PM

0/0

Once again, writing down the problem and walking away from the computer for a little bit helped me fix my own problem.  I had to edit the ASP.NET configuration through IIS Manager to change the db from pointing to the ASPNETDB.MDF to my SQL 2000 Server.  This has fixed the SQL Express error in previous post but has led to new error.  New error is this: 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_Ads_Members'. The conflict occurred in database 'Classifieds', table 'classifieds_Members', column 'Id'.
The statement has been terminated.

Now to fix this one and I should be good to go.  If anyone has any clue as to why this would happen I would like to hear it.  Also FYI, I put the aspnet table into the Classifieds db so I only have to deal with one db vs two...

Thanks

Dean

Avatar
Asp.Net User
Re: Trouble with Classifieds Starter Kit after changing to SQL 20006/1/2007 12:26:54 AM

0/0

Hi Dean,

I am trying to use the Classifieds Starter Kit with Sql Server 2005, could you possibly provide me the details how you connected up with SQL 2000.

Thanks,

Martin

deanh
Asp.Net User
Re: Trouble with Classifieds Starter Kit after changing to SQL 20006/4/2007 4:51:09 PM

0/0

Avatar:

Hi Dean,

I am trying to use the Classifieds Starter Kit with Sql Server 2005, could you possibly provide me the details how you connected up with SQL 2000.

Thanks,

Martin

 Martin,

My issues have been numerous since starting to use this product.  But each day a little progress is made.  To get things to work right with SQL 2000, you need to run two of the sql scripts that are in the App_Data directory of your site.  The classifieds-add.sql and the classifieds-categories.sql files need to be run on your SQL server.  After that you need to run the aspnet_regsql.exe that is located in the Windows/Microsoft.NET/Framework/v2.0.50727 directory of your SQL Server (or WINNT) if your are running Windows 2000 or earlier.  When you run the aspnet_regsql file be sure to change the database you are running it against.  I recommend keeping everything in one db for ease of maintenance.  So I ran mine against my Classifieds DB.  After that you just need to change your connection string in the web.config file to point to your SQL 2000 server.  Here is an example of mine:

<connectionStrings>
  <add name="classifiedsConnection" connectionString="Data Source=ServerName;Initial Catalog=DBname;UID=UserID;PWD=Password" providerName="System.Data.SqlClient"/>
 </connectionStrings>

Now this could lead to additional errors if you are trying to run this on an Intranet and using Windows Authentication.  That is where my problem is now.  But hopefully someone will reply to my post from 1 Jun 07 asking for help on that issue.

Hope this helps

Dean

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


Free Download:


Web:
Trouble with Classifieds Starter Kit after changing to SQL 2000 ... Trouble with Classifieds Starter Kit after changing to SQL 2000. Last post 06-04 -2007 12:51 PM by deanh. 3 replies. Sort Posts: ...
Personal Site Starter Kit - Starter Kits and Source Projects Browsing this forum, I read a few of you ask how to modify the starter kit to use webspace for picture storage instead of SQL Server. ...
Sue's edream | Blog Article | Deploy starter kit to remote host Usually your host company will provide MS SQL Server 2000 or 2005 with ..... Using club starter kit sql2005 on a remote host Using a gridview with update, ...
microsoft server appliance kit 2.0 add-on pack Resources ... The IT Hiring Kit for SQL Server Database Administrators will help you ... This starter kit demonstrates how to build a line-of-business Microsoft ASP. ...
Installation Failure! Please help - ng.asp-net-forum ... And you downloaded the classifieds starter kit file "class.vsi" ... How to specify a strong SA password when you install SQL Server 2000 . ...
Jeremy Wadsworth | Guestbook I would like to extend my Classified StarterKit Kit along with your Personal Starterkit. ... Do you have SQL 2000 script of you DB. Thanks for your help. ...
dopefly dot com - The Dopefly Tech Blog It turned out the only thing Ray's app was good for, was a starter kit on the database .... I don't have direct SQL access to the server (SQL Server 2000), ...
.NET ASP Page 66 - Bytes Site Map NET worker process after recompilingmy ASP.NET webservice? .... Classifieds Starter Kit · ASP.NET 2.0 C# XML Comment Documentor · Regular expression, ...
ASP Net [Archive] - Page 242 NET TABLE VIEW STATE · Exporting Excel Data To SQL 2000 through asp.net · how do I make a Web service proxy understand an HTTP refresh page? ...
Database Woes - ASP.NET Forums After that you then need to create the aspnetdb by running the aspnet_regsql utility. .... With db SQL Server 2000 step1. create db classifieds ...




Search This Site:










an icon for each category

classifieds sub menu

problems opening the starter kit

top level menus vs sub menus

how to add new column in ads table

validating the css

adding icon to category

error uploading photos

show ad modification

cannot connect to remote sql server database (only local). why?

column overflow

connecting to local host/default .aspx

anyone got it working on godaddy?

remember me next time

help needed with configuration error

slideshow - cycle through pictures

codebehind

cant post an add.

where do i start?

csk installation on sql server 2005/ visual studio 2005

search function, dos not search with username

how to change the pages to more than 4 in search.aspx

repeater control for categories

adding a text box

increase the size of photos

virtual directory error

need help with the web.config

classifieds site starter kit admin access

sending email trouble (web.config)

formatting of user entered text

  Privacy | Contact Us
All Times Are GMT