Showing posts with label working. Show all posts
Showing posts with label working. Show all posts

Saturday, March 31, 2012

Web server is not running ASP.net version 1.1

Hi!
I have installed Visual studio.net on Windows XP 2002, SP 2. IIS is working properly. But when i press Asp.net web application from the new project menue the following message appears on the window:
visual studio.net has detected that the specified web server is not running ASP.Net version 1.1. You will be unable to run Asp.net web application and services.

I am new user of .Net. Can anybody tell me that why am i facing the above message?
Regards,
Mizi.

Try to register asp.net with IIS via the cmd line tool aspnet_iis -i. The cmd should be in the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\ folder.
Small correction to the above post.. The executable is named aspnet_regiis.exe

web server not installed?

Hi everyone,

I can't start working on asp.net site as it won't even open in Visual Studio.NET 2003. I am getting the following message " Visual Studio.NET cannot create or open the application because no Web server was detected at this URL: http://localhost/WebApplication1 . Make sure your web server is installed and running"
Can anyone explain to me how to solve this problem. Thanks a lot.Did you install IIS on you manche?
No, I have not. I was going to install along with the Windows Server 2003, but that's a little more complicated installation since it's a whole new operating system.
Is there an easier way to install IIS for now? Thanks
Asp.net app. needs to run with IIS installed, if your current OS is Win. 2k pro. or Win. XP pro., you can install the IIS from the system disk.
I am running Windows XP Home Edition. By the way, I am trying to resize my C drive with Partition Magic, so I can add Windows Server 2003. However, the minimum resize is 11 GB. So once I have 2 partitions with 2 OS's, how's that going to affect Windows XP. For example, if on windows start up, I choose to start Windows Server, can I still access the applications and things I have on another partition or I will just have a server on that partition and nothing else. I am asking because my hard drive size is not that large (30 GB) so I would like to know how's that going to affect everything before I make a disc partition. Thanks a lot.
No you will not be able to run apps installed on the XP system when you are booted up in 2003.
A couple ways around this.. multiboot with 2003 AND install VS2003 there - do all work there.
or get rid of XP home altogether and run everything from 2003
or get XP pro and run all from there.
Hope that helps
You need :

1- windows xp professional
or
2- windows 2000/server
3- windows 2003/server

to install IIS, and then work with ASP.NET

regards
All good ideas guys. Thanks.
But let's say I want to get rid of Win XP Home and want to install Win XP Pro. I am guessing all the applications and files are going to naturally be deleted when I take down XP Home. However, what would be the safest way for me to make that OS exchange?
You can do an upgrade from XP home to XP Professional, you wont loose any of your applications, only system files will be upgraded.

regards

Wednesday, March 28, 2012

web service

