ASP.NET Web Service Walkthrough difficulties

J

johnmann56

Hello. I am having difficulties creating a simple ASP.NET Web Service following the walkthrough in the MS book that comes with VS 2003. My development machine is running XP PRO, and the server is running Windows Server 2003. The development machine is not in a domain of the server, but rather both are simply connected to a router and therefore have 192.168.0.x IP addresses. I have created a share on the server at C:\Inetpub\wwwroot\TempConv1 , and the alias is TempConv1 . I set the permissions to this share so that Everyone has Full Control, since I'm trying to get this to work. I can successfully see, and read and write to this share from the XP machine using Windows Explorer and create a simple text file in the share. However, when I attempt to create the ASP.NET Web Service, giving the project the name http://192.168.0.4/TempConv1, I get an error message saying the project cannot be created because the share doesn't exist or that I don't have access to it. For the share path, I've trie
\\JOHNS-SERV-2003\wwwroot$\TempConv1
\\JOHNS-SERV-2003\Inetpub\wwwroot\TempConv1 , an
\\JOHNS-SERV-2003\TempConv1 .
Any ideas why I can't create this project? Thanks very much in advance.
 
J

Jan Tielens

Did you create a virtual directory for your web service? This is not the
same as creating a share!

--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

johnmann56 said:
Hello. I am having difficulties creating a simple ASP.NET Web Service
following the walkthrough in the MS book that comes with VS 2003. My
development machine is running XP PRO, and the server is running Windows
Server 2003. The development machine is not in a domain of the server, but
rather both are simply connected to a router and therefore have 192.168.0.x
IP addresses. I have created a share on the server at
C:\Inetpub\wwwroot\TempConv1 , and the alias is TempConv1 . I set the
permissions to this share so that Everyone has Full Control, since I'm
trying to get this to work. I can successfully see, and read and write to
this share from the XP machine using Windows Explorer and create a simple
text file in the share. However, when I attempt to create the ASP.NET Web
Service, giving the project the name http://192.168.0.4/TempConv1, I get an
error message saying the project cannot be created because the share doesn't
exist or that I don't have access to it. For the share path, I've tried
 
J

johnmann56

Thank you for your comment, Jan. How IS the whole share or virtual directory structure supposed to be set up for making a ASP.NET Web Service, on the "Default Web Site" of the Server? What I tried just now after reading your message, is to create a virtual directory for the "Default Web Site" called TempConv1, pointing to a directory at C:\Inetpub\wwwroot\JohnsStuff, and in the IIS Manager it shows up as a gear icon at the same level as Inetpub. However, I cannot Browse this virtual directory, it says I don't have permission! I tried creating the project in VS 2003 anyway, but got the erro

'The default Web access mode for this project is set to file share, but the project folder at 'http://192.168.0.4/TempConv1' cannot be opened with the path '\\JOHNS-SERV-2003\wwwroot$\TempConv1'. The error returned was
"Unable to create Web project 'TempConv1'. The UNC share '\\JOHNS-SERV-2003\wwwroot$\TempConv1' does not exist or you do not have access."

Could you perhaps explain how it's all supposed to be set up, or point me to a resource that explains it all? Thanks very much

John
 
J

Jan Tielens

There seem to be some problems with the security I think...

Did you install IIS before or after you've installed VS.NET?
--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

johnmann56 said:
Thank you for your comment, Jan. How IS the whole share or virtual
directory structure supposed to be set up for making a ASP.NET Web Service,
on the "Default Web Site" of the Server? What I tried just now after reading
your message, is to create a virtual directory for the "Default Web Site"
called TempConv1, pointing to a directory at C:\Inetpub\wwwroot\JohnsStuff,
and in the IIS Manager it shows up as a gear icon at the same level as
Inetpub. However, I cannot Browse this virtual directory, it says I don't
have permission! I tried creating the project in VS 2003 anyway, but got the
error
'The default Web access mode for this project is set to file share, but
the project folder at 'http://192.168.0.4/TempConv1' cannot be opened with
the path '\\JOHNS-SERV-2003\wwwroot$\TempConv1'. The error returned was:
"Unable to create Web project 'TempConv1'. The UNC share
'\\JOHNS-SERV-2003\wwwroot$\TempConv1' does not exist or you do not have
access." '
Could you perhaps explain how it's all supposed to be set up, or point me
to a resource that explains it all? Thanks very much.
 
J

johnmann56

Hello again Jan. Thanks for helping me with this. The VS .NET 2003 is installed on my XP PRO computer, and the IIS is running on the Windows Server 2003 machine, which I set up just a couple days ago, many months after I installed VS .NET 2003 on the XP PRO machine. The XP machine is not on a network of the Server 2003 machine, rather they are both just connected to ports of a router, and so have different 192.168.0.x addresses. Perhaps this arrangement affects the security
John
 
J

Jan Tielens

IC! You should have IIS installed on your development machine too. First you
create a web project on your local machine. When you're finished you can
deploy it to your server. I don't think it's possible to directly create the
project on your server from VS.NET.

--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

