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. General Programming
  3. C#
  4. Running my site in remote

Running my site in remote

Scheduled Pinned Locked Moved C#
csharpasp-netsql-serverhelpquestion
9 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.
  • C Offline
    C Offline
    confusedme
    wrote on last edited by
    #1

    Hi.. I have made a web application using ASP.Net 2.0 and MSSQL 2005.Well..I am really confused as to where I am wrong.I have my site running in my PC and in my LAN.But I have to send the site via FTP to some remote machine.I did it.I uploaded it unto some folder in their desktop.But it doesnt run there.It shud run when it is typed in the browser like http://remotecompterIP//sitename//aliasname//Default.aspx. I have uploaded the precompiled files..published files that is.and another thing i have alos created a virtual directory .Does it matter? However,I also tried doing it without the virtual directory.It shud go like http://remotecomputerIP//sitename//Default.aspx. But this did not work either. Should I upload the files into their wwwroot?is it necessary? Any ideas??Plz help Regards, confused confused

    C J 2 Replies Last reply
    0
    • C confusedme

      Hi.. I have made a web application using ASP.Net 2.0 and MSSQL 2005.Well..I am really confused as to where I am wrong.I have my site running in my PC and in my LAN.But I have to send the site via FTP to some remote machine.I did it.I uploaded it unto some folder in their desktop.But it doesnt run there.It shud run when it is typed in the browser like http://remotecompterIP//sitename//aliasname//Default.aspx. I have uploaded the precompiled files..published files that is.and another thing i have alos created a virtual directory .Does it matter? However,I also tried doing it without the virtual directory.It shud go like http://remotecomputerIP//sitename//Default.aspx. But this did not work either. Should I upload the files into their wwwroot?is it necessary? Any ideas??Plz help Regards, confused confused

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

      confusedme wrote:

      Should I upload the files into their wwwroot?is it necessary?

      Depends. you can put it whereever you like, but if you don't tell IIS where it is, it plainly isn't going to work, it won't know where to look for it.

      confusedme wrote:

      But it doesnt run there

      If you gave us more meaningful info, we could perhaps tell if .NET was installed on the target machine, and IIS configured to run with it. But, it sounds more like you dropped it in a random folder and hoped it to work via magic. IIS needs to know where to look for your app. If IIS was free to read from anywhere on your PC, it would be super slow ( because it would have to search the whole file system for possible matches ) and not even remotely secure.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      C 1 Reply Last reply
      0
      • C confusedme

        Hi.. I have made a web application using ASP.Net 2.0 and MSSQL 2005.Well..I am really confused as to where I am wrong.I have my site running in my PC and in my LAN.But I have to send the site via FTP to some remote machine.I did it.I uploaded it unto some folder in their desktop.But it doesnt run there.It shud run when it is typed in the browser like http://remotecompterIP//sitename//aliasname//Default.aspx. I have uploaded the precompiled files..published files that is.and another thing i have alos created a virtual directory .Does it matter? However,I also tried doing it without the virtual directory.It shud go like http://remotecomputerIP//sitename//Default.aspx. But this did not work either. Should I upload the files into their wwwroot?is it necessary? Any ideas??Plz help Regards, confused confused

        J Offline
        J Offline
        Jacky Yiu
        wrote on last edited by
        #3

        Do you know your virtual directory is created under root path or it's under sitename? if the virtual directory is created under root path, you should visit http://remotecomputerIP/aliasname/Default.aspx And don't try to think it can work without virtual directory if your application is not under root.

        C 1 Reply Last reply
        0
        • C Christian Graus

          confusedme wrote:

          Should I upload the files into their wwwroot?is it necessary?

          Depends. you can put it whereever you like, but if you don't tell IIS where it is, it plainly isn't going to work, it won't know where to look for it.

          confusedme wrote:

          But it doesnt run there

          If you gave us more meaningful info, we could perhaps tell if .NET was installed on the target machine, and IIS configured to run with it. But, it sounds more like you dropped it in a random folder and hoped it to work via magic. IIS needs to know where to look for your app. If IIS was free to read from anywhere on your PC, it would be super slow ( because it would have to search the whole file system for possible matches ) and not even remotely secure.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          C Offline
          C Offline
          confusedme
          wrote on last edited by
          #4

          Hi... Thanks for the prompt reply.Well..yes the IIS is installed on the machine and it is configured to work with ASP.NET. I do not have the access to their IIS.I think you are trying to say that there must be created some virtual directory in their IIS to point to the folder that i have uploaded.If that is so then...i need not worry...coz it is their job.Is this wat u mean?I am posting you the error that it threw: Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 41: ASP.NET to identify an incoming user. Line 42: --> Line 43: authentication mode="Windows" Line 44:

          C 1 Reply Last reply
          0
          • J Jacky Yiu

            Do you know your virtual directory is created under root path or it's under sitename? if the virtual directory is created under root path, you should visit http://remotecomputerIP/aliasname/Default.aspx And don't try to think it can work without virtual directory if your application is not under root.

            C Offline
            C Offline
            confusedme
            wrote on last edited by
            #5

            Hey .. thanks ..but the virtual directory in my PC is inside my sitename.So i hope the path i have given is correct. confused

            J 1 Reply Last reply
            0
            • C confusedme

              Hey .. thanks ..but the virtual directory in my PC is inside my sitename.So i hope the path i have given is correct. confused

              J Offline
              J Offline
              Jacky Yiu
              wrote on last edited by
              #6

              Are you sure the hosting machine is setup the virtual directory to you correctly?? seems the error is come from virtual directory didn't create.

              C 1 Reply Last reply
              0
              • J Jacky Yiu

                Are you sure the hosting machine is setup the virtual directory to you correctly?? seems the error is come from virtual directory didn't create.

                C Offline
                C Offline
                confusedme
                wrote on last edited by
                #7

                Well...in my PC i have created the virtual directory .I uploaded them the precompiles files with the virtual directory.I do not know whether they need to create another virtual directory there in their PC pointing to the file i have uploaded in their desktop or my virtual directory is sufficient.I do not know what they have been doing.But i just tried to view the site here in my PC giving the said URL.I am just worried coz it dint work..and i was wondering if there is any thing i still have to work on Thanks! confused

                J 1 Reply Last reply
                0
                • C confusedme

                  Hi... Thanks for the prompt reply.Well..yes the IIS is installed on the machine and it is configured to work with ASP.NET. I do not have the access to their IIS.I think you are trying to say that there must be created some virtual directory in their IIS to point to the folder that i have uploaded.If that is so then...i need not worry...coz it is their job.Is this wat u mean?I am posting you the error that it threw: Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 41: ASP.NET to identify an incoming user. Line 42: --> Line 43: authentication mode="Windows" Line 44:

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

                  Gee - why didn't you say ? This error means what it says. You have a config file that has settings that can only be applied at the root. This means that when you say

                  confusedme wrote:

                  If that is so then...i need not worry...coz it is their job

                  you have two choices. 1 - fold your hands and say it's not your fault 2 - contact them and ask them to fix it. Unless you have this setting within subfolders within your app, then it's your fault.

                  Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                  1 Reply Last reply
                  0
                  • C confusedme

                    Well...in my PC i have created the virtual directory .I uploaded them the precompiles files with the virtual directory.I do not know whether they need to create another virtual directory there in their PC pointing to the file i have uploaded in their desktop or my virtual directory is sufficient.I do not know what they have been doing.But i just tried to view the site here in my PC giving the said URL.I am just worried coz it dint work..and i was wondering if there is any thing i still have to work on Thanks! confused

                    J Offline
                    J Offline
                    Jacky Yiu
                    wrote on last edited by
                    #9

                    is that mean you just upload your virtual directory to their server? and didn't or don't know if they make the virtual directory to you? if so, please ask them to create one to you, since you couldn't upload the virtual directory setting...

                    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