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. Problem of publishing website

Problem of publishing website

Scheduled Pinned Locked Moved ASP.NET
helpdesign
11 Posts 3 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.
  • N Offline
    N Offline
    nazimghori
    wrote on last edited by
    #1

    hello every one I published my website and then i copied my project folder in www run my project using localhost but what happen is it shows code of my application rahter then design page. i cant get why this happen. Please suggest please help.. :) :) :)

    A C 2 Replies Last reply
    0
    • N nazimghori

      hello every one I published my website and then i copied my project folder in www run my project using localhost but what happen is it shows code of my application rahter then design page. i cant get why this happen. Please suggest please help.. :) :) :)

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      nazimghori wrote:

      I published my website and then i copied my project folder in www r

      After publishing the site, you have to deploy the site on IIS, and does not mean that just putting the code on wwwroot. Do the Following Steps : 1. Published the code. 2. Put the code into wwwroot 3. Open IIS > You will see there should be a folder with the name of your web application 4. Right Click on that and Click on Properties. 5. Click on Create Virtual Directory Folder. 6. Set additional Setting if you need 7. Then try to access using http://localhost/virtualdirectory/home.aspx Let me know if you have any issue.

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

      N 1 Reply Last reply
      0
      • A Abhijit Jana

        nazimghori wrote:

        I published my website and then i copied my project folder in www r

        After publishing the site, you have to deploy the site on IIS, and does not mean that just putting the code on wwwroot. Do the Following Steps : 1. Published the code. 2. Put the code into wwwroot 3. Open IIS > You will see there should be a folder with the name of your web application 4. Right Click on that and Click on Properties. 5. Click on Create Virtual Directory Folder. 6. Set additional Setting if you need 7. Then try to access using http://localhost/virtualdirectory/home.aspx Let me know if you have any issue.

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

        N Offline
        N Offline
        nazimghori
        wrote on last edited by
        #3

        THANK YOU VERY MUCH I DID THE SAME AS U SUGGESTED... BUT THERE IS NO OPTION LIKE CREATE VIRTUAL DIRECTORY ON RIGHT CLICK OF MY FOLDER. SO PLEASE SUGGEST HOW CAN I GET THAT.

        A 1 Reply Last reply
        0
        • N nazimghori

          THANK YOU VERY MUCH I DID THE SAME AS U SUGGESTED... BUT THERE IS NO OPTION LIKE CREATE VIRTUAL DIRECTORY ON RIGHT CLICK OF MY FOLDER. SO PLEASE SUGGEST HOW CAN I GET THAT.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          oh.. have a look into this image, http://abhijitjana.files.wordpress.com/2009/07/iis.jpg And one more thing, which IIS version are you using?

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

          N 1 Reply Last reply
          0
          • N nazimghori

            hello every one I published my website and then i copied my project folder in www run my project using localhost but what happen is it shows code of my application rahter then design page. i cant get why this happen. Please suggest please help.. :) :) :)

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            I believe this means that ASP.NET is not installed for IIS.

            Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

            1 Reply Last reply
            0
            • A Abhijit Jana

              oh.. have a look into this image, http://abhijitjana.files.wordpress.com/2009/07/iis.jpg And one more thing, which IIS version are you using?

              cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

              N Offline
              N Offline
              nazimghori
              wrote on last edited by
              #6

              hello thanks i have done the way you told and it worked thanks for help. Now when i run my application there is error like: XML Parsing Error: syntax error Location: http://localhost/handloom/Home.aspx Line Number 1, Column 1: can u please suggest what this error is.. thank you. :) :) :)

              A 1 Reply Last reply
              0
              • N nazimghori

                hello thanks i have done the way you told and it worked thanks for help. Now when i run my application there is error like: XML Parsing Error: syntax error Location: http://localhost/handloom/Home.aspx Line Number 1, Column 1: can u please suggest what this error is.. thank you. :) :) :)

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                That because you didn't set the framework version in Virtual Directory Properties. Goto the properties of the virtual directory, then go to ASP.NET Tab, check the asp.net version, If your web application developed in asp.net 2.0 then it should be 2.0.x.x . Set that, apply and try again !! It will work.

                cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                N 1 Reply Last reply
                0
                • A Abhijit Jana

                  That because you didn't set the framework version in Virtual Directory Properties. Goto the properties of the virtual directory, then go to ASP.NET Tab, check the asp.net version, If your web application developed in asp.net 2.0 then it should be 2.0.x.x . Set that, apply and try again !! It will work.

                  cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                  N Offline
                  N Offline
                  nazimghori
                  wrote on last edited by
                  #8

                  hello thanks for your help it is working now but the promblem is for metabase this time i am using iis(v 5.1) with asp.net 2005 with frame work 2.0 and dont know how to configure it. i am doing this for first time so can you please suggest how this works.. Thank you. :) :) :)

                  A 1 Reply Last reply
                  0
                  • N nazimghori

                    hello thanks for your help it is working now but the promblem is for metabase this time i am using iis(v 5.1) with asp.net 2005 with frame work 2.0 and dont know how to configure it. i am doing this for first time so can you please suggest how this works.. Thank you. :) :) :)

                    A Offline
                    A Offline
                    Abhijit Jana
                    wrote on last edited by
                    #9

                    nazimghori wrote:

                    but the promblem is for metabase this time i am using iis(v 5.1) with asp.net 2005 with frame work 2.0 and dont know how to configure it.

                    What do you mean by meta base ? Can you tell me what actual error are you getting ? Are you able to view your page now?

                    cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                    N 1 Reply Last reply
                    0
                    • A Abhijit Jana

                      nazimghori wrote:

                      but the promblem is for metabase this time i am using iis(v 5.1) with asp.net 2005 with frame work 2.0 and dont know how to configure it.

                      What do you mean by meta base ? Can you tell me what actual error are you getting ? Are you able to view your page now?

                      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                      N Offline
                      N Offline
                      nazimghori
                      wrote on last edited by
                      #10

                      hello The error that i got is like. if i use my browser as netscape navigator than below error is displayed.

                      Failed to access IIS metabase.
                      Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

                      Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

                      if i use my browser as IE then error is like.

                      Server Application Unavailable
                      The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

                      Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

                      Please suggest some solution for this. :) :)

                      modified on Monday, July 6, 2009 12:33 AM

                      A 1 Reply Last reply
                      0
                      • N nazimghori

                        hello The error that i got is like. if i use my browser as netscape navigator than below error is displayed.

                        Failed to access IIS metabase.
                        Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

                        Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

                        if i use my browser as IE then error is like.

                        Server Application Unavailable
                        The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

                        Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

                        Please suggest some solution for this. :) :)

                        modified on Monday, July 6, 2009 12:33 AM

                        A Offline
                        A Offline
                        Abhijit Jana
                        wrote on last edited by
                        #11

                        Did you try that What CG has already Suggested ? You have installed IIS before or After Installing .NET Framework ? It seems, your IIS is not registred with ASP.NET . Run the following command :

                        C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i

                        [ Note : I assumed the your framework has installed the following location ] Then Try. This will resolve your issue.

                        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                        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