Error Using DNS Provider Procedures--"The underlying connection was closed: Unable to connect to the remote server."

Hi,

We are using the DNS Provider and DNS Client Component that comes with MPS Companion(Version 1.1).
We have installed the DNS Provider in a Windows 2000 Server machine where core MPS is installed.
We have installed the DNS Client Component in a Windows 2003 Server machine where DNS server is installed.
When we try running the procedures CreateResourceRecord,RefreshDNSZone etc from the Windows 2000 Server using provtest utility it is throwing the floowing error
"The underlying connection was closed: Unable to connect to the remote server."
I am attaching a sample XML request that we used and the response we get when it is submitted thru' provtest.
Please help us resolve this issue.
XML Request
<?xml version="1.0" encoding="utf-8" ?>
<request>
<data>
<serverIdentifier>192.168.100.1</serverIdentifier>
<userName>ismdemo\Administrator</userName>
<password>Iso*help</password>
<zoneName>ismdemo.com</zoneName>
<debugLevel logging="high" check-only="on"/>
</data>
<procedure>
<execute namespace="DNS Provider" procedure="RefreshDNSZone" >
<before source="data" destination="executeData" mode="merge"/>
<before source="executeData" destination="data" mode="insert"/>
</execute>
</procedure>
</request>
Response from provtest
<response><data>
<serverIdentifier>192.168.100.1</serverIdentifier>
<userName>ismdemo\Administrator</userName>
<password>Iso*help</password>
<zoneName>ismdemo.com</zoneName>
<debugLevel logging="high" check-only="on"/>
<executeData><serverIdentifier>192.168.100.1</serverIdentifier>
<userName>ismdemo\Administrator</userName>
<password>Iso*help</password>
<zoneName>ismdemo.com</zoneName>
<debugLevel logging="high" check-only="on"/></executeData></data>
<errorContext description="The underlying connection was closed: Unable to connect to the remote server." code="0x80131500" executeSeqNo="1"><errorSource namespace="DNS Provider" procedure="RefreshDNSZone"/></errorContext></response>
Regards
Sundar

0
saisundar
6/23/2004 6:56:31 AM
asp.net.mps 1200 articles. 0 followers. Follow

7 Replies
868 Views

Similar Articles

[PageSpeed] 39

Make sure your target DNS server has SSL enabled for the Web Service.  By default, the connection between the DNS Provider and the DNS Web Service is SSL.

Conrad Agramont
Senior Architect
eQuest Technologies
conrada@eqinc.com

Conrad Agramont
Agramont Services - (Hosting, MPS, SaaS architecture, Virtualization, and more)
email: conrad (at) agramontservices (dot) com
HMC Control Panels
0
conrad
6/23/2004 1:08:44 PM
Thanks for your response.

Since SSL requires certificates and we wanted this to happen in ordinary http,can you give us the tips to change the default behavior from SSL to ordinary http.
Regards
Sundar
0
saisundar
6/23/2004 1:59:58 PM
Hi Conrad,

Further to my previous mail we found in the latest Hosted Exchange 2003 documentation a mention about a way around this issue(Chapter 2 in Book 1 of Volume 1).But actually we would like to know the actual steps involved in changing the setting in the Web.Config file of the DNS Client virtual directory to use HTTP instead of HTTPS
Regards
Sundar
0
saisundar
6/23/2004 2:08:41 PM
On the MPF machine that you installed the DNS Provider, look in the following folder:

\Program Files\Microsoft Hosting\Provisioning\DNS Provider
Now open (Via Notepad): DNSProvider.dll.config
Here is a copy of the text found in there
-----------------------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="remotingProtocol" value="https"/>
<add key="remotingPort" value="443"/>
<add key="remotingUri" value="DnsProvider/Dns.rem"/>
<add key="enableTrace" value="false" />
<add key="traceFile" value="C:\\DNSProvider.log" />
</appSettings>
</configuration>
-----------------------------------------------------------
From here, you should update remotingProtocol & remotingPort to "http" & "80" respectively.
Hope this helps.
Conrad Agramont
Agramont Services - (Hosting, MPS, SaaS architecture, Virtualization, and more)
email: conrad (at) agramontservices (dot) com
HMC Control Panels
0
conrad
6/23/2004 2:36:08 PM
Sundar - Did this work out for you?
Conrad Agramont
Agramont Services - (Hosting, MPS, SaaS architecture, Virtualization, and more)
email: conrad (at) agramontservices (dot) com
HMC Control Panels
0
conrad
7/15/2004 8:49:44 AM

