473,750 Members | 2,182 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 3043
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
19868
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
2398
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
7623
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
1846
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
4218
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 be a lot of work duplicating what the visual designers do just fine. Besides, it would put me way...
3
2327
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 "defaultRedirect="ErrorHandler.aspx" in web.config.
4
7498
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
1794
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. i still have global.asax and global.asax.cs attached together (as code-behind). after few...
2
1902
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
8999
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9394
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9338
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9256
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6803
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4712
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3322
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 we have to send another system
3
2223
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.