Is there any limit to the number of methods you can put into a web service?
Could you for example have 200 methods or more? We are working on a massive
system that we would like to use web services to provide functionality to
remote users... thanks!Have you considered Remoting (whicn can be hosted within IIS) instead of
WebServices?
If your clients are .Net, the remoting would be favored.
If your clients are .Net (and others, asp, vb6, java), then WebServices
would be preferred.
See
9/27/2005
Leveraging Dot Net Remoting To Keep Your "Secret Code" Safe
http://sholliday.spaces.live.com/blog/
or
[url]http://secretg.net/QAD_Remoting.asp[/url]
among other sites.
..
If you're using .Net 3.0, you have more options.
"Smokey Grindle" <nospam@.dontspamme.com> wrote in message
news:euY4o4jlHHA.4628@.TK2MSFTNGP06.phx.gbl...
> Is there any limit to the number of methods you can put into a web
service?
> Could you for example have 200 methods or more? We are working on a
massive
> system that we would like to use web services to provide functionality to
> remote users... thanks!
>
Would remoting work with Compact Framework also? We were planning on having
some PocketPC apps with of course reduced functionality and then .NET apps
running on the workstations.. (nothing that isn't .NET 2.0 native) Thanks!
"sloan" <sloan@.ipass.net> wrote in message
news:%23yP$hlklHHA.4840@.TK2MSFTNGP04.phx.gbl...
> Have you considered Remoting (whicn can be hosted within IIS) instead of
> WebServices?
> If your clients are .Net, the remoting would be favored.
> If your clients are .Net (and others, asp, vb6, java), then WebServices
> would be preferred.
>
> See
> 9/27/2005
> Leveraging Dot Net Remoting To Keep Your "Secret Code" Safe
> http://sholliday.spaces.live.com/blog/
> or
> [url]http://secretg.net/QAD_Remoting.asp[/url]
> among other sites.
> ..
> If you're using .Net 3.0, you have more options.
>
>
> "Smokey Grindle" <nospam@.dontspamme.com> wrote in message
> news:euY4o4jlHHA.4628@.TK2MSFTNGP06.phx.gbl...
> service?
> massive
>

Monday, March 26, 2012

Web service error

Hi!

Recently installed this working web service onto another server and I
am getting this new error when I try to access it. This dll it is complaining
about is a mystery to me. I can find no reference to it anywhere.

I use the invoke button on the web service info page to test it. My normal
app fails to access it too.

Help!

Thanks, Chris

System.IO.FileNotFoundException: File or assembly name _0hbq43i.dll, or one of its dependencies, was not found.
File name: "_0hbq43i.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings)
at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINNT\TEMP\_0hbq43i.dll
LOG: Appbase = file:///c:/inetpub/wwwroot/wss
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINNT/TEMP/_0hbq43i.dll.Does the server have the same version of the Framework that you developed on?
http://www.error-bank.com/microsoft.public.dotnet.framework.webservices_2023c1c9.0403071920.2a495120@.posting.google.com_Thread.aspx

Solution: According to this forum and my test setting so everyone account has
full control on winnt/temp works.

Thanks for taking a look!

Saturday, March 24, 2012

Web Service not working

I have a simple Webservice (the infamous Hello program).
This file is in wwwroot and gets called fine.
****************************************
******************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script Language="Javascript">
var iCallID;
function InitializeService()
{
alert("Before useServer");
service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloService
");
service.HelloService.callService("HelloWorld");
alert("After callService");
}
function ShowResult()
{
alert(event.result.value);
}
</script>
</head>
<body onload="InitializeService()" id="service"
style="behavior:url(webservice.htc)"
onresult="ShowResult">
</body>
</html>
****************************************
********************************
The webservice.htc file is also in wwwroot.
I get the alert statements in InitializeService. But the ShowResult never
gets Called.
I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
it comes up correctly and runs fine.
I have another service with the same problem, what am I missing?
Thanks,
TomCheck the security in your IE. I am not sure which option it is. I have
noticed that sometimes Javascript do not show error message when there is a
security restriction.
--
Vijayakrishna
Software Architect
"tshad" wrote:

> I have a simple Webservice (the infamous Hello program).
> This file is in wwwroot and gets called fine.
> ****************************************
******************************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>Untitled Document</title>
> <script Language="Javascript">
> var iCallID;
> function InitializeService()
> {
> alert("Before useServer");
> service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloServi
ce
> ");
> service.HelloService.callService("HelloWorld");
> alert("After callService");
> }
> function ShowResult()
> {
> alert(event.result.value);
> }
> </script>
> </head>
> <body onload="InitializeService()" id="service"
> style="behavior:url(webservice.htc)"
> onresult="ShowResult">
> </body>
> </html>
> ****************************************
********************************
> The webservice.htc file is also in wwwroot.
> I get the alert statements in InitializeService. But the ShowResult never
> gets Called.
> I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
> it comes up correctly and runs fine.
> I have another service with the same problem, what am I missing?
> Thanks,
> Tom
>
>

Web Service not working

I have a simple Webservice (the infamous Hello program).

This file is in wwwroot and gets called fine.
************************************************** ********************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script Language="Javascript">
var iCallID;

function InitializeService()
{
alert("Before useServer");

service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloService
");
service.HelloService.callService("HelloWorld");
alert("After callService");
}

function ShowResult()
{
alert(event.result.value);
}
</script>
</head
<body onload="InitializeService()" id="service"
style="behavior:url(webservice.htc)"
onresult="ShowResult"
</body>
</html>
************************************************** **********************

The webservice.htc file is also in wwwroot.

I get the alert statements in InitializeService. But the ShowResult never
gets Called.

I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
it comes up correctly and runs fine.

I have another service with the same problem, what am I missing?

Thanks,

TomCheck the security in your IE. I am not sure which option it is. I have
noticed that sometimes Javascript do not show error message when there is a
security restriction.
--
Vijayakrishna
Software Architect

"tshad" wrote:

> I have a simple Webservice (the infamous Hello program).
> This file is in wwwroot and gets called fine.
> ************************************************** ********************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>Untitled Document</title>
> <script Language="Javascript">
> var iCallID;
> function InitializeService()
> {
> alert("Before useServer");
> service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloService
> ");
> service.HelloService.callService("HelloWorld");
> alert("After callService");
> }
> function ShowResult()
> {
> alert(event.result.value);
> }
> </script>
> </head>
> <body onload="InitializeService()" id="service"
> style="behavior:url(webservice.htc)"
> onresult="ShowResult">
> </body>
> </html>
> ************************************************** **********************
> The webservice.htc file is also in wwwroot.
> I get the alert statements in InitializeService. But the ShowResult never
> gets Called.
> I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
> it comes up correctly and runs fine.
> I have another service with the same problem, what am I missing?
> Thanks,
> Tom
>

Web service reference

I should probably add [RESOLVED] to the title since I have this working, but I have some questions about the whole web service reference thing...

My company's sites all have a "find a dealer" page where users can enter a zip/postal code and radius which then calls a web service function that returns a dataset containing a list of dealers within the radius from the entered zip code.

We recently acquired another company who's web site is handled by a third party that still uses old-fashioned asp. They are adding a "find a dealer" page but they don't want the data returned in a .NET dataset - they want it in XML. No problem, right?

I created a new service function that returns an XmlDataDocument:

<WebMethod()> _
Public Function findDealerByZip(ByVal postalCode As String, ByVal radius As String, ByVal distanceUOM As String) As XmlDataDocument
'gathers list of service locations and returns them in an XmlDataDocument

...

End Function

I added the reference to it to a test project, but in that automatically-generated reference the return values are NOT XmlDataDocument:

Public Function findDealerByZip(ByVal postalCode As String, ByVal radius As String, ByVal distanceUOM As String) As System.Xml.XmlNode
Dim results() As Object = Me.Invoke("findDealerByZip", New Object() {postalCode, radius, distanceUOM})
Return CType(results(0),System.Xml.XmlNode)
End Function

The project reference returns an XmlNode, not an XmlDataDocument. I was pulling my hair out trying to understand why I was getting a "Specified cast was not valid" error until I saw the return value in the reference was changed. Once I changed the return type in my test project to expect an XmlNode instead of an XmlDataDocument I no longer get the error.

Does anybody know why the return type in the reference was changed? I don't understand it.I would have said from a cursory glance the namespace you used was looking for xml.node instead of document which is why when you built your solution once you added your webservice the program itself was hardcoded by design would look for xml.node as opposed to xml.document. Are you using Imports System.Xml in the project or something more specific under that heading ?
I do not remember why, but I remember that you cannot return an XMLDataDocument from a web service. You can return an XMLNode, or an XMLDocument, or even a string which your ASP code takes and converts into its XMLDocument, but not XMLDataDocument.

Thursday, March 22, 2012

web service returns blank page when invoking

Hi Everyone!

I am working on a project for a directed study class and am having
problems with webservices.

I have .NET Framework version 1.1.4322.573 with IIS and Frontpage
Extensions installed and Visual Studio 2003. These are all a fresh
install as I removed and re-installed to try and fix the problem to no
avail.

What Happens
============
In Visual Studio I can create a new Web Service project, say
WebService1, and all is created fine on IIS. I then open the default
file created by Visual Studio (service1.asmx) and uncomment the "Hello
World" web service.

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}

