New ASP.NET Web Service fails to create

R

Rod Gill

Hi,

I've just installed VS 2003 on Win XP Pro. I have SQL Server SP3 developer
installed and IIS with all windows updates on my PC. When I try to create a
new ASP.NET Web Service with the location:
http://localhost/XMLWebServices/Test it fails to create the web service
because: the file path does not correspond to the url. The two need to map
to the same server location. Http error 401: access denied.

I've only installed VB.Net with all pre-install options taken. IIS does
appear to be working.

As a newbie to VB.Net development this, as you can imagine, is frustrating!
Any ideas gratefully accepted and tried.
 
C

Cor

Hi Rod,

Did you try to make a webservice with the only the defaults

Start new project choose a webservice project an just OK

That is the nicest test if all works

I hope this helps a little bit?

Cor
 
R

Rod Gill

Hi,

File, New
Selected New ASP.Net Web Service project then OK. Same error message.

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 
C

Cor

Hi Rod,
This is of course no VB.language (This is before others tell it)

You must now be able to open in your IE
http://localhost\webservice1\service1.asmx

And you must have a file (when you did install all standard)
C:\Inetpub\wwwroot\WebService1\service1.asmx
In that directory hast to be much more

(Are you working with administrator right, because with webservices are
mostly a lot of rights involved)

So I would first then look on the rights of that Inetpub directory, it is
not impossible that there is the problem.

Cor
 
R

Rod Gill

Hi,

Clicking your link produces:

Server Error in '/' Application.
----------------------------------------------------------------------------
----

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure that
it is spelled correctly.

Requested Url: /webservice1/service1.asmx


----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

I am logged in with Admin rights.

When I try to access one of teh Projects where a .asmx file does exist, I
get:

Exception Details: System.Web.HttpException: Server cannot access
application directory 'C:\Documents and Settings\Rod Gill\My
Documents\Visual Studio Projects\'. The directory does not exist or is not
accessible because of security settings.

Source Error:


An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.


Stack Trace:


[HttpException (0x80004005): Server cannot access application directory
'C:\Documents and Settings\Rod Gill\My Documents\Visual Studio Projects\'.
The directory does not exist or is not accessible because of security
settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +965
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128


As far as I can tell there are no security restrictions on teh site. Web
sharing is set to the default site and there is a Web Services alias. Beyond
that I don't know how to allow more security.

The only other thing I've done is to run IIS lockdown. So has that made
thisngs to tight?

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 

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

Top