H
hufaunder
I have a website that consumes a webservice. Both of them are in the
Default Website folder. I can execute the service without any problem
when I go to the test page http://localhost/Service.asmx. When I try to
consume that webservice from the website I get the error shown bellow.
In my web.config I have:
<authentication mode="Windows"/>
<identity impersonate="true" userName="auser" password="apwd"/>
IIS is configured as "Integrated Windows authentication" and "Enable
anonymous access" is disabled.
System.Security.Principal.WindowsIdentity.GetCurrent().Name returns
"auser".
I am struggling with that for a LONG time so any help is greatly
appreciated.
Thanks
Error:
"No connection could be made because the target machine actively
refused it
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.Net.Sockets.SocketException: No connection
could be made because the target machine actively refused it
Line 110: object[] results = this.Invoke("MyWebservice", new
object[] {
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\root\26676eb7\92c7e946\App_WebReferences.rglqbs34.0.cs
Line: 110 "
Default Website folder. I can execute the service without any problem
when I go to the test page http://localhost/Service.asmx. When I try to
consume that webservice from the website I get the error shown bellow.
In my web.config I have:
<authentication mode="Windows"/>
<identity impersonate="true" userName="auser" password="apwd"/>
IIS is configured as "Integrated Windows authentication" and "Enable
anonymous access" is disabled.
System.Security.Principal.WindowsIdentity.GetCurrent().Name returns
"auser".
I am struggling with that for a LONG time so any help is greatly
appreciated.
Thanks
Error:
"No connection could be made because the target machine actively
refused it
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.Net.Sockets.SocketException: No connection
could be made because the target machine actively refused it
Line 110: object[] results = this.Invoke("MyWebservice", new
object[] {
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\root\26676eb7\92c7e946\App_WebReferences.rglqbs34.0.cs
Line: 110 "