473,385 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 6792

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.