Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. asp.net 2.0 Deployment Problem

asp.net 2.0 Deployment Problem

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netvisual-studiosysadmin
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael Potter
    wrote on last edited by
    #1

    (1) I have a simple web app (just a label) developed in VS 2005 that successfully runs on a development box. (2) I have a website that successfully runs a full VS 2005 asp.net app. (3) I created a virtual directory under the full web app. (4) I published the simple web app to the virtual directory site. PROBLEM: The simple web app will not run. It tells me that "The resource can not be found". I have tried numerous things to no avail. Putting a simple html page in the directory works fine. Is there something simple I am missing?

    A 1 Reply Last reply
    0
    • M Michael Potter

      (1) I have a simple web app (just a label) developed in VS 2005 that successfully runs on a development box. (2) I have a website that successfully runs a full VS 2005 asp.net app. (3) I created a virtual directory under the full web app. (4) I published the simple web app to the virtual directory site. PROBLEM: The simple web app will not run. It tells me that "The resource can not be found". I have tried numerous things to no avail. Putting a simple html page in the directory works fine. Is there something simple I am missing?

      A Offline
      A Offline
      Albert Pascual
      wrote on last edited by
      #2

      When you deploy/publish the project, do you select "use fixed naming and single page assemblies"? Cheers Al

      M 1 Reply Last reply
      0
      • A Albert Pascual

        When you deploy/publish the project, do you select "use fixed naming and single page assemblies"? Cheers Al

        M Offline
        M Offline
        Michael Potter
        wrote on last edited by
        #3

        Tried it both ways - Still can't find the resource. Strange - we have done this in .Net 1.1 without a problem.

        A 1 Reply Last reply
        0
        • M Michael Potter

          Tried it both ways - Still can't find the resource. Strange - we have done this in .Net 1.1 without a problem.

          A Offline
          A Offline
          Albert Pascual
          wrote on last edited by
          #4

          Please can you post the error here? Thanks Al

          M 1 Reply Last reply
          0
          • A Albert Pascual

            Please can you post the error here? Thanks Al

            M Offline
            M Offline
            Michael Potter
            wrote on last edited by
            #5

            Solved the problem - only took us about 8 hours. :mad: Seems that one of the security patches issue by MS changed the way backslashes are processed in the Home Directory field. There should no longer be any trailing backslashes. We checked this earlier on the virtual directory and it didn't have one. We failed to check the root directory (which did - although that application was working OK). I think Asp.Net was doing this:

            X:\ + \VirtualDirectory = X:\\VirtualDirectory 
            

            This, of course, led to the resource not found error. IIS didn't have a problem with a simple HTML file so, I have to assume it only matters to the Asp.Net handler. We got rid of the backslash and now everything is happy. Thanks for the help. :-D

            A 1 Reply Last reply
            0
            • M Michael Potter

              Solved the problem - only took us about 8 hours. :mad: Seems that one of the security patches issue by MS changed the way backslashes are processed in the Home Directory field. There should no longer be any trailing backslashes. We checked this earlier on the virtual directory and it didn't have one. We failed to check the root directory (which did - although that application was working OK). I think Asp.Net was doing this:

              X:\ + \VirtualDirectory = X:\\VirtualDirectory 
              

              This, of course, led to the resource not found error. IIS didn't have a problem with a simple HTML file so, I have to assume it only matters to the Asp.Net handler. We got rid of the backslash and now everything is happy. Thanks for the help. :-D

              A Offline
              A Offline
              Albert Pascual
              wrote on last edited by
              #6

              That's weird. Normally use the Server.MapPath in order to get the path instead of hardcoding it. Good you found it!! Cheers Al

              M 1 Reply Last reply
              0
              • A Albert Pascual

                That's weird. Normally use the Server.MapPath in order to get the path instead of hardcoding it. Good you found it!! Cheers Al

                M Offline
                M Offline
                Michael Potter
                wrote on last edited by
                #7

                It wasn't in my code - It was in the IIS configuration. It was IIS's Asp.Net handler that couldn't find its own code.

                A 1 Reply Last reply
                0
                • M Michael Potter

                  It wasn't in my code - It was in the IIS configuration. It was IIS's Asp.Net handler that couldn't find its own code.

                  A Offline
                  A Offline
                  Albert Pascual
                  wrote on last edited by
                  #8

                  Hate IIS!! I have a project I have been writing for months now to managed IIS 6. I have never finish as I never had the time. Someday .... Someday ....

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups