Click here to Skip to main content
13,054,615 members (59,441 online)
Rate this:
 
Please Sign up or sign in to vote.
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 19-Jul-12 23:37pm
Updated 20-Jul-12 0:03am
v2
Comments
mrinalkumarjha@ymail.com 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
aspnet_regiis 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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 20 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100