Published Web Site Issue

J

jrcapp

On my machine I am developing a .NET site. When I execute it,
everything runs perfectly. When I publish it (to my machine in a
folder so IIS can access it), I get a SQL error:

"Login failed for user '(null)'. Reason: Not associated with a trusted
SQL Server connection"

I know what the error means, but I don't understand why I'm getting
this on the published site and not when I run/execute the site from
Visual Studio 2005.

Any ideas?

Thanks!
Jeremy
 
S

Siva M

The Windows user account used by IIS is not added to the SQL Server. Perhaps,
if you do it, the error should disappear. If you are using IIS 6, make sure
the IIS app pool account is added to the SQL Server.

HTH.
 
J

jrcapp

I will give that a try. Though, I don't understand why it matters
because I'm using a specific username/password in my connection string
in the code.
 
J

jrcapp

Oh, I forgot to mention that the SQL database is on a separate
development machine. I don't know if that would matter or not.
 
J

jrcapp

Ok, i ended up changing "Integrated Security=True" to "Integrated
Security="False" and it worked. But now I'm having issues where the
Web site appears, but the AJAX controls aren't showing up on the site.
I do have the AJAX Extensions installed on the server.
 
S

Siva M

Integrated security change has nothing to do with AJAX. I guess the problem
could be with data access/permissioning.
 

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

Top