I can then browse to http://localhost/WebService1/s ervice1.asmx and
click the link for the web method HelloWorld. I then click the Invoke
button.
A new window opens and it is blank, there is nothing there. On 1 other
machine I have seen this work on campus where XML was returned with the
"Hello World" text in it, but not here. When I try to view source in
Internet Explorer the text for "Source" in the view menu is grayed out.

On 2 machines I have tried to get this to work and I get the same
result. I really do not know where to go.

I am writing an Instant Messenger app for C# and Web Services but I am
at a wall here where I can't move further until I can get the web
services to respond.

Thanks in advance for any help you can send my way!

-David R Underwood
drunderw AT presby.eduDid you rebuild the Web Service after making the change?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"David" <drunderw@.presby.edu> wrote in message
news:1122480013.517287.114680@.g43g2000cwa.googlegr oups.com...
> Hi Everyone!
> I am working on a project for a directed study class and am having
> problems with webservices.
> I have .NET Framework version 1.1.4322.573 with IIS and Frontpage
> Extensions installed and Visual Studio 2003. These are all a fresh
> install as I removed and re-installed to try and fix the problem to no
> avail.
> What Happens
> ============
> In Visual Studio I can create a new Web Service project, say
> WebService1, and all is created fine on IIS. I then open the default
> file created by Visual Studio (service1.asmx) and uncomment the "Hello
> World" web service.
> [WebMethod]
> public string HelloWorld()
> {
> return "Hello World";
> }
> I can then browse to http://localhost/WebService1/s ervice1.asmx and
> click the link for the web method HelloWorld. I then click the Invoke
> button.
> A new window opens and it is blank, there is nothing there. On 1 other
> machine I have seen this work on campus where XML was returned with the
> "Hello World" text in it, but not here. When I try to view source in
> Internet Explorer the text for "Source" in the view menu is grayed out.
> On 2 machines I have tried to get this to work and I get the same
> result. I really do not know where to go.
> I am writing an Instant Messenger app for C# and Web Services but I am
> at a wall here where I can't move further until I can get the web
> services to respond.
> Thanks in advance for any help you can send my way!
> -David R Underwood
> drunderw AT presby.edu
Thanks Kevin for your response. I rebuilt the solution and web service
and I also created a new blank web serivice project in Visual Studio
that was just the default "HelloWorld" web service. Neither will work.
Thanks!
Sorry to disappoint you, David, but I'm mystified. I can't think of a reason
offhand. You might try using the Debugger to step through the code when you
run it using F5.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"David" <drunderw@.presby.edu> wrote in message
news:1122481690.386850.307280@.g14g2000cwa.googlegr oups.com...
> Thanks Kevin for your response. I rebuilt the solution and web service
> and I also created a new blank web serivice project in Visual Studio
> that was just the default "HelloWorld" web service. Neither will work.
> Thanks!
There are no unusual debugging codes - no errors represented. The only
thing that shows up in the debugger is shown below:

Auto-attach to process '[2968] aspnet_wp.exe' on machine 'WEBDEV'
succeeded.
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols
loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regul arexpressions.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regul arexpressions.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\system.web.services.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web.mobile\1.0.500 0.0__b03f5f7f11d50a3a\system.web.mobile.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\webservice1\7984f4c2\26c7a006\assembly\dl2\3 99d6382\f02f7441_d592c501\webservice1.dll',
Symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.thunk.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.thunk.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\webservice1\7984f4c2\26c7a006\wl0p5036.dll', Symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net
files\webservice1\7984f4c2\26c7a006\ibeem5u2.dll', Symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'e72kt9_f',
No symbols loaded.
Ok so I decided to load it in Mozilla instead of IE and Mozilla
displayed it but with an error: At the top of the page it reads:

"This XML file does not appear to have any style information associated
with it. The document tree is shown below."

Below it is:
<string>Hello World</string
Post the source code from Mozilla.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"David" <drunderw@.presby.edu> wrote in message
news:1122487914.869168.251580@.g43g2000cwa.googlegr oups.com...
> Ok so I decided to load it in Mozilla instead of IE and Mozilla
> displayed it but with an error: At the top of the page it reads:
> "This XML file does not appear to have any style information associated
> with it. The document tree is shown below."
> Below it is:
> <string>Hello World</string
http://localhost/WebService1/Service1.asmx?WSDL
===========================================

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
<s:element name="HelloWorld">
<s:complexType />
</s:element>
<s:element name="HelloWorldResponse">
<s:complexType>
<s:sequence
<s:element minOccurs="0" maxOccurs="1"
name="HelloWorldResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="HelloWorldSoapIn">
<wsdl:part name="parameters" element="tns:HelloWorld" />
</wsdl:message
<wsdl:message name="HelloWorldSoapOut">
<wsdl:part name="parameters" element="tns:HelloWorldResponse" />
</wsdl:message>
<wsdl:portType name="Service1Soap">
<wsdl:operation name="HelloWorld">
<wsdl:input message="tns:HelloWorldSoapIn" />
<wsdl:output message="tns:HelloWorldSoapOut" />
</wsdl:operation>
</wsdl:portType
<wsdl:binding name="Service1Soap" type="tns:Service1Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="HelloWorld">
<soap:operation soapAction="http://tempuri.org/HelloWorld"
style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" /
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service1">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/" />
<wsdl:port name="Service1Soap" binding="tns:Service1Soap">
<soap:address
location="http://localhost/WebService1/Service1.asmx" />
</wsdl:port>
</wsdl:service
</wsdl:definitions
Source from: http://localhost/WebService1/Service1.asmx/HelloWorld
================================================== ====

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">Hello World</string
Very odd. I copied and pasted this into NotePad, saved it as an XML file,
and opened it in IE, with no problems. Perhaps it is an IE setting that is
causing your problem.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"David" <drunderw@.presby.edu> wrote in message
news:1122489233.253537.143320@.g44g2000cwa.googlegr oups.com...
> Source from: http://localhost/WebService1/Service1.asmx/HelloWorld
> ================================================== ====
> <?xml version="1.0" encoding="utf-8"?>
> <string xmlns="http://tempuri.org/">Hello World</string
https://blogs.msdn.com/ie/archive/2.../25/421763.aspx

