Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

I can''t deploy my web application on windows 2003 server : "26 - Error Locating Server/Instance Specified"

Posted: Jan/22/2011   By: nikhil   Points:15   Category: .NET  - ASP.Net    Views:82   Vote Up (0)   Vote Down (0)    

Hi, I have had problems with my web application. Everthing is fine if I'm Working in my notebook (Windows XP Professional). But if I deploy that on Windows Server 2003, the error message shows:

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Scenario: Web Aplication: C#, 3-Tier, SQL SerVer 2005, .NET Framework 4.0

Connection String : "Data Source=MyServerName;Initial Catalog=MyDatabase;Integrated Security=True;"

I already checked on Windows 2003 Server..

(OK) 1) Make sure your server name is correct, e.g., no typo on the name.

(OK) 2) Make sure your instance name is correct and there is actually such an instance on your target machine.

(OK) 3) Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server.

(OK) 4) Make sure SQL Browser service is running on the server.

(OK) 5) Firewall exceptions : ports 1433, 1434 and sql "exe" files.

(OK) 6) SQL Server 2005\Server Auhentication\SQL Server and Windows Authentication mode

(OK) 7) SQL Server 2005 Surface Area Configuration\Database Engine\Remote Connections\Local and remote connections\Using TCP/IP only.

What do I have to do ?

Regards,

Marcio L.R.

View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Caputurig Back Button Event & Force The Page To Load From Server:

  
I think in many time developer need this event, which is not provided by any browser and it is not captured by any javascript event.In this Article you see how you capture this event and how you force the browser to load the page from server.

PleaseWaitButton ASP.NET Server Control

  
An approach to displaying a "please wait" message/animated gif following a button click using encapsulated client-side JavaScript.

It is often useful upon a form submission in a web application to display a "please wait" message, or animated .gif image, particularly if the submission process lasts a few seconds or more. I recently developed a survey submission application in which internal users upload excel spreadsheets through a web page. The application inserts the uploaded data from the spreadsheets into a database. The upload/insert process may only take a few seconds, but even a few seconds on the web is a noticeable wait. When testing, some users clicked the upload button repeatedly; it was useful to provide a visual clue that the upload was underway. For that matter, it was useful to hide the upload button altogether, preventing multiple clicks. The control presented here, a subclass of the Button control, demonstrates how client-side JavaScript code encapsulated in an ASP.NET server control can provide such functionality conveniently.

ASP.NET Windows Authentication, Domains and Roles

  
We are using windows authentication for a web application and have the roles defined in the web.config for each page.
The problem is that we have to have them in the form DOMAIN\RoleName which means when we deploy it to a different domain we have to do a search and replace.
So is there either:

Create Navigation in asp.net web application

  
Create Navigation in asp.net web application. Create Navigation in asp.net

IIS Issues - Unable to start debugging on the web server. The underlying connection was closed. The connection was closed unexpectedly.

  

All of the sudden I'm getting the following error on my local web server (Win7 64bit, IIS 7.5).  I've uninstalled & reinstalled IIS locally and it didn't fix it.  IIS is set to start up automatically and I can see that the service has been successfully started.  Upon a fresh reboot if I go into IIS and click on start website I get the following error:
"The process cannot access the file because it is being used by another process.  (Exception from HRESULT:  0x80070020"
If I try to start debugging on my local website project I get the following error:
"Unable to start debugging on the web server.  The underlying connection was closed.  The connection was closed unexpectedly."
Any ideas on what I can try?  I've been doing research on the issue and Microsoft suggest making sure no other service is listening on the same ports.  I've verified that this isn't the issue.

All of the sudden I'm getting the following error on my local web server (Win7 64bit, IIS 7.5).  I've uninstalled & reinstalled IIS locally and it didn't fix it.  IIS is set to start up automatically and I can see that the service has been successfully started.  Upon a fresh reboot if I go into IIS and click on start website I get the following error:

"The process cannot access the file because it is being used by another process.  (Exception from HRESULT:  0x80070020"

If I try to start debugging on my local website project I get the following error:

"Unable to start debugging on the web server.  The underlying connection was closed.  The connection was closed unexpectedly."

