Click here to Skip to main content
15,883,763 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

When I am using the file system, the connection string is working fine.
When I am using the http virtual directory I am getting the exception "the login failed".

How can I solve the problem?
Posted
Updated 16-Nov-10 22:08pm
v2
Comments
Dalek Dave 17-Nov-10 4:08am    
Edited for Readability and Grammar.
Sandeep Mewara 17-Nov-10 4:16am    
Sounds like some impersonation/configuration thing.

Make sure the credentials provided in web.config for connecting to the database are correct.

Also check the vrtual directory seetings by right click on Virtual directory present in IIS Manager, then click on directory security and then click on edit button. Check the settings there are proper or not :)
 
Share this answer
 
I think u might haven't supplied userid and password in connectionstring in web config instead of that u might have provided trusted connection =true.
This is not applied in IIS.
So ,If u haven't supplied userid and password then put it.
It will not give any error.
 
Share this answer
 

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