473,480 Members | 1,493 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 6801

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
11381
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
6352
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
9929
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
435
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
2095
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
6065
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
9919
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
4390
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
6238
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
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4782
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
4483
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
2995
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
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.