Any ideas on what I can try?  I've been doing research on the issue and Microsoft suggest making sure no other service is listening on the same ports.  I've verified that this isn't the issue.


IIS Issues - Unable to start debugging on the web server. The underlying connection was closed. The connection was closed unexpectedly.

  

All of the sudden I'm getting the following error on my local web server (Win7 64bit, IIS 7.5).  I've uninstalled & reinstalled IIS locally and it didn't fix it.  IIS is set to start up automatically and I can see that the service has been successfully started.  Upon a fresh reboot if I go into IIS and click on start website I get the following error:
"The process cannot access the file because it is being used by another process.  (Exception from HRESULT:  0x80070020"
If I try to start debugging on my local website project I get the following error:
"Unable to start debugging on the web server.  The underlying connection was closed.  The connection was closed unexpectedly."
Any ideas on what I can try?  I've been doing research on the issue and Microsoft suggest making sure no other service is listening on the same ports.  I've verified that this isn't the issue.

All of the sudden I'm getting the following error on my local web server (Win7 64bit, IIS 7.5).  I've uninstalled & reinstalled IIS locally and it didn't fix it.  IIS is set to start up automatically and I can see that the service has been successfully started.  Upon a fresh reboot if I go into IIS and click on start website I get the following error:

"The process cannot access the file because it is being used by another process.  (Exception from HRESULT:  0x80070020"

If I try to start debugging on my local website project I get the following error:

"Unable to start debugging on the web server.  The underlying connection was closed.  The connection was closed unexpectedly."

Any ideas on what I can try?  I've been doing research on the issue and Microsoft suggest making sure no other service is listening on the same ports.  I've verified that this isn't the issue.


Send mail from my application

  

Hi,

      I have a requirement  where i need to send mail from my application. I used the following code to send mail

        MailMessage msgMail = new MailMessage();
        MailAddress fromAdress = new MailAddress("praveen.k@gmail.com","Mechano");
        msgMail.From = fromAdress;
        msgMail.To.Add("praveen@gmail.com");
        msgMail.Subject = "Issue on Website";
        msgMail.IsBodyHtml = true;       
        //msgMail.BodyFormat = MailFormat.Html;         
        string strBody = "This is test message";        
        msgMail.Body = strBody;
        SmtpClient sClient = new SmtpClient("127.0.0.1", 25);
        //sClient.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
        sClient.Send(msgMail);


The above code  is neither working in my local system not showing error, but after the application has deployed in remote server(this is shared server) the code is working. What might be the problem?


Thanks

Praveen







Creating a Test server - Certain links getting redirected to live server.

  

Hi.

We had a website deployed on IIS server remotely say www.liveserver.com.

We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com


Everything seems to work fine but while navigating and clicking on certain module  links within  http//archives-testserver.com......the domain name is getting rewritten to www.liveserver.com and user is made to navigate on the live site. I wonder where this configuration is with in IIS...

I looked under properties under website identification and everything is referring it as http://arhives-testserver.com.  also thr is a file called securityRedirect.inc and ifor handling errors and all the references have been changed and couldn't find anything in web.config.


I would really appreciate if anyone can guide in right direction, where else to look for probable reference to live site?










will a 32-bit web application run as WOW64 on a 64-bit server?

  

Hi

I need to know if a web application deployed in a 64-bit server runs as a WOW64 process or a 64-bit process if the web application's pages are compiled as PE 32/x86 ?

I mean I have read a lot about normal console applications or executables with PE 32/x86 run as WOW64 on 64-bit servers. But what about web applications( all i can compile is the pages which are dlls)? The only process I can think of is w3wp.exe for web apps. Please explain. I am confused.

Thanks in advance

Vineeth


The remote server returned an error: (403) Forbidden.

  

Hi All,

i have a program in vb.net..i use the webrequest to post the data to another page (http://localpost/posReceived.aspx), and use the webResponse to get the back the response from the remote page.

When i run this program, it returned error "The remote server returned an error: (403) Forbidden.". I have no idea on this. Coz my aspx page and posReceived.aspx are placed in the same server and same directory. I supposed it should be worked without any security concerns.

Can anyone help me to solve it. Thanks a lot!

 

 

 


 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge