Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   Creating New Web Service (http://www.velocityreviews.com/forums/t784242-creating-new-web-service.html)

Fred Herring 12-15-2004 04:49 PM

Creating New Web Service
 
I currently run a web service on my Windows 2003 Server. I want to create a
second service but I have problems when I try to create
(http:\\localhost\webservice2 )it in VB.net 2003. I get an error about some
sharing violation and frontpage extensions. So I am curious about what
issues can crop up when a server hosts more than one web service.

Thanks,
Fred Herring

Dan Rogers 12-15-2004 06:05 PM

RE: Creating New Web Service
 
Hi Fred,

Does the server have Front Page extensions installed? Is this server your
dev machine? What steps are you taking to create the second service?

Dan Rogers
Microsoft Corporation
--------------------
>Thread-Topic: Creating New Web Service
>thread-index: AcTixf66UkXunQkpTH21KgIsHuQljg==
>X-WBNR-Posting-Host: 130.76.32.16
>From: =?Utf-8?B?RnJlZCBIZXJyaW5n?= <FredHerring@discussions.microsoft.com>
>Subject: Creating New Web Service
>Date: Wed, 15 Dec 2004 08:49:08 -0800
>Lines: 8
>Message-ID: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl

microsoft.public.dotnet.framework.aspnet.webservic es:27214
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>I currently run a web service on my Windows 2003 Server. I want to create

a
>second service but I have problems when I try to create
>(http:\\localhost\webservice2 )it in VB.net 2003. I get an error about

some
>sharing violation and frontpage extensions. So I am curious about what
>issues can crop up when a server hosts more than one web service.
>
>Thanks,
>Fred Herring
>



Fred Herring 12-15-2004 07:45 PM

RE: Creating New Web Service
 
Thanks for getting back with me, Dan. I am just starting visual studio 2003
and selecting an asp web service as the project type. It then comes up with
text fields that points to http:\\localhost\webservice1. I change the
webservice name to something else and hit enter and then get the error about
not being able to ceate it because of sharing difficulties.

Fred Herring

"Fred Herring" wrote:

> I currently run a web service on my Windows 2003 Server. I want to create a
> second service but I have problems when I try to create
> (http:\\localhost\webservice2 )it in VB.net 2003. I get an error about some
> sharing violation and frontpage extensions. So I am curious about what
> issues can crop up when a server hosts more than one web service.
>
> Thanks,
> Fred Herring


Dan Rogers 12-16-2004 07:08 PM

RE: Creating New Web Service
 
Hi Fred,

If the name you select already exists, you will get error messages like
this. Try a brand new name that couldn't possibly have been chosen before.
Does it still happen?


If it does, try repairing your IIS instalation. File sharing issues
shouldn't be happening unless there are two programs accessing the same
directory or file, and one has it open with a lock.

Dan


--------------------
>Thread-Topic: Creating New Web Service
>thread-index: AcTi3pDa4V9Qe1CWQ8CwXkVteS4/Ig==
>X-WBNR-Posting-Host: 130.76.32.145
>From: =?Utf-8?B?RnJlZCBIZXJyaW5n?= <FredHerring@discussions.microsoft.com>
>References: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>
>Subject: RE: Creating New Web Service
>Date: Wed, 15 Dec 2004 11:45:01 -0800
>Lines: 18
>Message-ID: <D2AEAC0B-4062-40C4-BE42-D4F1E4DB0857@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl

microsoft.public.dotnet.framework.aspnet.webservic es:27229
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>Thanks for getting back with me, Dan. I am just starting visual studio

2003
>and selecting an asp web service as the project type. It then comes up

with
>text fields that points to http:\\localhost\webservice1. I change the
>webservice name to something else and hit enter and then get the error

about
>not being able to ceate it because of sharing difficulties.
>
>Fred Herring
>
>"Fred Herring" wrote:
>
>> I currently run a web service on my Windows 2003 Server. I want to

create a
>> second service but I have problems when I try to create
>> (http:\\localhost\webservice2 )it in VB.net 2003. I get an error about

some
>> sharing violation and frontpage extensions. So I am curious about what
>> issues can crop up when a server hosts more than one web service.
>>
>> Thanks,
>> Fred Herring

>



Fred Herring 12-16-2004 08:31 PM

RE: Creating New Web Service
 
No, I am careful to give a fresh name for the new service when I try to
create it. I will try resetting iis. My dev. machine is windows server
2003. I currently host my web service and a web page on this server. The
web page shares some folders for files needed by the web page. This is my
system status when I start vb.net and try to create a new web service
application. This is when I get an error message about sharing.

Fred Herring

"Dan Rogers" wrote:

> Hi Fred,
>
> If the name you select already exists, you will get error messages like
> this. Try a brand new name that couldn't possibly have been chosen before.
> Does it still happen?
>
>
> If it does, try repairing your IIS instalation. File sharing issues
> shouldn't be happening unless there are two programs accessing the same
> directory or file, and one has it open with a lock.
>
> Dan
>
>
> --------------------
> >Thread-Topic: Creating New Web Service
> >thread-index: AcTi3pDa4V9Qe1CWQ8CwXkVteS4/Ig==
> >X-WBNR-Posting-Host: 130.76.32.145
> >From: =?Utf-8?B?RnJlZCBIZXJyaW5n?= <FredHerring@discussions.microsoft.com>
> >References: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>
> >Subject: RE: Creating New Web Service
> >Date: Wed, 15 Dec 2004 11:45:01 -0800
> >Lines: 18
> >Message-ID: <D2AEAC0B-4062-40C4-BE42-D4F1E4DB0857@microsoft.com>
> >MIME-Version: 1.0
> >Content-Type: text/plain;
> > charset="Utf-8"
> >Content-Transfer-Encoding: 7bit
> >X-Newsreader: Microsoft CDO for Windows 2000
> >Content-Class: urn:content-classes:message
> >Importance: normal
> >Priority: normal
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >Xref: cpmsftngxa10.phx.gbl

> microsoft.public.dotnet.framework.aspnet.webservic es:27229
> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
> >
> >Thanks for getting back with me, Dan. I am just starting visual studio

> 2003
> >and selecting an asp web service as the project type. It then comes up

> with
> >text fields that points to http:\\localhost\webservice1. I change the
> >webservice name to something else and hit enter and then get the error

> about
> >not being able to ceate it because of sharing difficulties.
> >
> >Fred Herring
> >
> >"Fred Herring" wrote:
> >
> >> I currently run a web service on my Windows 2003 Server. I want to

> create a
> >> second service but I have problems when I try to create
> >> (http:\\localhost\webservice2 )it in VB.net 2003. I get an error about

> some
> >> sharing violation and frontpage extensions. So I am curious about what
> >> issues can crop up when a server hosts more than one web service.
> >>
> >> Thanks,
> >> Fred Herring

> >

>
>


Dan Rogers 12-20-2004 11:07 PM

RE: Creating New Web Service
 
Hi Fred,

Since web services don't return web pages, I suggest you try separating
these into two VROOT's. This way the conflict in the way the applications
get configured for a web service and a web application won't be causing you
issues.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
>Thread-Topic: Creating New Web Service
>thread-index: AcTjrip1gLkXnRa7TF+AclxNFC+mwA==
>X-WBNR-Posting-Host: 130.76.32.144
>From: =?Utf-8?B?RnJlZCBIZXJyaW5n?= <FredHerring@discussions.microsoft.com>
>References: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>

<D2AEAC0B-4062-40C4-BE42-D4F1E4DB0857@microsoft.com>
<$z$pjK64EHA.1964@cpmsftngxa10.phx.gbl>
>Subject: RE: Creating New Web Service
>Date: Thu, 16 Dec 2004 12:31:04 -0800
>Lines: 77
>Message-ID: <E589DE8A-7410-4333-BDDA-C8A2334EEDB2@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl

microsoft.public.dotnet.framework.aspnet.webservic es:27251
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>No, I am careful to give a fresh name for the new service when I try to
>create it. I will try resetting iis. My dev. machine is windows server
>2003. I currently host my web service and a web page on this server. The
>web page shares some folders for files needed by the web page. This is my
>system status when I start vb.net and try to create a new web service
>application. This is when I get an error message about sharing.
>
>Fred Herring
>
>"Dan Rogers" wrote:
>
>> Hi Fred,
>>
>> If the name you select already exists, you will get error messages like
>> this. Try a brand new name that couldn't possibly have been chosen

before.
>> Does it still happen?
>>
>>
>> If it does, try repairing your IIS instalation. File sharing issues
>> shouldn't be happening unless there are two programs accessing the same
>> directory or file, and one has it open with a lock.
>>
>> Dan
>>
>>
>> --------------------
>> >Thread-Topic: Creating New Web Service
>> >thread-index: AcTi3pDa4V9Qe1CWQ8CwXkVteS4/Ig==
>> >X-WBNR-Posting-Host: 130.76.32.145
>> >From: =?Utf-8?B?RnJlZCBIZXJyaW5n?=

<FredHerring@discussions.microsoft.com>
>> >References: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>
>> >Subject: RE: Creating New Web Service
>> >Date: Wed, 15 Dec 2004 11:45:01 -0800
>> >Lines: 18
>> >Message-ID: <D2AEAC0B-4062-40C4-BE42-D4F1E4DB0857@microsoft.com>
>> >MIME-Version: 1.0
>> >Content-Type: text/plain;
>> > charset="Utf-8"
>> >Content-Transfer-Encoding: 7bit
>> >X-Newsreader: Microsoft CDO for Windows 2000
>> >Content-Class: urn:content-classes:message
>> >Importance: normal
>> >Priority: normal
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>> >Xref: cpmsftngxa10.phx.gbl

>> microsoft.public.dotnet.framework.aspnet.webservic es:27229
>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>> >
>> >Thanks for getting back with me, Dan. I am just starting visual studio

>> 2003
>> >and selecting an asp web service as the project type. It then comes up

>> with
>> >text fields that points to http:\\localhost\webservice1. I change the
>> >webservice name to something else and hit enter and then get the error

>> about
>> >not being able to ceate it because of sharing difficulties.
>> >
>> >Fred Herring
>> >
>> >"Fred Herring" wrote:
>> >
>> >> I currently run a web service on my Windows 2003 Server. I want to

>> create a
>> >> second service but I have problems when I try to create
>> >> (http:\\localhost\webservice2 )it in VB.net 2003. I get an error

about
>> some
>> >> sharing violation and frontpage extensions. So I am curious about

what
>> >> issues can crop up when a server hosts more than one web service.
>> >>
>> >> Thanks,
>> >> Fred Herring
>> >

>>
>>

>



Fred Herring 12-21-2004 04:17 PM

RE: Creating New Web Service
 
Thanks, currently I have a wwwroot which hold my existing web service. When
vb.net runs a web service project it comes up with \\localhost\Webservice2.
I am confused about how startup a new project and affect the kind of
seperation you described.

Fred

"Dan Rogers" wrote:

> Hi Fred,
>
> Since web services don't return web pages, I suggest you try separating
> these into two VROOT's. This way the conflict in the way the applications
> get configured for a web service and a web application won't be causing you
> issues.
>
> I hope this helps
>
> Dan Rogers
> Microsoft Corporation
> --------------------
> >Thread-Topic: Creating New Web Service
> >thread-index: AcTjrip1gLkXnRa7TF+AclxNFC+mwA==
> >X-WBNR-Posting-Host: 130.76.32.144
> >From: =?Utf-8?B?RnJlZCBIZXJyaW5n?= <FredHerring@discussions.microsoft.com>
> >References: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>

> <D2AEAC0B-4062-40C4-BE42-D4F1E4DB0857@microsoft.com>
> <$z$pjK64EHA.1964@cpmsftngxa10.phx.gbl>
> >Subject: RE: Creating New Web Service
> >Date: Thu, 16 Dec 2004 12:31:04 -0800
> >Lines: 77
> >Message-ID: <E589DE8A-7410-4333-BDDA-C8A2334EEDB2@microsoft.com>
> >MIME-Version: 1.0
> >Content-Type: text/plain;
> > charset="Utf-8"
> >Content-Transfer-Encoding: 7bit
> >X-Newsreader: Microsoft CDO for Windows 2000
> >Content-Class: urn:content-classes:message
> >Importance: normal
> >Priority: normal
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >Xref: cpmsftngxa10.phx.gbl

> microsoft.public.dotnet.framework.aspnet.webservic es:27251
> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
> >
> >No, I am careful to give a fresh name for the new service when I try to
> >create it. I will try resetting iis. My dev. machine is windows server
> >2003. I currently host my web service and a web page on this server. The
> >web page shares some folders for files needed by the web page. This is my
> >system status when I start vb.net and try to create a new web service
> >application. This is when I get an error message about sharing.
> >
> >Fred Herring
> >
> >"Dan Rogers" wrote:
> >
> >> Hi Fred,
> >>
> >> If the name you select already exists, you will get error messages like
> >> this. Try a brand new name that couldn't possibly have been chosen

> before.
> >> Does it still happen?
> >>
> >>
> >> If it does, try repairing your IIS instalation. File sharing issues
> >> shouldn't be happening unless there are two programs accessing the same
> >> directory or file, and one has it open with a lock.
> >>
> >> Dan
> >>
> >>
> >> --------------------
> >> >Thread-Topic: Creating New Web Service
> >> >thread-index: AcTi3pDa4V9Qe1CWQ8CwXkVteS4/Ig==
> >> >X-WBNR-Posting-Host: 130.76.32.145
> >> >From: =?Utf-8?B?RnJlZCBIZXJyaW5n?=

> <FredHerring@discussions.microsoft.com>
> >> >References: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>
> >> >Subject: RE: Creating New Web Service
> >> >Date: Wed, 15 Dec 2004 11:45:01 -0800
> >> >Lines: 18
> >> >Message-ID: <D2AEAC0B-4062-40C4-BE42-D4F1E4DB0857@microsoft.com>
> >> >MIME-Version: 1.0
> >> >Content-Type: text/plain;
> >> > charset="Utf-8"
> >> >Content-Transfer-Encoding: 7bit
> >> >X-Newsreader: Microsoft CDO for Windows 2000
> >> >Content-Class: urn:content-classes:message
> >> >Importance: normal
> >> >Priority: normal
> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> >> >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
> >> >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> >> >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> >> >Xref: cpmsftngxa10.phx.gbl
> >> microsoft.public.dotnet.framework.aspnet.webservic es:27229
> >> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
> >> >
> >> >Thanks for getting back with me, Dan. I am just starting visual studio
> >> 2003
> >> >and selecting an asp web service as the project type. It then comes up
> >> with
> >> >text fields that points to http:\\localhost\webservice1. I change the
> >> >webservice name to something else and hit enter and then get the error
> >> about
> >> >not being able to ceate it because of sharing difficulties.
> >> >
> >> >Fred Herring
> >> >
> >> >"Fred Herring" wrote:
> >> >
> >> >> I currently run a web service on my Windows 2003 Server. I want to
> >> create a
> >> >> second service but I have problems when I try to create
> >> >> (http:\\localhost\webservice2 )it in VB.net 2003. I get an error

> about
> >> some
> >> >> sharing violation and frontpage extensions. So I am curious about

> what
> >> >> issues can crop up when a server hosts more than one web service.
> >> >>
> >> >> Thanks,
> >> >> Fred Herring
> >> >
> >>
> >>

> >

>
>


Dan Rogers 12-21-2004 06:13 PM

RE: Creating New Web Service
 
Hi Fred,

When you create a new Web or Web serivce project with Visual Studio, it
creates an new virtual root directory on the default site in your local IIS
(your wwwroot). The separation I was referring to was to create one
project for your web service, and a different project for your web site
application (the one that has browser pages). You seemed to be trying to
keep all of the HTML, ASP and web service code in one place - which could
cause issues if you aren't really familiar with IIS application
configuration. The easiest thing to do is first set up your web service
project and get it working.

Then in your web application project, create a web reference to the web
service itself, making sure you have a configuration settable URL property
so that you can move off of your development box at some point (although a
proxy bouncing off of localhost would work as long as you always hosted the
web applicatoin and the web service on the same machine).

Hope this helps

Dan
--------------------
>Thread-Topic: Creating New Web Service
>thread-index: AcTneIGcCqMmTOMZRuiabpqAiIreEQ==
>X-WBNR-Posting-Host: 130.76.32.144
>From: =?Utf-8?B?RnJlZCBIZXJyaW5n?= <FredHerring@discussions.microsoft.com>
>References: <2B752D16-DDEB-468A-971C-6FEBC04B6C5A@microsoft.com>

<D2AEAC0B-4062-40C4-BE42-D4F1E4DB0857@microsoft.com>
<$z$pjK64EHA.1964@cpmsftngxa10.phx.gbl>
<E589DE8A-7410-4333-BDDA-C8A2334EEDB2@microsoft.com>
<WErrdiu5EHA.2680@cpmsftngxa10.phx.gbl>
>Subject: RE: Creating New Web Service
>Date: Tue, 21 Dec 2004 08:17:02 -0800
>Lines: 132
>Message-ID: <CC405455-9497-451E-B2D9-FFBB80E72F23@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl

microsoft.public.dotnet.framework.aspnet.webservic es:27328
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>Thanks, currently I have a wwwroot which hold my existing web service.

When
>vb.net runs a web service project it comes up with

\\localhost\Webservice2.
>I am confused about how startup a new project and affect the kind of
>seperation you described.
>
>Fred




All times are GMT. The time now is 09:46 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.