473,557 Members | 2,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 403 when using Global.asax with VS 2005

Hello,

I've created a simple C# web services project using Visual Studio 2005. My
service compiles and runs correctly when called by remote clients.

I'm able to step through the service in the debugger unless I add a
Global.asax file. When I do that and then try to run the debugger I receive
error 403. If I remove the Global.asax file things work fine. The
Global.asax file is the one generated by VS 2005 - I don't try to add
anything to it and receive the errors.

I've been through the past threads and tried the suggestions from here:

Title: BUG: Permissions Error When You Try to Debug an ASP.NET Web
Application
URL: http://support.microsoft.com/default...b;EN-US;319842

PRB: "Access Is Denied. Check the DCOM Configuration Settings for the
Machine Debug Manager" Error Message When You Debug ASP.NET Applications
http://support.microsoft.com/default...;en-us;q306164
and a variety of other sources. Nothing seems to work.

I'm running under a local Admin account on Windows XP Pro and service packs
are up to date. The project in on my computer (localhost). Can anyone point
out what I may be doing wrong?

Thanks.

Al
Jan 21 '07 #1
4 3024
re:
Can anyone point out what I may be doing wrong?
1. The simplest solution of course, given that apparently you don't need
any global functions, is not to include a global.asax in your web service fileset.

2. Something else you can do is download sample code for web services,
and check for glaring differences in the sample's global.asax and yours.

Here's one :
http://www.codeproject.com/vb/net/xy...dispatcher.asp

3. When you open your global.asax in the VS IDE, do you see a squiggly
line under the "Applicatio n Language" line at the top of the code ?

If you do, when you right-click it, do you have an option
available to "move global.asax" into the project ?

What happens if you move it ? Does that help ?

4. Check the filename for the global.asax created by VS.
Is it Global.asax...o r Global1.asax ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Al Santino" <as******@hotma il.comwrote in message news:u1Dsh.3049 $QE6.1447@trndd c02...
Hello,

I've created a simple C# web services project using Visual Studio 2005. My service compiles and
runs correctly when called by remote clients.

I'm able to step through the service in the debugger unless I add a Global.asax file. When I do
that and then try to run the debugger I receive error 403. If I remove the Global.asax file things
work fine. The Global.asax file is the one generated by VS 2005 - I don't try to add anything to
it and receive the errors.

I've been through the past threads and tried the suggestions from here:

Title: BUG: Permissions Error When You Try to Debug an ASP.NET Web Application
URL: http://support.microsoft.com/default...b;EN-US;319842

PRB: "Access Is Denied. Check the DCOM Configuration Settings for the Machine Debug Manager" Error
Message When You Debug ASP.NET Applications
http://support.microsoft.com/default...;en-us;q306164
and a variety of other sources. Nothing seems to work.

I'm running under a local Admin account on Windows XP Pro and service packs are up to date. The
project in on my computer (localhost). Can anyone point out what I may be doing wrong?

Thanks.

Al


Jan 21 '07 #2
Thanks for the response, Juan. I address your comments inline...

"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:u$******** ******@TK2MSFTN GP02.phx.gbl...
re:
>Can anyone point out what I may be doing wrong?

1. The simplest solution of course, given that apparently you don't need
any global functions, is not to include a global.asax in your web service
fileset.
Actually I do need it - I plan to use the session related functions. I
wanted to begin, though, by adding the file using VS and then stepping
through it in the debugger to verify the order of events. As I mentioned in
my post, I can step through the program in the debugger before I add
Global.asax but not afterwards.
>
2. Something else you can do is download sample code for web services,
and check for glaring differences in the sample's global.asax and yours.
I'll do that. Again, I'm using the file VS generated with no changes.
>
Here's one :
http://www.codeproject.com/vb/net/xy...dispatcher.asp

3. When you open your global.asax in the VS IDE, do you see a squiggly
line under the "Applicatio n Language" line at the top of the code ?
No, it just highlights the "<%" and "%>" in yellow.
>
If you do, when you right-click it, do you have an option
available to "move global.asax" into the project ?

What happens if you move it ? Does that help ?
If I remove it I can then use the debugger again. I'm not sure where I
should move it.
>
4. Check the filename for the global.asax created by VS.
Is it Global.asax...o r Global1.asax ?
It is "Global.asa x".
Thanks again for your suggestions.

Al
>

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Al Santino" <as******@hotma il.comwrote in message
news:u1Dsh.3049 $QE6.1447@trndd c02...
>Hello,

I've created a simple C# web services project using Visual Studio 2005.
My service compiles and
runs correctly when called by remote clients.

I'm able to step through the service in the debugger unless I add a
Global.asax file. When I do
that and then try to run the debugger I receive error 403. If I remove
the Global.asax file things
work fine. The Global.asax file is the one generated by VS 2005 - I don't
try to add anything to
it and receive the errors.

I've been through the past threads and tried the suggestions from here:

Title: BUG: Permissions Error When You Try to Debug an ASP.NET Web
Application
URL: http://support.microsoft.com/default...b;EN-US;319842

PRB: "Access Is Denied. Check the DCOM Configuration Settings for the
Machine Debug Manager" Error
Message When You Debug ASP.NET Applications
http://support.microsoft.com/default...;en-us;q306164
and a variety of other sources. Nothing seems to work.

I'm running under a local Admin account on Windows XP Pro and service
packs are up to date. The
project in on my computer (localhost). Can anyone point out what I may be
doing wrong?

Thanks.