Apparently installing Netscape 8 will kill Internet Explorer's ability
to render XML. See the link above.

Thank you so very much for your help!! Have a great afternoon and God
bless!

-David

web service returns blank page when invoking

Hi Everyone!
I am working on a project for a directed study class and am having
problems with webservices.
I have .NET Framework version 1.1.4322.573 with IIS and Frontpage
Extensions installed and Visual Studio 2003. These are all a fresh
install as I removed and re-installed to try and fix the problem to no
avail.
What Happens
============
In Visual Studio I can create a new Web Service project, say
WebService1, and all is created fine on IIS. I then open the default
file created by Visual Studio (service1.asmx) and uncomment the "Hello
World" web service.
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
I can then browse to http://localhost/WebService1/s ervice1.asmx and
click the link for the web method HelloWorld. I then click the Invoke
button.
A new window opens and it is blank, there is nothing there. On 1 other
machine I have seen this work on campus where XML was returned with the
"Hello World" text in it, but not here. When I try to view source in
Internet Explorer the text for "Source" in the view menu is grayed out.
On 2 machines I have tried to get this to work and I get the same
result. I really do not know where to go.
I am writing an Instant Messenger app for C# and Web Services but I am
at a wall here where I can't move further until I can get the web
services to respond.
Thanks in advance for any help you can send my way!
-David R Underwood
drunderw AT presby.eduDid you rebuild the Web Service after making the change?
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven
"David" <drunderw@.presby.edu> wrote in message
news:1122480013.517287.114680@.g43g2000cwa.googlegroups.com...
> Hi Everyone!
> I am working on a project for a directed study class and am having
> problems with webservices.
> I have .NET Framework version 1.1.4322.573 with IIS and Frontpage
> Extensions installed and Visual Studio 2003. These are all a fresh
> install as I removed and re-installed to try and fix the problem to no
> avail.
> What Happens
> ============
> In Visual Studio I can create a new Web Service project, say
> WebService1, and all is created fine on IIS. I then open the default
> file created by Visual Studio (service1.asmx) and uncomment the "Hello
> World" web service.
> [WebMethod]
> public string HelloWorld()
> {
> return "Hello World";
> }
> I can then browse to http://localhost/WebService1/s ervice1.asmx and
> click the link for the web method HelloWorld. I then click the Invoke
> button.
> A new window opens and it is blank, there is nothing there. On 1 other
> machine I have seen this work on campus where XML was returned with the
> "Hello World" text in it, but not here. When I try to view source in
> Internet Explorer the text for "Source" in the view menu is grayed out.
> On 2 machines I have tried to get this to work and I get the same
> result. I really do not know where to go.
> I am writing an Instant Messenger app for C# and Web Services but I am
> at a wall here where I can't move further until I can get the web
> services to respond.
> Thanks in advance for any help you can send my way!
> -David R Underwood
> drunderw AT presby.edu
>
Thanks Kevin for your response. I rebuilt the solution and web service
and I also created a new blank web serivice project in Visual Studio
that was just the default "HelloWorld" web service. Neither will work.
Thanks!
Sorry to disappoint you, David, but I'm mystified. I can't think of a reason
offhand. You might try using the Debugger to step through the code when you
run it using F5.
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven
"David" <drunderw@.presby.edu> wrote in message
news:1122481690.386850.307280@.g14g2000cwa.googlegroups.com...
> Thanks Kevin for your response. I rebuilt the solution and web service
> and I also created a new blank web serivice project in Visual Studio
> that was just the default "HelloWorld" web service. Neither will work.
> Thanks!
>
There are no unusual debugging codes - no errors represented. The only
thing that shows up in the debugger is shown below:
Auto-attach to process '[2968] aspnet_wp.exe' on machine 'WEBDEV'
succeeded.
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.
dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.
dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.
dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.
dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web.regularexpressions\1.0.5000.0__b03f5f7f1
1d50a3a\system.web.regularexpressions.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.web.regularexpressions\1.0.5000.0__b03f5f7f1
1d50a3a\system.web.regularexpressions.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\sy
stem.web.services.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.
drawing.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.
drawing.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\syst
em.web.mobile.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\webservice1\7984f4c2\26c7a006\asse
mbly\dl2\399d6382\f02f7441_d592c501\
webservice1.dll',
Symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.dat
a.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.dat
a.dll',
No symbols loaded.
'DefaultDomain': Loaded
'c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.thunk.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50
a3a\system.enterpriseservices.thunk.dll',
No symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\webservice1\7984f4c2\26c7a006\wl0p
5036.dll', Symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\webservice1\7984f4c2\26c7a006\ibee
m5u2.dll', Symbols loaded.
'/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'e72kt9_f',
No symbols loaded.
Ok so I decided to load it in Mozilla instead of IE and Mozilla
displayed it but with an error: At the top of the page it reads:
"This XML file does not appear to have any style information associated
with it. The document tree is shown below."
Below it is:
<string>Hello World</string>
Post the source code from Mozilla.
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven
"David" <drunderw@.presby.edu> wrote in message
news:1122487914.869168.251580@.g43g2000cwa.googlegroups.com...
> Ok so I decided to load it in Mozilla instead of IE and Mozilla
> displayed it but with an error: At the top of the page it reads:
> "This XML file does not appear to have any style information associated
> with it. The document tree is shown below."
> Below it is:
> <string>Hello World</string>
>
http://localhost/WebService1/Service1.asmx?WSDL
========================================
===
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
<s:element name="HelloWorld">
<s:complexType />
</s:element>
<s:element name="HelloWorldResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="HelloWorldResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="HelloWorldSoapIn">
<wsdl:part name="parameters" element="tns:HelloWorld" />
</wsdl:message>
<wsdl:message name="HelloWorldSoapOut">
<wsdl:part name="parameters" element="tns:HelloWorldResponse" />
</wsdl:message>
<wsdl:portType name="Service1Soap">
<wsdl:operation name="HelloWorld">
<wsdl:input message="tns:HelloWorldSoapIn" />
<wsdl:output message="tns:HelloWorldSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="Service1Soap" type="tns:Service1Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="HelloWorld">
<soap:operation soapAction="http://tempuri.org/HelloWorld"
style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Service1">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/" />
<wsdl:port name="Service1Soap" binding="tns:Service1Soap">
<soap:address
location="http://localhost/WebService1/Service1.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Source from: http://localhost/WebService1/Service1.asmx/HelloWorld
========================================
==============
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">Hello World</string>
Very odd. I copied and pasted this into NotePad, saved it as an XML file,
and opened it in IE, with no problems. Perhaps it is an IE setting that is
causing your problem.
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven
"David" <drunderw@.presby.edu> wrote in message
news:1122489233.253537.143320@.g44g2000cwa.googlegroups.com...
> Source from: http://localhost/WebService1/Service1.asmx/HelloWorld
> ========================================
==============
> <?xml version="1.0" encoding="utf-8"?>
> <string xmlns="http://tempuri.org/">Hello World</string>
>

