Solved

MS Visual Studio .NET and mapped webserver root directory

Posted on 2004-09-28
4
356 Views
Last Modified: 2013-12-24
Dear all,

I intend to use MS Visual Studio .NET to implement an ASP.NET Web Application. I have created an ASP.NET Web Application project in my local web server’s directory without problems. I can also open a simple ASP.NET file using:

http://localhost/geoconda/WebForm1.aspx

I have tried to copy everything that I develop locally to the web server. (I have just copied the project-folder into the root directory of the webserver. Unfortunately, when I try something like:

www.whereever.com/project-folder/WebForm1.aspx

it doesn’t work.

What might be the error? I guess I cannot just copy the project’s folder like this?

BTW, is it possible to develop an ASP.NET Web Application directly in the web server’s root directory, even though this root directory is only mapped into the (local) file system (I am using WebDrive)?  

Any pointers would be very much appreciated. Many thanks in advance.

Best wishes,

Christian
0
Comment
Question by:csetzkorn
4 Comments
 
LVL 7

Accepted Solution

by:
smolam earned 63 total points
ID: 12201228
Once you have copied the the project to your server, I am assuming you have full control of this server, you will need to open up the Internet Services Manager and then look at the properties for the project-folder that you copied across, then under the Directory tag you just need to click Create, this will give this directory its own application space, the project should then work properly.

If you wanted to work under the root that is also fine.

Another note is that when you copy your project to the testing server you don't need to copy all the files, you only need the aspx files and the bin directory, once you have built of course.  All you're code behind (.vb) files get compiled into a dll which the aspx files refer to!

HTH
0
 
LVL 5

Assisted Solution

by:LlamaJoe
LlamaJoe earned 62 total points
ID: 12283306
like smolam said, make an "application" in IIS on the server for the root directory of your project (where the global.asax and web.config file are).

Also ensure that the .net Framework is installed on the server and that .aspx pages are associated with the aspnet worker process. (run regiis.exe if needed on the server)  and if it is a 2003 server, then you have to allow .net programs to even run (by default Server 2003 only allows html files)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question