VS2005: Cannot run the website from IIS (database problem)

T

TTT

Hi,

I have developed a website from the model "Starter kits Classified". Well,
the application works good, no problem in my development environment. It
uses a SqlServer 2005 express database (using *.MDF files).

But, when i try to copy it to a IIS website, it dosent work.
- I created a website called "MyApp" under IIS (windows xp pro)
- I copied all the files from my "Visual Studio Express 2005 Web dev" to the
IIS/Default website/MyApp (files in c:\inetpub\wwwroot\MyApp)
- I setup ASP.NET config : ASPNET v2.0, default page = Default.aspx, Runtime
login = ASPNET (without admin rights), Windows integrated authentification
activated.

Results : the login page (login.aspx) works, but it doesnt connect.
It seems that the ASPNET user cannot connect to the Sql server database.
For me it's a mater of access rights to SqlServer 2005 from IIS.

Any ideas to help me please?
Thank you !
 
C

Cowboy \(Gregory A. Beamer\)

As long as SQL Express is also installed on the machine, then you are
probably right that it is a access problem (I say that rather than access
rights as there is a prime reason for failure that is not "rights" based).

Check and make sure you have a protocol other than in memory (configuration
tool). That will cure most problems. In some instances, you also have to
turn on SQL Browser. That cures another group. In some instances, you will
also have to add users to SQL Server and give rights to the database, as
well.
 
T

TTT

As long as SQL Express is also installed on the machine, then you are
probably right that it is a access problem (I say that rather than access
rights as there is a prime reason for failure that is not "rights" based).

Check and make sure you have a protocol other than in memory
(configuration tool). That will cure most problems.
I dit it
In some instances, you also have to turn on SQL Browser. That cures
another group.
I did it also..
In some instances, you will also have to add users to SQL Server and give
rights to the database, as well.
How to do it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top