Hi Conrad,

We faced the same problem while creating a DNS zone - "The underlying connection was closed: Unable to connect to the remote server". I followed your instructions above and modified the DNSProvider.dll.config file. When I re-execute the CreateDNSZone request, it is still throwing error but this time the error message was different - "Server encountered an internal error. To get more info turn on customErrors in the server's config file"

I find in the DNSProvider.log file that the procedure is referring to a URL for a certain Dns.rem file - "ClientUrl: http://192.168.100.242:80/DnsProvider/Dns.rem". This server is my AD server and I did not find any virtual directory by the name "DnsProvider" inside the default web site.
Please let me know if I am missing any settings.

Find below the contents of my DNSProvider.log file for your reference:

2006-06-05T15:02:26 Entering CreateDNSZoneExecute
2006-06-05T15:02:26 Getting executeDataNode
2006-06-05T15:02:26 executeData Node Retrieved
2006-06-05T15:02:26 Get the required elements
2006-06-05T15:02:26 Entering GetRequiredElementValue method
2006-06-05T15:02:26 Set foundNode to serverIdentifier
2006-06-05T15:02:26 Required Element: 192.168.100.242
2006-06-05T15:02:26 Exiting GetRequiredElementValue Method
2006-06-05T15:02:26 serverIdentifier: 192.168.100.242
2006-06-05T15:02:26 Entering GetRequiredElementValue method
2006-06-05T15:02:26 Set foundNode to zoneName
2006-06-05T15:02:26 Required Element: symbtech.com
2006-06-05T15:02:26 Exiting GetRequiredElementValue Method
2006-06-05T15:02:26 zoneName: symbtech.com
2006-06-05T15:02:26 Entering GetRequiredElementValue method
2006-06-05T15:02:26 Set foundNode to zoneType
2006-06-05T15:02:26 Required Element: primary
2006-06-05T15:02:26 Exiting GetRequiredElementValue Method
2006-06-05T15:02:26 zoneType: primary
2006-06-05T15:02:26 Get the optional elements
2006-06-05T15:02:26 Entering GetOptionalElementValue method
2006-06-05T15:02:26 Optional Element:
rk@symbtech.com
2006-06-05T15:02:26 Exiting GetOptionalElementValue method
2006-06-05T15:02:26 userName:
rk@symbtech.com
2006-06-05T15:02:26 Entering GetOptionalElementValue method
2006-06-05T15:02:26 Optional Element: Password123
2006-06-05T15:02:26 Exiting GetOptionalElementValue method
2006-06-05T15:02:26 Entering GetOptionalElementValue method
2006-06-05T15:02:26 Optional Element:
2006-06-05T15:02:26 Exiting GetOptionalElementValue method
2006-06-05T15:02:26 adminEmail:
2006-06-05T15:02:26 Entering GetOptionalElementValue method
2006-06-05T15:02:26 Optional Element:
2006-06-05T15:02:26 Exiting GetOptionalElementValue method
2006-06-05T15:02:26 commitFlag:
2006-06-05T15:02:26 Entering GetOptionalElementValue method
2006-06-05T15:02:26 Optional Element:
2006-06-05T15:02:26 Exiting GetOptionalElementValue method
2006-06-05T15:02:26 debugLevel:
2006-06-05T15:02:26 Get the propertyTree
2006-06-05T15:02:26 Entering GetOptionalXmlString Method
2006-06-05T15:02:26 Set foundNode to properties
2006-06-05T15:02:26 Optional Xml String:
2006-06-05T15:02:26 Exiting GetOptionalXmlString Method
2006-06-05T15:02:26 propertyTree:
2006-06-05T15:02:26 Create the RemoteDNS Object
2006-06-05T15:02:26 Entering CreateRemoteDnsObject Method
2006-06-05T15:02:26 Entering BuildClientURL method
2006-06-05T15:02:26 Getting Configuration Value 'remotingProtocol' for clientUrl
2006-06-05T15:02:26 Adding serverName & remotingPort to clientUrl
2006-06-05T15:02:26 Adding remotingUri to clientUrl
2006-06-05T15:02:26 ClientUrl:
http://192.168.100.242:80/DnsProvider/Dns.rem
2006-06-05T15:02:26 Exiting BuildClientUrl method
2006-06-05T15:02:26 Get the proxy object to the remote object
2006-06-05T15:02:26 Adding Credentials
2006-06-05T15:02:26 Username:
rk@symbtech.com
2006-06-05T15:02:26 Password: ********
2006-06-05T15:02:26 Returning dnsManager
2006-06-05T15:02:26 Exiting CreateRemoteDnsObject method
2006-06-05T15:02:26 RemoteDNSObject dnsManager Created
2006-06-05T15:02:26 Calling remote object
2006-06-05T15:02:26 Error: Server encountered an internal error. To get more info turn on customErrors in the server's config file.

