Last post Feb 05, 2008 05:11 PM by shaolin
Jan 23, 2008 04:11 PM|shaolin|LINK
I’m new to ASP.net and I’ve been using the clubsite starter kit as a reference to build a website, and I’m hoping I could ask for some assistance.
I never worked Visual Web Developer or ASP.net. Now that I’ve been getting some exposure to it I think its great and I hope get better at developing sites with both the application and language.
I’m getting ready to deploy an asp.net site that I’ve been working on and in hopes of trying to anticipate/avoid any potential problems I would like to ask a few questions.
I’m using VWD 2008 Express, when going to publish this site to my host server which is not a commercial host service provider like godaddy by the way is it easy as just FTP’ing to the site using the copy site feature,
or do I need to do more than that. I’ve been going through the forum looking for any info and I came across a link that Jeremyh as posted in June 2007 for another user about deployment but I’m not sure if I’m totally off target.
Can someone please explain in detail how to correctly deploy a site host server through VWD 2008 express.
I tried looking a publish website feature but was not able to find one…I read some where that express that this option is not available in express and so the Copy site feature would be how you get it uploaded to the host server…is this correctly, please
Please understand that I’m still very new to this and I’m sorry if this sounds silly….but by asking such questions I hope to get a better understanding.
Jan 23, 2008 04:49 PM|shawn_holman|LINK
If you have access to the server and the server is dedicated. You will need to point the website to a virtual directory. then you can map a network drive to the directory and copy the contents of you website into this virtual directory. Restart the website
and you good.
Jan 23, 2008 05:01 PM|shaolin|LINK
I don't too much about the server seeing how its not mine...I was given an FTP account which currently hosts an basic html site, I plan on removing the html site and uploading the asp.net site. I'm attempting to currently find out a bit more about the
server...seeing how its hosting an html site I hope it will be ok to host the asp.net site as well.
Jan 23, 2008 05:03 PM|shawn_holman|LINK
Try and uplaod all of the content with your website folder to the same area where the html is currently located. If this does not work you will need to have the server admin enable asp.
Jan 24, 2008 02:26 PM|shaolin|LINK
Have not tried to upload yet, as I'm trying to find out from the server admin if ASP.net 2.0 is support.....crossing my fingers that is....question, will I need to precompile my site....I know that shawn_holman suggest to just copy site....however I understand
that precompiling my site will allow to protect the source code from being viewed and allow the site to load faster.
I'm using Visual Web Developer 2008, how would I go about doing that? Can anyone provide a step by step in how to do this? I looked at step by step for the 2005 version but not sure if it will still apply.
Jan 24, 2008 06:50 PM|shawn_holman|LINK
Open a command window and navigate to the folder containing the .NET Framework.
The .NET Framework is installed in the following location.
Run the aspnet_compiler command by typing the following at a command prompt, specifying the source as either a virtual path or physical path and the target folder for the compiled Web site.
aspnet_compiler -v virtualPath targetPath
If your Web site is not an Internet Information Services (IIS) application and therefore has no entry in the IIS metabase, used the following value for the
aspnet_compiler -p physicalOrRelativePath -v / targetPath
In this case, the physicalOrRelativePath parameter refers to the fully qualified directory path in which the Web site files are located, or a path relative to the current directory. The period (.)
operator is allowed in the physicalOrRelativePath parameter. The
-v switch specifies a root that the compiler will use to resolve application-root references (for example, with the tilde (~) operator). When you specify the value of
/ for the -v switch the compiler will resolve the paths using the physical path as the root.
The targetPath parameter is a physical path to the destination directory
Run the aspnet_compiler command by typing the following at a command prompt, specifying the source as either a virtual path or physical path, the target folder for the compiled Web site, and the
-u switch indicating you want to compile the site for deployment and update.
aspnet_compiler -p physicalOrRelativePath -v / targetPath -u
Feb 05, 2008 05:11 PM|shaolin|LINK
Ok....I've run into a situation that I need some assistance with....but to make a long story short...the problem is a result of the virtual directory being in a Unix environment.....I, was wondering if anyone knew of
a free reliable hosting service which I can test my asp.net 2.0 website...I know I can use the local host on my development box to test but I want to try it under a real production environment and that I would have to be from an actual host provider. Once
I can test that everything is running good I will purchase a host account where I can upload it there.
So if any of you can provide any info on a free website host
provider that supports obviously asp.net 2.0 that would be great.