473,761 Members | 9,864 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 deployment (w/ SQL Srvr 2005) error

I have the following setup:
1. ASP.NET 2.0 web app hosted on a web server (inetpub directory
hosting physical files of the web site on a different drive name, E:
than the SQL Server Instance, which is on C:)
2. SQL Server on the same server, with security settings enabling
ASPNET group and groups containing users allowed to interact with the
website added to SQL Server Instance security settings.
3. Impersonation = true, i.e. ASPNET worker process will impersonate
the user who has been authenticated by IIS

I am continiously getting this error:
=============== =========
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)
The stack trace and event log is at the end of this post.
I tried the following:
1. enabled TCPIP and Pipes for remote connection via the SQL Server
Configuration Manager
2. enabled remote and local connections via the SQL Surface area
Configuration (TCPIP and named pipes)
3. totally disabled the firewall (even if it is enabled, both the
sqlbrowser, and sqlserver are added as exceptions)
4. enabled the SQL Server Browser Service (to start automatically)
I've tried doing everything i came across on the net.
Nobody seems to have a solution but a lot of people have encountered
this problem.
If anybody out there does have a solution, PLEASE reply to this post.
Thanking you in advance
Part of the stack trace:
--------------------------------
[SqlException (0x80131904): An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this
failure may be caused by the fact that under the default settings SQL
Server does not allow remote connections. (provider: SQL Network
Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.Sql Client.SqlInter nalConnection.O nError(SqlExcep tion
exception, Boolean breakConnection ) +734995
System.Data.Sql Client.TdsParse r.ThrowExceptio nAndWarning(Tds ParserStateObje Â*ct
stateObj) +188
System.Data.Sql Client.TdsParse r.Connect(Boole an& useFailoverPart ner,
Boolean& failoverDemandD one, String host, String failoverPartner ,
String protocol, SqlInternalConn ectionTds connHandler, Int64
timerExpire, Boolean encrypt, Boolean trustServerCert , Boolean
integratedSecur ity, SqlConnection owningObject, Boolean aliasLookup)
+820
System.Data.Sql Client.SqlInter nalConnectionTd s.OpenLoginEnli st(SqlConnectio Â*n
owningObject, SqlConnectionSt ring connectionOptio ns, String
newPassword, Boolean redirectedUserI nstance) +628
System.Data.Sql Client.SqlInter nalConnectionTd s..ctor(DbConne ctionPoolIdenti Â*ty
identity, SqlConnectionSt ring connectionOptio ns, Object providerInfo,
String newPassword, SqlConnection owningObject, Boolean
redirectedUserI nstance) +170
System.Data.Sql Client.SqlConne ctionFactory.Cr eateConnection( DbConnectionOpt Â*ions
options, Object poolGroupProvid erInfo, DbConnectionPoo l pool,
DbConnection owningConnectio n) +130
System.Data.Pro viderBase.DbCon nectionFactory. CreatePooledCon nection(DbConne Â*ction
owningConnectio n, DbConnectionPoo l pool, DbConnectionOpt ions options)
+28
System.Data.Pro viderBase.DbCon nectionPool.Cre ateObject(DbCon nection
owningObject) +424
System.Data.Pro viderBase.DbCon nectionPool.Use rCreateRequest( DbConnection
owningObject) +66
System.Data.Pro viderBase.DbCon nectionPool.Get Connection(DbCo nnection
owningObject) +496
Part of the Event Log (Application)
------------------------------------------------
Process information:
Process ID: 5600
Process name: w3wp.exe
Account name: EUSRCMW309\IWAM _EUSRCMW309
Exception information:
Exception type: SqlException
Exception message: An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this
failure may be caused by the fact that under the default settings SQL
Server does not allow remote connections. (provider: SQL Network
Interfaces, error: 26 - Error Locating Server/Instance Specified)
Request information:
Request URL: http://138.85.90.253/psdb/main.aspx
Request path: /psdb/main.aspx
User host address: 138.85.90.253
User: EAMCS\EUSJESadm
Is authenticated: True
Authentication Type: Negotiate
Thread account name: EUSRCMW309\IWAM _EUSRCMW309

May 4 '06 #1
1 4727
I'll reply to my own post.

I was on the phone with MSDN support for over 3 hours before we figured
it out. The connection string was ok. The problem was with a web part
that I was using in the Master page.

<asp:webpartman ager id="WebPartMana ger1" runat="server"
Personalization-Enabled="false" />
I was using the WebPartManager to display some data in the master page,
based on some information in the Session populated by clicking on a
GridView row. However it seems that by default, if you don't disable
'Personalizatio n-Enabled' attribute, it is true. In that case, it will
try to locate the DB in SQL Server 2005 default to personalization
(which of course I had not set up using the script supplied). Note: I
had nothing to do with personalization in my web app. All I wanted to
do was to use the web part to display some data.
So when I disabled this attribute, everything started working properly.
I tried all permutation and
combinations of connection strings before I finally decided to make a
udl file on my desktop, connect to the DB, and then copy the string
created by it. We then ran a script on the website that Microsoft
support gave to make sure that everything was ok in terms of the
connection string. The finally, we homed in on the problem by looking
at the stack trace, which continiously gave a call to Personalization
api that was erroring out. That's how we homed in on the problem.
So lesson learnt. If you use WebParts in a website, Personalization is
enabled by default. To make sure we don't error out, we have to switch
it off.
"John Shadel" wrote:
I have the following setup:
1. ASP.NET 2.0 web app hosted on a web server (inetpub directory
hosting physical files of the web site on a different drive name, E:
than the SQL Server Instance, which is on C:)
2. SQL Server on the same server, with security settings enabling
ASPNET group and groups containing users allowed to interact with the
website added to SQL Server Instance security settings.
3. Impersonation = true, i.e. ASPNET worker process will impersonate
the user who has been authenticated by IIS

I am continiously getting this error:
=============== =========
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error
Locating Server/Instance Specified)
The stack trace and event log is at the end of this post.
I tried the following:
1. enabled TCPIP and Pipes for remote connection via the SQL Server
Configuration Manager
2. enabled remote and local connections via the SQL Surface area
Configuration (TCPIP and named pipes)
3. totally disabled the firewall (even if it is enabled, both the
sqlbrowser, and sqlserver are added as exceptions)
4. enabled the SQL Server Browser Service (to start automatically)
I've tried doing everything i came across on the net.
Nobody seems to have a solution but a lot of people have encountered
this problem.
If anybody out there does have a solution, PLEASE reply to this post.
Thanking you in advance
Part of the stack trace:
--------------------------------
[SqlException (0x80131904): An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this
failure may be caused by the fact that under the default settings SQL
Server does not allow remote connections. (provider: SQL Network
Interfaces, error: 26 - Error Locating Server/Instance Specified)]
System.Data.Sql Client.SqlInter nalConnection.O nError(SqlExcep tion
exception, Boolean breakConnection ) +734995
System.Data.Sql Client.TdsParse r.ThrowExceptio nAndWarning(Tds ParserStateObje Â*ct
stateObj) +188
System.Data.Sql Client.TdsParse r.Connect(Boole an& useFailoverPart ner,
Boolean& failoverDemandD one, String host, String failoverPartner ,
String protocol, SqlInternalConn ectionTds connHandler, Int64
timerExpire, Boolean encrypt, Boolean trustServerCert , Boolean
integratedSecur ity, SqlConnection owningObject, Boolean aliasLookup)
+820
System.Data.Sql Client.SqlInter nalConnectionTd s.OpenLoginEnli st(SqlConnectio Â*n
owningObject, SqlConnectionSt ring connectionOptio ns, String
newPassword, Boolean redirectedUserI nstance) +628
System.Data.Sql Client.SqlInter nalConnectionTd s..ctor(DbConne ctionPoolIdenti Â*ty
identity, SqlConnectionSt ring connectionOptio ns, Object providerInfo,
String newPassword, SqlConnection owningObject, Boolean
redirectedUserI nstance) +170
System.Data.Sql Client.SqlConne ctionFactory.Cr eateConnection( DbConnectionOpt Â*ions
options, Object poolGroupProvid erInfo, DbConnectionPoo l pool,
DbConnection owningConnectio n) +130
System.Data.Pro viderBase.DbCon nectionFactory. CreatePooledCon nection(DbConne Â*ction
owningConnectio n, DbConnectionPoo l pool, DbConnectionOpt ions options)
+28
System.Data.Pro viderBase.DbCon nectionPool.Cre ateObject(DbCon nection
owningObject) +424
System.Data.Pro viderBase.DbCon nectionPool.Use rCreateRequest( DbConnection
owningObject) +66
System.Data.Pro viderBase.DbCon nectionPool.Get Connection(DbCo nnection
owningObject) +496
Part of the Event Log (Application)
------------------------------------------------
Process information:
Process ID: 5600
Process name: w3wp.exe
Account name: EUSRCMW309\IWAM _EUSRCMW309
Exception information:
Exception type: SqlException
Exception message: An error has occurred while establishing a
connection to the server. When connecting to SQL Server 2005, this
failure may be caused by the fact that under the default settings SQL
Server does not allow remote connections. (provider: SQL Network
Interfaces, error: 26 - Error Locating Server/Instance Specified)
Request information:
Request URL: http://138.85.90.253/psdb/main.aspx
Request path: /psdb/main.aspx
User host address: 138.85.90.253
User: EAMCS\EUSJESadm
Is authenticated: True
Authentication Type: Negotiate
Thread account name: EUSRCMW309\IWAM _EUSRCMW309

May 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5349
by: Sean | last post by:
Hi, I have my application running off my localhost and just transfered it to the production server. And when i ran my application, it came up with a Runtime Error. The server is an IIS and has SDK already installed. what are the issues that i have to deal with here Any inputs.. will be greatly appreciated.
3
2441
by: Boxman | last post by:
Hi I have been asked to migrate a long-standing and stable asp.net application from a W2k server on one NT domain on our intranet to another W2k server on another NT domain also on our intranet. The application was written in C#.NET using Visual Studio 2002 and v1.0 of the .NET Framework. As we don't use Frontpage extensions on the servers (both run IIS5) I have used Xcopy to copy the files from the original server across the WAN to...
0
1008
by: Lou Civitella | last post by:
When I try to add a connection within VS 2005 I get this error message: An unexpected error occurred in the .NET Framework Data Provider for SQL Server Mobile Edition. Please contact the Provider vendor to resolve the problem. How do I fix? Thanks, Lou
1
2241
by: tomkarachris | last post by:
i try instal visual studio and i get Error 1402.Could not open key: HKEY_LOCAL_MACHINE\Software\Classes\ITIR.CmdInt.4\CLSID. Verify that you have sufficient access to that key, or contact your support personnel.
1
1694
by: Bryan Dickerson | last post by:
I have a small program that I built for Release mode and now when I try to run it from the VS 2005 IDE, I get an error/warning box that says: ------------------------------------------ The following module was built either with optimizations enabled or without debug information: <path to the module> To debug this module, change it's project build configuration to Debug Mode.
0
869
by: Stephen Plotnick | last post by:
I bought another laptop and installed my VB.2005. When I try to open a porject I get the following error. Error retrieving informationm from user database. Platform not found. Does anybody know what I'm missing with the new install? Thanks, Stev
3
2216
by: rote | last post by:
I'm trying to create a Website using VS 2005 on another server on the same domain. But i get error "The Web server does not have frontPage Server extensions installed Error" Any ideas what i have to do to install the frontPage Server extensions on the IIS 6 - windows 2003 server? Thanks in Advance
3
7811
by: bourgon | last post by:
I'm getting this, after upgrading from 2000 to 2005. Replication-Replication Distribution Subsystem: agent (null) failed. The subscription to publication '(null)' has expired or does not exist. The only suggestions I've seen are to dump all subscriptions. Since we have several dozen publications to several servers, is there a decent way to script it all out, if that's the only suggestion?
3
2909
by: Wesly Tan | last post by:
Microsoft SQL 2005 Event id: 8309 Event Description: BACKUP LOG WITH TRUNCATE_ONLY or WITH NO_LOG is deprecated. The simple recovery model should be used to automatically truncate the transaction log. Problem: After changed all database recovery mode to simple, restart the SQL server, restart SQL server agent, changed user permission, the error 8309 still occur, please advice, thanks..
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10115
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5229
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.