how to convert webservice app to .Net application on IIS?

how to convert webservice app to .Net application on IIS?

am 16.01.2008 17:14:04 von BC

Hello,

I just created a Hello World webservice in VB2005 (this is my first
webservice ever -- .Net 2.0 framework). I ran it in debug mode on my local
workstation and the page that came up said Hello World and said to change the
webservice namespace from tempuri.org to something else so that the xml file
could be created. I did that. Then it said to make a web reference (say
what?) The only web reference I was able to make was to the local solution:
Local Host. Then in the build I selected publish. The project was copied
to a virtual directory on my IIS webserver (Service1.asmx and related files).

When I tried to call it from Internet Explorer I got an error message. I
typed something like

myVirtualDir/mywebservice/Service1.asmx

I am told that I need to convert the webservice project to a .Net
application on IIS. On my IIS (win2003 server) when I right click on the
virtual directory that I deployed the webservice project to -- the properties
dialog does not contain an ASP.Net tab. But in the Directory tab there is a
"Create" button adjacent to a textbox that is titled "Application Name" which
contains the text "Default application" grayed out. The textbox is grayed
out, but the Create button is not. Is this where I can create my webservice
application? How to proceed?

Thanks
BC

Re: how to convert webservice app to .Net application on IIS?

am 17.01.2008 03:29:57 von David Wang

On Jan 16, 8:14=A0am, BC wrote:
> Hello,
>
> I just created a Hello World webservice in VB2005 (this is my first
> webservice ever -- .Net 2.0 framework). =A0I ran it in debug mode on my lo=
cal
> workstation and the page that came up said Hello World and said to change =
the
> webservice namespace from tempuri.org to something else so that the xml fi=
le
> could be created. =A0I did that. =A0Then it said to make a web reference (=
say
> what?) =A0The only web reference I was able to make =A0was to the local so=
lution:
> Local Host. =A0 Then in the build I selected publish. =A0The project was c=
opied
> to a virtual directory on my IIS webserver (Service1.asmx and related file=
s).
>
> When I tried to call it from Internet Explorer =A0I got an error message. =
=A0I
> typed something like
>
> myVirtualDir/mywebservice/Service1.asmx
>
> I am told that I need to convert the webservice project to a .Net
> application on IIS. =A0On my IIS (win2003 server) when I right click on th=
e
> virtual directory that I deployed the webservice project to -- the propert=
ies
> dialog does not contain an ASP.Net tab. =A0But in the Directory tab there =
is a
> "Create" button adjacent to a textbox that is titled "Application Name" wh=
ich
> contains the text "Default application" grayed out. =A0The textbox is gray=
ed
> out, but the Create button is not. =A0Is this where I can create my webser=
vice
> application? =A0How to proceed?
>
> Thanks
> BC


Click the create button and give the same name as the virtual
directory. Then VS should recognize this as an ASP.Net application
hosted on a web server.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//