Error 403 when using Global.asax with VS 2005

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Al Santino

    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



    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


  • Juan T. Llibre

    #2
    Re: Error 403 when using Global.asax with VS 2005

    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 :


    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" <asantino@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

    >
    >
    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


    Comment

    • Al Santino

      #3
      Re: Error 403 when using Global.asax with VS 2005

      Thanks for the response, Juan. I address your comments inline...

      "Juan T. Llibre" <nomailreplies@ nowhere.comwrot e in message
      news:u$leaJWPHH A.4484@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 :

      >
      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" <asantino@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
      >
      >
      >

      Comment

      • Al Santino

        #4
        Re: Error 403 when using Global.asax with VS 2005

        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" <asantino@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

        >
        >
        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
        >
        >

        Comment

        • Juan T. Llibre

          #5
          Re: Error 403 when using Global.asax with VS 2005

          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" <asantino@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" <asantino@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
          >>
          >>
          >
          >

          Comment

          Working...