Click here to Skip to main content
15,887,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello there,

I made a website using Web developer and SQL Express 2k8, later i Switched to SQL Enterprise edition ten i just made a littele change in machine.config file and website was runing smoothly but wen i tried to run the website using IIS 5.1 it gives me following error

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:......

is it bcoz i have made website using .NET 3.5 and my IIS have 2.0??

Thanks in advance
Posted

Here's an idea - why don't you install .Net 3.5 and see if that fixes it... However, that sounds more like a SQLServer error to me.

Did you upload the database specified in the connection string to the server?

BTW, wouldn't it be better to create a web service and use that instead of using a direct connection to your database from the web page?
 
Share this answer
 
v4
Comments
alchemist_NKJ 31-Jul-11 16:13pm    
Thanks for your time John,
I Installed .net 3.5 but in My IIS it is still showing 2.0 and have uploaded the same database specified in Connection String.

as of Web service,i was going through this web service concept(i had no idea) but i dont think i have enough time to start working on that :(

I can guess it is because of of config file(machine.config or web.config) but i am not able to find out.
Abhijit Jana 31-Jul-11 17:24pm    
If you installed .NET 3.5, your IIS will still show 2.0, because 2.0 is the CLR version which is targeted for FW 3.5 . If you installed .NET 4.0 , you will see 2 option, 2.0 and 4.0 because .NET 4.0 targeted to CLR 4.0.

Coming to you problem, did you try with registering your IIS with APS.NET using aspnet_regiis - i command ?
In addition to the solution what is given by John, take a look at this discussion.Is possible to work with IIS 5.1 and .NET Framework 3.5?[^]
 
Share this answer
 
Thanks Everyone,Finally it is running on the IIs

For that above problem i changed the user instance in machine.config file to false then that problem was solved but then iis was showing a new error

login failed for MACHINENAME\ASPNET:---

For that i created a user account in SQL server and Granted some permission and ......then i was a free man.. :D

would be haapy to assist if anyone having same kind of problem..

once again Thanks Guys for your time :)
 
Share this answer
 
Comments
Wonde Tadesse 1-Aug-11 7:24am    
Nice to hear.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900