I have ASP.NET 2 hosting. I created my first simple WEB application from
Personal WEB Starter Kit template.
Everything works fine on my local machine.
I uploaded all files to the hosting server. Pages which do not use database
work, pages which communicate with the database do not work.
I'm just starting to learn programming and have not enough knowledge to
realize what's wrong. I just suspect that I have to change ConnectionStrin g
in WEB.config file. Now I have there:
<connectionStri ngs>
<add name="Personal" connectionStrin g="Data Source=.\SQLExp ress;Integrated
Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |Personal.mdf"
providerName="S ystem.Data.SqlC lient"/>
<remove name="LocalSqlS erver"/>
<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQLExp ress;Integrated Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |aspnetdb.mdf"/>
</connectionStrin gs>
First of all I do not know what should I put there and I even doubt that
SQLExpress may be used for a real web site.
Any help please
Thank you
Esha
Personal WEB Starter Kit template.
Everything works fine on my local machine.
I uploaded all files to the hosting server. Pages which do not use database
work, pages which communicate with the database do not work.
I'm just starting to learn programming and have not enough knowledge to
realize what's wrong. I just suspect that I have to change ConnectionStrin g
in WEB.config file. Now I have there:
<connectionStri ngs>
<add name="Personal" connectionStrin g="Data Source=.\SQLExp ress;Integrated
Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |Personal.mdf"
providerName="S ystem.Data.SqlC lient"/>
<remove name="LocalSqlS erver"/>
<add name="LocalSqlS erver" connectionStrin g="Data
Source=.\SQLExp ress;Integrated Security=True;U ser
Instance=True;A ttachDBFilename =|DataDirectory |aspnetdb.mdf"/>
</connectionStrin gs>
First of all I do not know what should I put there and I even doubt that
SQLExpress may be used for a real web site.
Any help please
Thank you
Esha
Comment