473,898 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help. Getting a An error has occurred while establishing a connectionto the server. When connecting to SQL Server 2005, this failure may be causedby the fact that under the default settings SQL Server does not allow remote

Hi,

I need some help. I am getting this error after I complete the asp.net
register control and click on the continue button. It crashed when it
tries to get
it calls this Profile property

((string)(this. GetPropertyValu e("Address1"))) ;
When I look at the stack, it is coming from my ProfileWrapper class
which adds user address, city, etc.. from a class which inherits from
System.Web.Prof ile.ProfileBase . From the stack, it is calling the
System.Web.Prof ile and crashed when it tries to open a connection at
System.Data.Pro viderBase.DbCon nectionPool.Get Connection(DbCo nnection
owningObject). I already migrated all aspnet_user, aspnet_roles, etc..
and don't get any connection errors. It is only when I try to get the
profile data. This works on my pc, but throws an error on my
lunarpage website.

Any help is greatly appreciated.

Thanks,

AJ
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)

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Data.Sql Client.SqlExcep tion: 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)

Source Error:

Line 100: public virtual string Address2 {
Line 101: get {
Line 102: return ((string)
(this.GetProper tyValue("Addres s2")));
Line 103: }
Line 104: set {
Source File: c:\windows\Micr osoft.NET\Frame work\v2.0.50727 \Temporary
ASP.NET Files\root\0021 d506\39a6858c\A pp_Code.54nvluy o.1.cs Line:
102

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.Pro viderBase.DbCon nectionPool.Get Connection(DbCo nnection
owningObject) +435

System.Data.Pro viderBase.DbCon nectionFactory. GetConnection(D bConnection
owningConnectio n) +82

System.Data.Pro viderBase.DbCon nectionClosed.O penConnection(D bConnection
outerConnection , DbConnectionFac tory connectionFacto ry) +105
System.Data.Sql Client.SqlConne ction.Open() +111
System.Web.Data Access.SqlConne ctionHolder.Ope n(HttpContext context,
Boolean revertImpersona te) +84
System.Web.Data Access.SqlConne ctionHelper.Get Connection(Stri ng
connectionStrin g, Boolean revertImpersona tion) +197

System.Web.Prof ile.SqlProfileP rovider.GetProp ertyValuesFromD atabase(String
userName, SettingsPropert yValueCollectio n svc) +782

System.Web.Prof ile.SqlProfileP rovider.GetProp ertyValues(Sett ingsContext
sc, SettingsPropert yCollection properties) +428

System.Configur ation.SettingsB ase.GetProperti esFromProvider( SettingsProvide r
provider) +404
System.Configur ation.SettingsB ase.GetProperty ValueByName(Str ing
propertyName) +117
System.Configur ation.SettingsB ase.get_Item(St ring propertyName) +89
System.Web.Prof ile.ProfileBase .GetInternal(St ring propertyName) +36
System.Web.Prof ile.ProfileBase .get_Item(Strin g propertyName) +68
System.Web.Prof ile.ProfileBase .GetPropertyVal ue(String
propertyName) +4
ProfileCommon.g et_Address2() in c:\windows\Micr osoft.NET\Frame work
\v2.0.50727\Tem porary ASP.NET Files\root\0021 d506\39a6858c\A pp_Code.
54nvluyo.1.cs:1 02
ProfileWrapper. .ctor() in d:\inetpub\vhos ts\javcentral.c om\httpdocs
\App_Code\Profi leWrapper.cs:24 2
ProfileDataSour ce.GetData() in d:\inetpub\vhos ts\javcentral.c om
\httpdocs\App_C ode\ProfileData Source.cs:17

[TargetInvocatio nException: Exception has been thrown by the target of
an invocation.]
System.RuntimeM ethodHandle._In vokeMethodFast( Object target,
Object[] arguments, SignatureStruct & sig, MethodAttribute s
methodAttribute s, RuntimeTypeHand le typeOwner) +0
System.RuntimeM ethodHandle.Inv okeMethodFast(O bject target, Object[]
arguments, Signature sig, MethodAttribute s methodAttribute s,
RuntimeTypeHand le typeOwner) +72
System.Reflecti on.RuntimeMetho dInfo.Invoke(Ob ject obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boolean skipVisibilityC hecks) +308
System.Reflecti on.RuntimeMetho dInfo.Invoke(Ob ject obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
+29

System.Web.UI.W ebControls.Obje ctDataSourceVie w.InvokeMethod( ObjectDataSourc eMethod
method, Boolean disposeInstance , Object& instance) +480

System.Web.UI.W ebControls.Obje ctDataSourceVie w.ExecuteSelect (DataSourceSele ctArguments
arguments) +1960
System.Web.UI.D ataSourceView.S elect(DataSourc eSelectArgument s
arguments, DataSourceViewS electCallback callback) +17
System.Web.UI.W ebControls.Data BoundControl.Pe rformSelect() +149
System.Web.UI.W ebControls.Base DataBoundContro l.DataBind() +70
System.Web.UI.W ebControls.Form View.DataBind() +4
System.Web.UI.W ebControls.Base DataBoundContro l.EnsureDataBou nd()
+82
System.Web.UI.W ebControls.Form View.EnsureData Bound() +163

System.Web.UI.W ebControls.Comp ositeDataBoundC ontrol.CreateCh ildControls()
+69
System.Web.UI.C ontrol.EnsureCh ildControls() +87
System.Web.UI.C ontrol.FindCont rol(String id, Int32 pathOffset) +21
System.Web.UI.C ontrol.FindCont rol(String id) +9
CustomerDetails Edit.OnPreRende r(EventArgs e) in d:\inetpub\vhos ts
\javcentral.com \httpdocs\UserC ontrols\Custome rDetailsEdit.as cx.cs:60
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +86
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +170
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +170
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +170
System.Web.UI.C ontrol.PreRende rRecursiveInter nal() +170
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
+2041

Jun 27 '08 #1
0 2013

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

Similar topics

6
4964
by: Chris Love | last post by:
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) I get this the frist time I open an ASP.NEt 2.0 site on my development machine now. It started happening when I tried to use the...
7
2202
by: deltalimagolf | last post by:
I now get the following error message after copying an asp.net application to the deployment web server. I don't have SQLExpress or any version of SQL 2005 installed. I found the "LocalSQLServer" connection string in the machine.config, changed that to look at a SQL 2000 database, but the error still comes up. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be...
14
7054
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that sql server resides on is not reachable. The error is different depending on the connection string that I use. If I use the following connection string: "server=192.1.1.1; Initial Catalog=master; uid=The_User; password=The_Password; Connect...
0
1456
by: Tor Inge Rislaa | last post by:
Just for testing deployment of an asp.net application to the remote server I have crated an application based on the StarterKit application in Visual Studio 2005. When trying to run the application from my browser I get the error message below.
5
1945
by: James | last post by:
Hello, I have written a simple logon page that redirects to another page when successful. All works fine on my computer but when I upload it I get the error message below. I have written it in ASP.net v2, and have put it on IIS v6 on windows server 2003. I think it may be something to do with connection string to the database,
8
4375
by: =?Utf-8?B?U3JpcmFtIE1hbGxhanlvc3VsYQ==?= | last post by:
Hi, I am not sure whether this is the correct newsgroup where I need to post my question. Let me know where I need to post for a quick response. I get the following error when I try to connect to SQL 2005 from my ASP.Net 2.0 application. System.Web.Services.Protocols.SoapException: Server was unable to process request. ---System.Data.SqlClient.SqlException: An error has occurred while
1
3768
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I wanted to move my work and needed to place it on the server. Using VS 2005 , went to BUILD -Publish Web Site Checked the box for :: Alow this precompiled site to be updatable.
4
2222
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I wanted to move my work and needed to place it on the server. Using VS 2005 , went to BUILD -Publish Web Site Checked the box for :: Alow this precompiled site to be updatable.
1
5848
by: Newbie19 | last post by:
I'm creating an API that is going to pull data from a sql db, but I get this error message, 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) at...
0
9839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10946
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
10481
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...
0
9658
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7187
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5877
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
6076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4295
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3303
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.