Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!!
I have published an application and hosted it on IIS. Now if i am trying to see some report then i am allowed to do that but when i try to enter some data nothing happens. Application shows me that data is successfully saved but data is not saving into the database from my computer when running iis or from someone else's computer when he/she is accesing the application. It like that we have read permission but not write permission.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) 
Posted
Updated 20-Jul-12 0:03am
v2
Comments
k@ran 20-Jul-12 6:08am    
try to check ur connection string ... or use sql server 2008 instead
ujjwal uniyal 20-Jul-12 6:14am    
I am using sql-server 2008
bbirajdar 20-Jul-12 6:17am    
Contact your network administrator
Sandeep Mewara 20-Jul-12 6:35am    
Connection string? database server accessible from your web server?
ujjwal uniyal 20-Jul-12 6:39am    
yeah. it is accessible from IIS . i am able to read data. At first i set identity of process modal to local system then this problem was comming. when i set it to network service and gave permission to NT Authority \ Network service the too the same problem persists. data that i am entering using the data entry froms is no saving in the database alothough the application says that i has been stored as stored procedures executed without error.

1 solution

It means what it says. Your site can't connect to SQL Server, you need to check your connection string and your network set up.
 
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