web service runs after calling ASPX page is closed

I have been racking my brain trying to figure this one out, so any ideas would be appreciated!!

I have been working on a web service. From the web service call, queries are executed and update sql's are executed. The test aspx page that calls the web service is just looping through a ton of records and calling the web service in a loop over and over. When I close the web page, the web service is obviously still running because I can open up Sql Profiler for Sql Server 2000 and see queries still getting launced. I can use Query Analyzer to see the number of non null values for a field in the table that gets updated and it keeps going down (and since the update sql from the web service is setting this field to a non null value, it must still be running).

Is this normal or am I missing something? Is there a way to control this? I'm worried about our application going into production and many users abandoning their browser session yet the web service and sql server keep on working eating up valuable resources.

Thanks for any thoughts and I can post code if that would help.This is normal behavior.

Inside the ASPX page, you can check to see if the client is still connected with Response.IsClientConnected.

Be very careful, however, because on IIS 5.0 this check needs to make an out of process call, which could end up hurting performance. You'll need to do some measurements of your application.

Web service stopped working

Hi,I have two web applications that run on the same server. Oneapplication publishes couple of web service methods. The otherapplication consumes this web service. Everything was working fine.Last week we moved our applications to a new server, behind a firewall.Ever since I get this error message from the second application thatconsumes the web service "The underlying connection was closed: Unableto connect to the remote server." Is there any firewall setting that iscausing this?Thanks.Well, try turning the firewall off... does it keep happening?