2006-06-05T15:02:26 Leaving CreateDNSZoneExecute

Thanks in Advance,
RadhaKrishna

0
radhakrishna
6/5/2006 9:40:01 AM

Radhakrishna

did u get a resolution for this by any chance. I am stuck in the same place where you are stuck. Any help on this will be highly appreciated

Thanks

Shankar  

 

 

 

 

0
shankarg77
8/31/2006 11:38:30 AM
Reply:

Similar Artilces:

Web Referenced WSDL always getting "The underlying connection was closed: Unable to connect to the remote server." error
I'm getting "Exception Details: System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server." on reference.cs file.I looked up this error and there were fixes for it, if it was occuring intermittently (I applied it anyway without success).  However my error seems to be permanent.  FYI, web service is Java based and client is of course .NET based.  Does it sound like service provider issue?Thanks in advance Java Web Server shouldn't be a problem;There are many reason why this can happen:1.Check if your personal Fir...

"The underlying connection was closed: Unable to connect to the remote server.".
Hi,We have created Paypal Sandbox profile.Then, we tried to use. we are getting the following error."The underlying connection was closed: Unable to connect to the remote server.".We are using ASP.NET USING VB.We are getting the error in the following line.response = CType(caller.Call("TransactionSearch", request), TransactionSearchResponseType)Urgent help is needed. If anyone know, let me know.Urgent help!!!!!!!!!!!!!!!!!!!!!!! sekaran--Regarding this... sekaran wrote:..."The underlying connection was closed: Unable to connect to the remote server."....We are getting the error in the...

upgrade error:"CONNECTIVITY ERROR:DB-Library: "SQL Server connection timed out."
PLEASE HELP OH WISE SYBASE GURUS! upgrading 11.9.2 to 12.0. unloaded software. rebooted server. selected "upgrade server" in Configure Sybase Servers window. typed in sa password. got "CONNECTIVITY ERROR: DB-Library: "SQL Server connection timed out." -- Chuck Boyce chuck_boyce@operamail.com http://www.geocities.com/chuck_boyce_jr/ Yahoo Messenger ID: chuck_boyce_jr http://messenger.yahoo.com AOL Instant Messenger ID: sg95m476 http://www.aol.com/aim/ ICQ Messenger ID: 41449031 http://www.icq.com ...

"Unable to connect to the remote server" when using FtpWebRequest
I am writing an application to generate a XML file from database then ftp it onto a FTP server. I encounter problem during the deployment. The code fragments for the FTP is:// Create FtpWebRequest object from the Uri provided reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" + fileInf.Name)); // Provide the WebPermission Credintials reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);  1. I deploy the project onto the live web server which is hosted by 3rd party. I point the FTP server to the same s...

Error: The underlying connection was closed: Unable to connect to the remote server
Dear all,I have a webservice project running on Computer A.I am calling a webmethod from this web service from an asp.net project on computer B, it is working correctly.But the problem is when i am trying to call the same webmethod from another asp.net project on the computer B, i am receiving this error:The underlying connection was closed: Unable to connect to the remote server.it is not a security problem or configuration since the same webmethod is working on the first asp.net project Can anyone help, thanks.   Any help please....

Problem in Connecting Database. error " SQL Server does not allow remote connections."
Hi Forum, Heres the scenario. I have VS2008 and SqlServer Enterprise Edition installed in my machine. I connect to the database inside the same machine using VS2008. I opened the project my client gave me inside vs2008. When I ran the project, the it runs. but the aspx page to be displayed shows error like  'Problem in Connecting Database. error " SQL Server does not allow remote connections." ' I have db and vs in the same machine ( no remote machine involved). Why does this error came? How to Rectify it? Any guidelines are de...

