Click here to Skip to main content
15,921,203 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
When I create a website in VS2005 and run it, then it is running on the port and it is connecting to remote sql server.
But when I create Virtual directory in IIS and try to run my website it is not connecting to remote sql server.
Can anyone help me out?
Posted
Updated 19-Jan-11 1:08am
v2
Comments
m@dhu 19-Jan-11 7:08am    
No need to add code block for the text.
Rajesh Anuhya 19-Jan-11 7:43am    
what is the error message you are getting
?

Check for which may be the cause.
Check IIS settings for your website. In your website properties, make sure that the checkboxes 'Anonymous access' and 'Integrated Windows authentication' are checked under 'Anonymous access and authentication control' section in 'Directory Security' tab.

from here[^]
 
Share this answer
 
Comments
Minaxi 4m India 19-Jan-11 7:32am    
Thanks 4 ur reply. I tryed this but still nt it cnt access..
Hi Minaxi,


First of all trying to run simple aspx page without database connection.

Than connect with with your local server (Change connection string)
Than after connect to remote server database.


See error and trying to search that error into search angin.
 
Share this answer
 
When i switched to SQL Server 2003, i faced no problem with the same code..

Thanks 2 all who tried 2 solve my problem.
 
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