Hi,

I got the same problem so I deleted the web reference and added it again and it started working fine :)

The problem is that ASP.NET 2.0 built in server uses different ports to access the server. So, the port that you used yesterday might not be valid today.


I can't turn off the firewall and test it. its a hardware firewall,I don't have access to it. If I can be sure its the firewall blockingsome port, I can ask the ISP guys to open up the port.

I tried deleting and adding the reference. It did not help.


I would try using a packet analyzer or port monitor to see what ports the service is trying to use.

Monday, March 12, 2012

Web Services Not Working

Dear Gurus:

On my local computer I am running IIS 5.0 and I have written a web service, and I have put all relevant files in my local inetpub/wwwroot folder and my web service works fine. I get the proper asmx interface.

But when I move the relevant web service files to a server running IIS 6.0 and open IE and put in the correct URL all I get is the following line of text at the top of my page in IE:

<%@dotnet.itags.org. WebService Language="c#" Codebehind="SalesReport.asmx.cs" Class="SalesReportWebService.SalesReport" %>

My web service was written and compiled with VisualStudio.net.

Yes, I have added my .dll as an allowed web service extension.

Do I have to register my web service somewhere? Any idea what might be going wrong?

Thank you in advance,

Kailin.

OK I have now fixed this problem.

The problem was somebody had modified the machine.config file on the computer where the web service was not working. The <httphandlers> section that setasmx as a recognized file type in themachine.config file was removed rendering the web service inoperable. I have now replaced the broken machine.config file with a default machine.config file and this fixed the problem.

Thank you to anyone who took some time to look into this issue.

Web services stop working intermittently.....

Recently been having an issue pop up with a web service thats been
running fine for months.

The service in question takes calls from our public web server, then
logs data to a database server behind a firewall. The code has been
in place (and working fine) for months. Now we have a slightly larger
load on the server (nothing it shouldnt be able to handle) and we're
noticing the service just starts randomly returning random Internal
Server Error (Error 500). Ive enabled network tracing and can make
the same call locally on the machine running the web service, and it
returns data perfectly fine.

This is all running framework 2.0

Any ideas?

Thanks!
-ChrisOn Apr 20, 9:18 pm, "John Saunders [MVP]" <john.saunders at
trizetto.comwrote:

Quote:

Originally Posted by

"chrisexv6" <cha...@.gmail.comwrote in message
>
news:1177111758.656751.304900@.q75g2000hsh.googlegr oups.com...
>

