|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Hello World Web ServiceI recently developed the hello world web service in Visual Studio 2005. If I right-click on the Service.asmx file that is created, everything works fine in Visual Studio. After verifying this, I did a Publish Web Site for this web service. After that, I installed IIS and wanted to view hello world from another machine to my development machine. However, after publishing the web site, if I go to look at it from another box on the network, I get the following error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. A name was started with an invalid character. Error processing resource 'http://192.168.40.20/XMLService/Serivce.asmx'. Line 1, Position 2. After looking around on the net for a while, I've tried the following: \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -r \Windows\Microsoft.NET\Framework\v2.0.50727\regsvr32 aspnet_isapi.dll I tried the above for both version 1.1 and 2.0 even though I using 2.0. After that didn't seem to work, I tried re-installing/re-pairing version 1.1 and version 2.0 of the .NET framework. After that didn't work, I tried enabling Access data sources across domains in IE on the client. However, this didn't seem to work either. All I want to do is see the page that comes up in Visual Studio 2005 when I right-click on Service.asmx and select View in Browser from a remote client. Does anybody have any other ideas? Thank you, -- John Well, I think I know what the problem was. I went through all of these steps
again, but this time I installed my virtual directory under \Inetpub\wwwroot -- John Show quote "John Thompson" wrote: > Hello, > > I recently developed the hello world web service in Visual Studio 2005. If > I right-click on the Service.asmx file that is created, everything works fine > in Visual Studio. After verifying this, I did a Publish Web Site for this > web service. After that, I installed IIS and wanted to view hello world from > another machine to my development machine. > > However, after publishing the web site, if I go to look at it from another > box on the network, I get the following error: > > The XML page cannot be displayed > > Cannot view XML input using XSL style sheet. Please correct the error and > then click the Refresh button, or try again later. > > A name was started with an invalid character. Error processing resource > 'http://192.168.40.20/XMLService/Serivce.asmx'. Line 1, Position 2. > > > After looking around on the net for a while, I've tried the following: > > \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i > \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -r > > \Windows\Microsoft.NET\Framework\v2.0.50727\regsvr32 aspnet_isapi.dll > > I tried the above for both version 1.1 and 2.0 even though I using 2.0. > > After that didn't seem to work, I tried re-installing/re-pairing version 1.1 > and version 2.0 of the .NET framework. > > After that didn't work, I tried enabling Access data sources across domains > in IE on the client. However, this didn't seem to work either. > > All I want to do is see the page that comes up in Visual Studio 2005 when I > right-click on Service.asmx and select View in Browser from a remote client. > > Does anybody have any other ideas? > > Thank you, > -- John Is that problem related to your VSTO issue you posted later?
-- Show quoteRegards, Alvin Bruney [MVP ASP.NET] [Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc Forth-coming VSTO.NET - Wrox/Wiley 2006 ------------------------------------------------------- "John Thompson" <JohnThomp***@discussions.microsoft.com> wrote in message news:B24E8B9C-3130-4EEB-8440-BF9E46C6F741@microsoft.com... > Well, I think I know what the problem was. I went through all of these steps > again, but this time I installed my virtual directory under \Inetpub\wwwroot > > -- John > > > "John Thompson" wrote: > > > Hello, > > > > I recently developed the hello world web service in Visual Studio 2005. If > > I right-click on the Service.asmx file that is created, everything works fine > > in Visual Studio. After verifying this, I did a Publish Web Site for this > > web service. After that, I installed IIS and wanted to view hello world from > > another machine to my development machine. > > > > However, after publishing the web site, if I go to look at it from another > > box on the network, I get the following error: > > > > The XML page cannot be displayed > > > > Cannot view XML input using XSL style sheet. Please correct the error and > > then click the Refresh button, or try again later. > > > > A name was started with an invalid character. Error processing resource > > 'http://192.168.40.20/XMLService/Serivce.asmx'. Line 1, Position 2. > > > > > > After looking around on the net for a while, I've tried the following: > > > > \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i > > \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -r > > > > \Windows\Microsoft.NET\Framework\v2.0.50727\regsvr32 aspnet_isapi.dll > > > > I tried the above for both version 1.1 and 2.0 even though I using 2.0. > > > > After that didn't seem to work, I tried re-installing/re-pairing version 1.1 > > and version 2.0 of the .NET framework. > > > > After that didn't work, I tried enabling Access data sources across domains > > in IE on the client. However, this didn't seem to work either. > > > > All I want to do is see the page that comes up in Visual Studio 2005 when I > > right-click on Service.asmx and select View in Browser from a remote client. > > > > Does anybody have any other ideas? > > > > Thank you, > > -- John John
If I'm reading this correctly, you created the web service using the file based web server and then "Published". Then *after* you published, you installed IIS, which means you couldn't have published to the webserver as it didn't exist. Here are some potentially dumb questions as I don't know what your background is. If you open up IIS, can you see your web service? Is it an application? Can you right click and browse the asmx file right from IIS? Can you browse it on the local machine before even trying to browse from another? When you publish, are you sure you are publishing to HTTP and not to the file system? julie lerman Show quote "John Thompson" <JohnThomp***@discussions.microsoft.com> wrote in message news:56662508-4D0D-466B-BC92-1A7BECD942E8@microsoft.com... > Hello, > > I recently developed the hello world web service in Visual Studio 2005. > If > I right-click on the Service.asmx file that is created, everything works > fine > in Visual Studio. After verifying this, I did a Publish Web Site for this > web service. After that, I installed IIS and wanted to view hello world > from > another machine to my development machine. > > However, after publishing the web site, if I go to look at it from another > box on the network, I get the following error: > > The XML page cannot be displayed > > Cannot view XML input using XSL style sheet. Please correct the error and > then click the Refresh button, or try again later. > > A name was started with an invalid character. Error processing resource > 'http://192.168.40.20/XMLService/Serivce.asmx'. Line 1, Position 2. > > > After looking around on the net for a while, I've tried the following: > > \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i > \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -r > > \Windows\Microsoft.NET\Framework\v2.0.50727\regsvr32 aspnet_isapi.dll > > I tried the above for both version 1.1 and 2.0 even though I using 2.0. > > After that didn't seem to work, I tried re-installing/re-pairing version > 1.1 > and version 2.0 of the .NET framework. > > After that didn't work, I tried enabling Access data sources across > domains > in IE on the client. However, this didn't seem to work either. > > All I want to do is see the page that comes up in Visual Studio 2005 when > I > right-click on Service.asmx and select View in Browser from a remote > client. > > Does anybody have any other ideas? > > Thank you, > -- John heh, we must have been typing our messages at the same time. :-)
Show quote "Julie Lerman" <jler***@thedatafarm.com> wrote in message news:e3Jfm3EKGHA.2828@TK2MSFTNGP12.phx.gbl... > John > > If I'm reading this correctly, you created the web service using the file > based web server and then "Published". Then *after* you published, you > installed IIS, which means you couldn't have published to the webserver as > it didn't exist. > > Here are some potentially dumb questions as I don't know what your > background is. > > If you open up IIS, can you see your web service? Is it an application? > > Can you right click and browse the asmx file right from IIS? > > Can you browse it on the local machine before even trying to browse from > another? > > When you publish, are you sure you are publishing to HTTP and not to the > file system? > > julie lerman > > > > "John Thompson" <JohnThomp***@discussions.microsoft.com> wrote in message > news:56662508-4D0D-466B-BC92-1A7BECD942E8@microsoft.com... >> Hello, >> >> I recently developed the hello world web service in Visual Studio 2005. >> If >> I right-click on the Service.asmx file that is created, everything works >> fine >> in Visual Studio. After verifying this, I did a Publish Web Site for >> this >> web service. After that, I installed IIS and wanted to view hello world >> from >> another machine to my development machine. >> >> However, after publishing the web site, if I go to look at it from >> another >> box on the network, I get the following error: >> >> The XML page cannot be displayed >> >> Cannot view XML input using XSL style sheet. Please correct the error >> and >> then click the Refresh button, or try again later. >> >> A name was started with an invalid character. Error processing resource >> 'http://192.168.40.20/XMLService/Serivce.asmx'. Line 1, Position 2. >> >> >> After looking around on the net for a while, I've tried the following: >> >> \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i >> \Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -r >> >> \Windows\Microsoft.NET\Framework\v2.0.50727\regsvr32 aspnet_isapi.dll >> >> I tried the above for both version 1.1 and 2.0 even though I using 2.0. >> >> After that didn't seem to work, I tried re-installing/re-pairing version >> 1.1 >> and version 2.0 of the .NET framework. >> >> After that didn't work, I tried enabling Access data sources across >> domains >> in IE on the client. However, this didn't seem to work either. >> >> All I want to do is see the page that comes up in Visual Studio 2005 when >> I >> right-click on Service.asmx and select View in Browser from a remote >> client. >> >> Does anybody have any other ideas? >> >> Thank you, >> -- John > > |
|||||||||||||||||||||||