473,473 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

403 forbidden error when trying to access a webservice

I have two computers. Both computers have Windows 2003 installed as well
as Visual Studio.Net 2003 installed.

Computer A has active directory set and also has .Net and the webservice
called WebserviceTest with a method called Service1 that only returns
the string "Hello World".

I have enabled Anonymous Access and have a user called ASPNET set up
with normal permissions for this user.

All directory permissions are set. I also have the Scripts and
Executables enabled in the Home Directory.

Computer B also has .Net and a test project called TestWebServices. The
form is called Form1.

Form1 has a textbox and a button.

I set the reference to the webservice and instantiate a variable to
point to it in the Load event. So far so good.

In the Button_Click event, I try to access the web service result and
place the result into the textbox. Instead, I get the 403 Forbidden
error message returned.

I tried changing the Anonymous Access, the permissions and other things
but nothing seems to work. I am presently back to the original setup as
described above.

Any suggestions?

Thanks for any help given.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
1 6800

Hope this helps

"403 Access Forbidden" when attempting to create an ASP.NET web project

A few weeks ago I had one of those days...

I hosed my development environment, so that every time I attempted to
create a new ASP.NET web application in VS.NET 2003, I would get the
following error message: The Web server reported the following error
when attempting to create or open the Web project located at the
following URL: 'http://localhost/WebApplication1'. 'HTTP/1.1 403
Access Forbidden'.

I could create a web project in VS.NET 2002 without any problem (on the
same machine). Another fun note was that if I created the virtual
directory first in IIS manager, and create a project in VS 2003
pointing to that vdir it would work.

I looked through the MSDN docs, through the news groups, etc., but
couldn't find a way to resolve the issue.

Turns out that I had somehow set my default web site’s Home Directory >
Execute Permissions to None. Once I changed it back to Scripts only,
bingo. VS.NET 2003 was happy.

So if you get a 403 Access Forbidden error message when attempting to
create an ASP.NET web app in VS 2003, take a look at your execute
permissions...

--
Ahh Hah!
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Oleg Konovalov | last post by:
Hi, I am trying to create 2 separate environments (dev and test) on one powerful Unix server which has 2 network cards, 2 IP addresses, 2 server names... Using Apache 2.0.43 and Tomcat...
0
by: Oleg Konovalov | last post by:
Hi, I am trying to create 2 separate environments (dev and test) on one powerful Unix server which has 2 network cards, 2 IP addresses, 2 server names... Using Apache 2.0.43 and Tomcat...
2
by: MichaelB | last post by:
When I try logging into my web app using local host I am getting the "HTTP 403.9 - Access Forbidden: Too many users are connected Internet Information Services". The thing is I do not have 10 users...
0
by: DotNetter | last post by:
I have two computers. Both computers have Windows 2003 installed as well as Visual Studio.Net 2003 installed. Computer A has active directory set and also has .Net and the webservice called...
1
by: Nalaka | last post by:
Hi, I am testing with Visual studio 2005, web projects. Situation: I have one solution with two web projects, created as file system projects. (I am tesing using the built in server, not IIS)...
2
by: Matthew.DelVecchio | last post by:
hello, i am working on my first web service project. i am writing a webpage that consumes a ws from one of our partners, so i do not have access to the ws code itself. this partner uses...
3
by: JerryK | last post by:
Hi, I have an ASP.net page, written in VB.net. In that code I want to access a validator web services that is secured via SSL. I have installed the certificate, via a .pfx file, on the system....
0
by: JeffS | last post by:
I created a desktop application (vb.net) which access my webservice. I have a client which is behind a firewall and can not log on to the webservice. They have been getting the error:...
6
by: Doug Ferguson | last post by:
I am using a webservice client that was created from a WSDL file in .Net 1.1. The client ALWAYS works the first time I call it. The second call returns one of two exceptions. It either returns...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.