Quote:

Originally Posted by

Recently been having an issue pop up with a web service thats been
running fine for months.


>

Quote:

Originally Posted by

The service in question takes calls from our public web server, then
logs data to a database server behind a firewall. The code has been
in place (and working fine) for months. Now we have a slightly larger
load on the server (nothing it shouldnt be able to handle) and we're
noticing the service just starts randomly returning random Internal
Server Error (Error 500). Ive enabled network tracing and can make
the same call locally on the machine running the web service, and it
returns data perfectly fine.


>

Quote:

Originally Posted by

This is all running framework 2.0


>

Quote:

Originally Posted by

Any ideas?


>
What's it say in the event log?
--
>
John Saunders [MVP]


Event log just shows "operation timed out". I dont have access to the
logs right now, so I cant tell if the errors in the network trace
correspond to the "operation timed out" messages in Event Viewer.

Basically it looks like the web service call is never returning to the
web server. Keep in mind that at no time does the webservice stop
responding locally (I can use the asmx page on the server itself and
returns fine).

Is there a way to access the asmx page remotely (from the web server)
and make a call to the service? I know if I try now I just get a
message saying the methods can only be invoked locally......but if
there is a way to try it from the web server side I can at least try
to figure out if the disconnect is in my code calling the service or
the service itself.

-Chris
"chrisexv6" <charry@.gmail.comwrote in message
news:1177111758.656751.304900@.q75g2000hsh.googlegr oups.com...

Quote:

Originally Posted by

Recently been having an issue pop up with a web service thats been
running fine for months.
>
The service in question takes calls from our public web server, then
logs data to a database server behind a firewall. The code has been
in place (and working fine) for months. Now we have a slightly larger
load on the server (nothing it shouldnt be able to handle) and we're
noticing the service just starts randomly returning random Internal
Server Error (Error 500). Ive enabled network tracing and can make
the same call locally on the machine running the web service, and it
returns data perfectly fine.
>
This is all running framework 2.0
>
Any ideas?


What's it say in the event log?
--

John Saunders [MVP]

Web services stop working intermittently.....

Recently been having an issue pop up with a web service thats been
running fine for months.
The service in question takes calls from our public web server, then
logs data to a database server behind a firewall. The code has been
in place (and working fine) for months. Now we have a slightly larger
load on the server (nothing it shouldnt be able to handle) and we're
noticing the service just starts randomly returning random Internal
Server Error (Error 500). Ive enabled network tracing and can make
the same call locally on the machine running the web service, and it
returns data perfectly fine.
This is all running framework 2.0
Any ideas?
Thanks!
-Chris"chrisexv6" <charry@.gmail.com> wrote in message
news:1177111758.656751.304900@.q75g2000hsh.googlegroups.com...
> Recently been having an issue pop up with a web service thats been
> running fine for months.
> The service in question takes calls from our public web server, then
> logs data to a database server behind a firewall. The code has been
> in place (and working fine) for months. Now we have a slightly larger
> load on the server (nothing it shouldnt be able to handle) and we're
> noticing the service just starts randomly returning random Internal
> Server Error (Error 500). Ive enabled network tracing and can make
> the same call locally on the machine running the web service, and it
> returns data perfectly fine.
> This is all running framework 2.0
> Any ideas?
What's it say in the event log?
--
John Saunders [MVP]
On Apr 20, 9:18 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
> "chrisexv6" <cha...@.gmail.com> wrote in message
> news:1177111758.656751.304900@.q75g2000hsh.googlegroups.com...
>
>
>
>
> What's it say in the event log?
> --
> John Saunders [MVP]
Event log just shows "operation timed out". I dont have access to the
logs right now, so I cant tell if the errors in the network trace
correspond to the "operation timed out" messages in Event Viewer.
Basically it looks like the web service call is never returning to the
web server. Keep in mind that at no time does the webservice stop
responding locally (I can use the asmx page on the server itself and
returns fine).
Is there a way to access the asmx page remotely (from the web server)
and make a call to the service? I know if I try now I just get a
message saying the methods can only be invoked locally......but if
there is a way to try it from the web server side I can at least try
to figure out if the disconnect is in my code calling the service or
the service itself.
-Chris