Running my site in remote
-
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
-
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
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 )
-
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
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.
-
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 )
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:
-
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.
Hey .. thanks ..but the virtual directory in my PC is inside my sitename.So i hope the path i have given is correct. confused
-
Hey .. thanks ..but the virtual directory in my PC is inside my sitename.So i hope the path i have given is correct. confused
-
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.
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
-
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:
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 )
-
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