Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET IIS VB.NET
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 20-Jul-12 0:37am
Edited 20-Jul-12 1:03am
v2
Comments
mrinalkumarjha@ymail.com at 20-Jul-12 6:08am
   
try to check ur connection string ... or use sql server 2008 instead
ujjwal uniyal at 20-Jul-12 6:14am
   
I am using sql-server 2008
aspnet_regiis at 20-Jul-12 6:17am
   
Contact your network administrator
Sandeep Mewara at 20-Jul-12 6:35am
   
Connection string? database server accessible from your web server?
ujjwal uniyal at 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
0 Sergey Alexandrovich Kryukov 340
1 OriginalGriff 250
2 DamithSL 170
3 Kornfeld Eliyahu Peter 130
4 Peter Leow 95
0 OriginalGriff 7,315
1 DamithSL 5,199
2 Sergey Alexandrovich Kryukov 4,917
3 Maciej Los 4,866
4 Kornfeld Eliyahu Peter 4,514


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 20 Jul 2012
Copyright © CodeProject, 1999-2014
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