Experiencing "Underlying Connection Was Closed" Error with .NET 2.0
I don't know what it was like with version 1.x, but with .NET 2.0, I can no longer apply the fix mentioned in the MSFT KB below.  The proxy generated with .NET 2.0 now inherits from System.Web.Services.Protocols.SoapHttpClientProtocol.  Has anyone experienced the Underlying Connection Was Closed error and has a different solution?  By the way, I have already applied the default proxy setting to machine.config.Thanks in advance.Google Cache: http://66.102.7.104/search?q=cache:Qihy3DwDzVUJ:support.microsoft.com/kb/819450+%2Bproxy+System.Net.WebException+The+underlying+connection...

Not sloving "System.Net.WebException: The underlying connection was closed" error!
Hi all, I am coding a web service for the company I am working for. It supposes to talk to a third-party web service, via WSDL.  The web reference which I am using is: http://xml.nig.ac.jp/wsdl/SRS.wsdl My code to test the web service is the following: (VS.net2003 C#) private string QuerySRS(string queryString) {             SRS search = new SRS();              string query = "[swissprotrelease-AllText:"+queryString+"]"; &...

How to Solve "The underlying connection was closed: An unexpected error occurred on a receive." Error
Hi When i want to invoke a web service method the Error happen and it says "The underlying connection was closed: An unexpected error occurred on a receive." I search on this and someone suggest to use webRequest.KeepAlive = False in GetWebRequest override method and i write this code in my refrence.vb file Protected Overrides Function GetWebRequest(ByVal uri As Uri) As System.Net.WebRequest Dim webRequest As System.Net.HttpWebRequest = MyBase.GetWebRequest(uri) webRequest.KeepAlive = False webRequest.ProtocolVersio...

Loading XmlDocument via XmlDocument.Load event throws "The underlying connection is closed....." and/or 403 Forbidden error in SSL configured server.
Hi, The following code is used for loading the xml document. This code works fine for non-SSL configuration but once I configure the server as SSL secured and check the Require secure channel (SSL) check box under Secure communications's Edit button section under Directory Security, this code does not work.  It breaks at xmlDocTools.Load(xmlReader);.   By the way, it works without Require secure channel (SSL) being checked.  I tried after getting a trial certificate from verisign and configuring my server with that certificate and it still throws the ...

"Unable to connect to the remote server" with HttpWebResponse
When I run the code below it works find on my development machine, but on the server I get on to the Server I get "Unable to connect to the remote server" HttpWebRequest wr = (HttpWebRequest)WebRequest.Create() wr.Proxy.Credentials = CredentialCache.DefaultCredentials; HttpWebResponse wresponse1 = (HttpWebResponse)wr.GetResponse(); I have given ASP.NET, Network Service, and the IIS user full Admin permissions on the server, but still no good. Nothing in the event log either, any ideas?Regards<<<Bryan Avery>>>Don't forget to click "Mark as Answe...

underlying connection was closed:unable to connect to remote server
I have been receiving this exception for over a week with a .NET remoting app and can't find a solution anywhere that works.  Below I'll paste my config files and the client code calling the remote method.  I'd really appreciate some assistance. The Server code and files are on a remote server within our facility and have been told more than once there is no firewall between my workstation and it.  So firewalls are out of the question as the source of the problem.  I assume its somewhere in my config files but I've tried everything I've seen on the net. I receive the Net...

The underlying connection was closed: Unable to connect to the remote server
Hi, I am getting this error message.I am using myWebClient.OpenRead(uriString) method. Stack Trace is     Accessing http://www.amfiindia.com/portal/upload/downloadnav.txtException  The underlying connection was closed:  Unable to connect to the remote server.stackrace at System.Net.HttpWebRequest. Here is my code private void Button2_Click(object sender, System.EventArgs e) { try { // Create a new WebClient instance. // Just file reader WebClient myWebClient = new WebClient(); // Download home page data. string uriString="http://www.amfiindia.co...

The underlying connection was closed: Unable to connect to the remote server.
Hi guys, I have problem with the above HTTP response while trying to post a request from one aspx (from A site) to another aspx page (at B site) which is hosted at the same web server. Which particular area should I pay attention to ?? Thanks ictie...

Web resources about - Error Using DNS Provider Procedures--"The underlying connection was closed: Unable to connect to the remote server." - asp.net.mps

Resources last updated: 1/2/2016 4:16:39 AM