johnmann56 said:
Hello again Jan. Thanks for helping me with this. The VS .NET 2003 is
installed on my XP PRO computer, and the IIS is running on the Windows
Server 2003 machine, which I set up just a couple days ago, many months
after I installed VS .NET 2003 on the XP PRO machine. The XP machine is not
on a network of the Server 2003 machine, rather they are both just connected
to ports of a router, and so have different 192.168.0.x addresses. Perhaps
this arrangement affects the security?
 
J

johnmann56

Well Jan, I have reason to believe that it is possible to develop the project on a different machine. Namely, step 4 of the walkthrough from the MS book read

"Enter the address of the Web server on which you will develop the XML Web service ... by default, the project uses your local machine, 'http://localhost'.

So it looks like the DEFAULT is to use the local machine, not mandatory though. I'll keep slogging... thanks again
John
 
J

Jan Tielens

Trust me, you will have less problems when using a local IIS server (for
example debugging).

--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

johnmann56 said:
Well Jan, I have reason to believe that it is possible to develop the
project on a different machine. Namely, step 4 of the walkthrough from the
MS book reads
"Enter the address of the Web server on which you will develop the XML Web
service ... by default, the project uses your local machine,
'http://localhost'. "
So it looks like the DEFAULT is to use the local machine, not mandatory
though. I'll keep slogging... thanks again.
 
J

johnmann56

Being the scientific type, I wonder WHY though my arrangement doesn't work. I imagine you're right though, it's easier to use a local IIS with ASP.NET installed. I may submit this question to MS e-mail help, see if they know the answer. Greetz
John
 
P

Patrice

wwwroot$ is created by default. Is your account in the server "VS
developers" group ? Did you installed server components on the web server ?

Patrice


johnmann56 said:
Hello. I am having difficulties creating a simple ASP.NET Web Service
following the walkthrough in the MS book that comes with VS 2003. My
development machine is running XP PRO, and the server is running Windows
Server 2003. The development machine is not in a domain of the server, but
rather both are simply connected to a router and therefore have 192.168.0.x
IP addresses. I have created a share on the server at
C:\Inetpub\wwwroot\TempConv1 , and the alias is TempConv1 . I set the
permissions to this share so that Everyone has Full Control, since I'm
trying to get this to work. I can successfully see, and read and write to
this share from the XP machine using Windows Explorer and create a simple
text file in the share. However, when I attempt to create the ASP.NET Web
Service, giving the project the name http://192.168.0.4/TempConv1, I get an
error message saying the project cannot be created because the share doesn't
exist or that I don't have access to it. For the share path, I've tried
 
P

Patrice

The wwwroot$ share (shares c:\inetpub\wwwroot) and the "VS Developers" group
are AFAIK created automatically when installing server components.

Check
http://msdn.microsoft.com/library/d...developingwebprojectsusingvisualstudionet.asp
and see if the described step are already done...

Patrice

johnmann56 said:
Hello Patrice and Jan. Thanks Patrice for joining the fray. What does
wwwroot$ point to? I'm not familiar with the $ part. My account on the
server is NOT "VS Developers", I didn't notice any mention of that anywhere.
I installed/enabled ASP.NET on the IIS web server on the server machine. I
will try the VS Developers account bit after I get some sleep, I was working
on this last night when I could've been sleeping. Anything else you know of
that has to be set up right? I also have an e-mail support request in to MS,
haven't heard back from them yet though.
 
J

johnmann56

Thanks Patrice for the BIG tip in the document you reference. I've done the things outlined in that document, namely adding Visual Studio .NET Server Components to the server, which automatically created the VS Developers group on the server. But I'm hung up on how to add my XP machine login identity to the VS Developers group, so that I can remotely create ASP.NET projects. But thanks for your help
John
 
P

Patrice

In the "administration tool", "computer management" you can deal with users
and groups. Basically it should be something like log on the server and add
the account you use (likely a domain account) to this group. Your admin may
also help...

Patrice

johnmann56 said:
Thanks Patrice for the BIG tip in the document you reference. I've done
the things outlined in that document, namely adding Visual Studio .NET
Server Components to the server, which automatically created the VS
Developers group on the server. But I'm hung up on how to add my XP machine
login identity to the VS Developers group, so that I can remotely create
ASP.NET projects. But thanks for your help.
 
J

johnmann56

Hi Patrice, thanks for continuing to help me out. I did indeed find the "add user" dialogue you mention, but the "Locations" that it searched from for a given user name did not include my XP machine, named JOHNMANN. This is probably because the JOHNMANN machine is not in the domain of the server, i.e. it is not really networked to the server. Rather, they are connected only in the sense that they are both connected to the same router. That's the rub. I didn't find any way to add the JOHNMANN XP machine to the "Locations" that are searched. As a side note, I CAN read and write to the wwwroot$ share on the server from JOHNMANN by opening a Windows Explorer and then typing in the \\192.168.0.4\wwwroot$ address, but I can't figure out quite why this works, namely what account is being used to access the server share
As to talking to the admin, I AM the admin. I'm just a guy whose main background is in Physics and Electrical Engineering, but who wants to learn ASP.NET development. I work at home, my resources being the XP machine and another PC that was Linux up to a few days ago when I converted it to XP and thence to Windows Server 2003 Evaluation Version.
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top