I have built my new website in Visual Studio 2010 (C# – ASP.NET 4). Back when I started the project, I selected “ASP.NET Web Application” in the ‘New Project’ window.
I have also just gotten a new web host / domain, where I will put my website. And yes, the server does support ASP.NET 4.
I wanted to make a small “test project”, to see if my final website would work as well. Problem is, I can’t even make this small test project work on the server.
If you have Visual Studio installed, you can follow these steps if you like, but I will write what happens too:
- New project -> “ASP.NET Web Application”
- Just calling it “WebApplication1”
- Don’t change any code, just go to Build -> Build Solution.
- Project -> WebApplication1 Properties…
- Under Package/Publish Web, I select Configuration: Release (it is to my understanding that this must be selected when publishing to a web server – not sure if I’m wrong?)
- Put this line in Web.config:
<customErrors mode="Off"/> - Build -> Rebuild Solution
- Build -> Publish WebApplication1
- Choose ‘File System’ and put target as ‘C:\CompiledSite’. I tried to use the FTP option, but then it said that some FrontPage Extension wasn’t installed at the server. I don’t know, I didn’t ask for any FrontPage here. So I try this on the C-drive instead.
- Copy all files from the ‘CompiledSite’ folder and onto my test folder on my domain.
I get this error:

In the file “Web.config”.
Please, I have no idea how to fix this and please let me know any info on how to get my test site up and running.
upload your site in the
rootfolder of your site orvirtual directoryand upload the content ofCompiledSitenot the folder itself. if you mention the folder at host server then it would be more fine to help you.