January 3, 2010 at 1:57 pm
hi
i build a web application with local sql database and linq to sql in visual studio 2008.
i configure my application in my iis 7 with windows 7 and SQL 2005.
the problem is when the application run, the first page is authentication page with the database, when i entered my user name and password
i getting an error message "Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances."
someone can please help me?
January 3, 2010 at 3:13 pm
amon 68987 (1/3/2010)
hii build a web application with local sql database and linq to sql in visual studio 2008.
i configure my application in my iis 7 with windows 7 and SQL 2005.
the problem is when the application run, the first page is authentication page with the database, when i entered my user name and password
i getting an error message "Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances."
someone can please help me?
Windows 7 is IIS 7.5 not IIS 7 in IIS 7.5 click on features view of your application and click on connection string you may see two connection strings remove SQL Server Express connection string added by VS2008. and refresh. If you are a web developer you need to spend time with applicationhost.config file in system 32.
Kind regards,
Gift Peddie
January 3, 2010 at 3:52 pm
hi, thanks alot for the reply
you right, there are two DB and i remove the SQL from the list and i left my web application DB, i refresh and i still recieve the same messege.
there is another thing that you can suggest me?
January 3, 2010 at 5:42 pm
amon 68987 (1/3/2010)
hi, thanks alot for the replyyou right, there are two DB and i remove the SQL from the list and i left my web application DB, i refresh and i still recieve the same messege.
there is another thing that you can suggest me?
Then you need to check your Web.Config to make sure your database definition and Connection String is not pointing to SQL Server Express and UserInstance because you can only use userInstance in SQL Server Express.
Kind regards,
Gift Peddie
January 4, 2010 at 2:28 am
hi, my database name that i created with visual studio is "MsnDB", and this is my connection string in web.config:
<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="MsnDBConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MsnDB.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
now, what exacly i should do?
appriciated your help
January 4, 2010 at 7:46 am
amon 68987 (1/4/2010)
hi, my database name that i created with visual studio is "MsnDB", and this is my connection string in web.config:<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="MsnDBConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MsnDB.mdf;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
now, what exacly i should do?
appriciated your help
The question is why? the reason the above is a valid connection string for SQL Server Express with UserInstance if you are not running SQL Server Express post again so I can give you a valid connection string. The other option you could create one at the top of VS2008 create a connection and copy the connection string that is the connection to your database.
Kind regards,
Gift Peddie
January 4, 2010 at 1:26 pm
no i don't, i installed the SQL server only for solution but i gonna uninstall the SQL.
so now i onlt with my visual studio and iis.
January 4, 2010 at 1:47 pm
amon 68987 (1/4/2010)
no i don't, i installed the SQL server only for solution but i gonna uninstall the SQL.so now i onlt with my visual studio and iis.
Please explain because Visual Studio generally adds SQL Server Express during installation there is no reason to remove it just remove the connection string and add the one you manually created.
Kind regards,
Gift Peddie
January 4, 2010 at 3:36 pm
ok, i mean that in additional to visual studio installation, i install SQL server express 2005 because i wanted to resolve my problem.
now, i uninstalled SQL server express 2005 and there's only the components that install with visual studio.
i hope that i was clear anough
January 4, 2010 at 4:53 pm
amon 68987 (1/4/2010)
ok, i mean that in additional to visual studio installation, i install SQL server express 2005 because i wanted to resolve my problem.now, i uninstalled SQL server express 2005 and there's only the components that install with visual studio.
i hope that i was clear anough
So what version edition of SQL Server 2005 are you connecting to in your application?
Kind regards,
Gift Peddie
Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply