Seems like this is the only/best thread for getting an ASP.NET site initially started on Lunarpages, so, I will post here. Otherwise, please redirect me to the best thread.
Instead of using the publishing tools listed above, I am using Visual Studio 2008 and I will be continuing to use it for the foreseeable future. This is my first ASP.NET application and I am stuck on a few basics where the solution(s) might also be helpful to others in this thread. I seem to understand the concepts of the virtual directory, httpdocs, and, the various control files that ASP.NET wants to use. As most folks just getting started on something, I get an error and I am lacking some basic information about some basic assumptions, so, I am not able to help myself yet. Right now, when I try to run the aspx file, it is having problems finding files. So, this post is focusing on the basic problem of folders, defaults, paths, etc. So, here goes......
First, let's say that when I am developing an ASP.NET application in Visual Studio and I don't do anything to set paths and folder names. Basically, I have the configuration files setting whatever the defaults are. Then, I publish to my site on Lunarpages, either through a publishing mechanism or FTP. What are the default paths and folders that Lunarpages has set up beyond the folders that I create? Like, does it use a "bin" folder? Are there default config files set up by Lunarpages that are used if I haven't created and published them?
For example, my problem right now is my aspx page is trying to access an XML file that I developed and published within the same folder as the aspx file. Let's say that on my site that folder is "
www.mysite.com/myaspsites/site1". The error that I am getting is telling me that it is trying to find the XML file on "D:\Inetpub\vhosts\mysite.com\httpdocs\file2.xml". Now, I know that path is the root of my site and that is it is trying to find "
www.mysite.com/file2.xml". So, my problem is that a default is set to the root folder, while I am wanting it to default to the current folder. Basically, the defaults that are assumed in Visual Studios don't match the defaults in Lunarpages. How is Lunarpages determining this default and how/where in Lunarpages do I change that?
Next, after I get it figured out of where I set those folders, I want to move the XML file to a subfolder for security reasons. Let's say that folder is "
www.mysite.com/myaspsites/site1/secretstuff". How I do that in Visual Studio is probably beyond the scope of this forum, so, I will focus on the Lunarpages aspect. Is this the best scheme on Lunarpages for me to protect that file from hackers? I understand that floating around is a magical "ASP.NET user" that I will use to process all the authentication and authorization stuff, so, that is probably a different issue. Right now I am more worried about just getting headed in the right direction and maybe then it will be easier to help myself after that.
Thanks ahead of time for any help.