Al



Jan 21 '07 #3
You can ignore my original post. I was clicking "run" when the Global.asax
file was displayed rather than the main file.

Sheesh.

"Al Santino" <as******@hotma il.comwrote in message
news:u1Dsh.3049 $QE6.1447@trndd c02...
Hello,

I've created a simple C# web services project using Visual Studio 2005. My
service compiles and runs correctly when called by remote clients.

I'm able to step through the service in the debugger unless I add a
Global.asax file. When I do that and then try to run the debugger I
receive error 403. If I remove the Global.asax file things work fine. The
Global.asax file is the one generated by VS 2005 - I don't try to add
anything to it and receive the errors.

I've been through the past threads and tried the suggestions from here:

Title: BUG: Permissions Error When You Try to Debug an ASP.NET Web
Application
URL: http://support.microsoft.com/default...b;EN-US;319842

PRB: "Access Is Denied. Check the DCOM Configuration Settings for the
Machine Debug Manager" Error Message When You Debug ASP.NET Applications
http://support.microsoft.com/default...;en-us;q306164
and a variety of other sources. Nothing seems to work.

I'm running under a local Admin account on Windows XP Pro and service
packs are up to date. The project in on my computer (localhost). Can
anyone point out what I may be doing wrong?

Thanks.

Al


Jan 21 '07 #4
Oops...
Sometimes it's the little things which get us.

Glad you caught it, though.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Al Santino" <as******@hotma il.comwrote in message news:n8Psh.5299 $U81.1314@trndd c06...
You can ignore my original post. I was clicking "run" when the Global.asax file was displayed
rather than the main file.

Sheesh.

"Al Santino" <as******@hotma il.comwrote in message news:u1Dsh.3049 $QE6.1447@trndd c02...
>Hello,

I've created a simple C# web services project using Visual Studio 2005. My service compiles and
runs correctly when called by remote clients.

I'm able to step through the service in the debugger unless I add a Global.asax file. When I do
that and then try to run the debugger I receive error 403. If I remove the Global.asax file
things work fine. The Global.asax file is the one generated by VS 2005 - I don't try to add
anything to it and receive the errors.

I've been through the past threads and tried the suggestions from here:

Title: BUG: Permissions Error When You Try to Debug an ASP.NET Web Application
URL: http://support.microsoft.com/default...b;EN-US;319842

PRB: "Access Is Denied. Check the DCOM Configuration Settings for the Machine Debug Manager"
Error Message When You Debug ASP.NET Applications
http://support.microsoft.com/default...;en-us;q306164
and a variety of other sources. Nothing seems to work.

I'm running under a local Admin account on Windows XP Pro and service packs are up to date. The
project in on my computer (localhost). Can anyone point out what I may be doing wrong?

Thanks.

Al



Jan 21 '07 #5

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

Similar topics

3
19861
by: Pa Ji | last post by:
I just created a simple web application and tried to run it. Getting following...any idea what I'm missing Thanks in advance ---------------------------------------------------------------------------- ---- Server Error in '/test2' Application. ---------------------------------------------------------------------------- ----
14
2375
by: Roland Hall | last post by:
Since I'm not getting any response from the community, I'm reposting this under my managed account. I've turned my web.config friendly error messages off and it may be easier to view what I'm experiencing than try to translate it. Here's the error: Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="netfraud.us.Global" %>
4
7611
by: John A Grandy | last post by:
I installed VS05 RC , created a new Web Site , but I do not see Global.asax , and I do not see Global.asax.cs in the App_Code dir ......
4
1830
by: sm | last post by:
Hi, I have a couple of questions with regards to handling errors and exceptions. 1. If I use On Error goto Errhandler ... Errhandler:
4
4214
by: Mark Olbert | last post by:
I have several ASP.NET 1.1 websites where I centralized a read-only dataset (i.e., one which no web page ever changed) and its associated SqlDataAdapters. In 2.0 I noticed that the Global.asax file does not have a design surface, so I can't drag and drop database components onto it. I could configure all this stuff manually, but that would...
3
2315
by: Doug | last post by:
Using Visual Studio 2005, SQL Server 2000, and ASP.NET/VB.NET for a Web Application. We have a System DSN using Windows NT authentication defined on the development box to connect to the SQL Server (both SQL and IIS are on the 192.168.1.2 server). We have "Identity Impersonate=true", and "CustomErrors mode=On" and...
4
7487
by: WT | last post by:
Hello, Using VS2005, when I open the global.asax file, the editor underlines in blue all the line with a tooltip saying 'Syntaxe error '. <%@ Application Language="C#" Inherits="MyApp.Core.Global" Codefile="Global.asax.cs" %> But everything is running OK, the site is under a web application project.
1
1782
by: =?Utf-8?B?QWNl?= | last post by:
hello, i just converted old .net project (it was a solution with web project and class project) built in .net 1.0 and 1.1 framework to .net 2.0. as i expected, when i clicked on the solution file from vs 2005, it went through a conversion process and all seemed to go ok. when i attempt to run, i get first parser error on global.asax and cs. ...
2
1891
by: Andy | last post by:
Hi there, I have an asp.net 2 web application with SQL Server 2005 db, running on IIS6. I have implemented some error trapping in the global.asax file, along the lines of: void Application_Error(Object sender, EventArgs e) { Exception ex = Server.GetLastError(); //write details about the exception to a table in the db etc etc
0
7835
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7593
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7914
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5455
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5172
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3602
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1164
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
869
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.