Questions tagged [web-site-project]

Web Site "projects" are created by using the File->New Web Site command in Visual Studio. They are very strange and should not be used unless you really need to. In most cases, you should use File->New Project.

Web site projects are projects that encompass a web site that will be available through a device using a browser.

498 questions
48
votes
8 answers

Unit Testing ASP.net Web Site Project code stored in App_Code

I have an ASP.net Web Site Project (.net 3.5). Currently all of the non-code behind code files (including Linq2Sql stuff, data contexts, business logic, extension methods, etc) are located in the App_Code folder. I am interested in introducing Unit…
Yaakov Ellis
  • 40,752
  • 27
  • 129
  • 174
46
votes
8 answers

How would you sprinkle-in ASP.Net MVC into an existing Web Site Project?

I have a legacy (haha) ASP.Net Webforms Web Site Project in Visual Studio 2008 SP1, that I would like to gradually introduce some MVC functionality into. Most of the information I can locate on how to integrate ASP.Net MVC with WebForms seems to…
Kris
  • 6,058
  • 2
  • 19
  • 16
39
votes
2 answers

How to use command line msbuild to deploy VS2012 Web Site project without precompiling it?

I've inherited a very large VS2012 web site project (not web application) and am trying to automate it's deployment. There are tons of circular references in the project so to get it to precompile using aspnet_compiler.exe I have to turn on…
Paul Lemke
  • 5,494
  • 3
  • 47
  • 66
38
votes
9 answers

Temp path too long when publishing a web site project

I am trying to publish an ASP.NET web site project using the Publish Web Site tool but get this error: ASPNETCOMPILER(0,0): Error ASPRUNTIME: The specified path, file name, or both are too long. The fully qualified file name must be less…
Britton
  • 2,965
  • 2
  • 22
  • 24
28
votes
3 answers

Errors/Warnings show up on "Error List" but then disappear for website project

BACKGROUND I have inherited a solution with multiple projects. One of the projects is a website project... or at least I'm pretty sure that's what this icon means (It looks pretty different in VS 2010 vs 2013, so I'm showing both: VS 2013 on the…
David
  • 4,665
  • 4
  • 34
  • 60
25
votes
3 answers

Mixing VB.Net and C# Code in an ASP.Net Web Site project?

The question quite an older and often asked around, i have similar questions here but my question is a bit more specific. Q1. Is it legal to mix C# and VB.Net code in ASP.Net Web site? Will it work or not? If it works how it may be done? Any sample…
Steve Johnson
  • 3,054
  • 7
  • 46
  • 71
20
votes
2 answers

ASP.NET Web Site or Web Project

When creating a new ASP.NET project in Visual Studio should I chose create: website or project? I understand that web application project was the way to do it back in the day with VS 2003 but is it still applicable today? What are some of the…
jdiaz
  • 7,354
  • 12
  • 42
  • 51
19
votes
6 answers

How do I include thead in a runat="server" table element?

I'm upgrading a big web site project from Visual Studio 2010 to 2012. Throughout my project, I have table elements with the runat="server" attribute. Many of these have thead elements inside of them. When I open it in 2012 and and try to build, I…
18
votes
2 answers

Cannot load a reference assembly for execution from a Web-Site project

Using .NET 4.6.2 and an older Web-Site (not Web-Application) project. If I clear the BIN directory and then build and run it works, but sometimes after multiple builds and runs, it fails with this error. Server Error in '/' Application. Cannot load…
Ian Mercer
  • 38,490
  • 8
  • 97
  • 133
18
votes
1 answer

Which options are the most performance way of publishing asp.net website project - deployment

I am asking in terms of performance Which would run fastest on the server (windows server 2012 r2 - 24 cores - 64 gb ram) - serving pages fastest way - reducing load times Asp.net website project , c# , .net 4.5 , visual studio 2013 update 3 I don't…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
18
votes
5 answers

Visual Studio regularly freezes running Microsoft.VisualStudio.Web.Host.exe

Background I maintain several web sites that are Visual Studio "Web Site Projects". Problem I've found that with a couple of these projects, Visual Studio regularly freezes while I'm working on the code. This doesn't happen for some of the web site…
Sam
  • 40,644
  • 36
  • 176
  • 219
14
votes
4 answers

Setting static port number on Visual Studio Dev Server with a WebSite project

I have a WebSite project in Visual Studio 2008 (not a Web Application project!) How do I set the ASP.NET Development startup port to a static port in a WebSite project?
13
votes
5 answers

Are ASP.NET Web Site projects inherently slow at compiling, or could I have deeper issues?

I've been working on a legacy ASP.NET Web Site (versus a Web Application) project at a client for some time now, and its slow compile time has me wondering: Are web site projects known to be slow(er) at compiling (than Web Application…
Cᴏʀʏ
  • 105,112
  • 20
  • 162
  • 194
12
votes
4 answers

Nuget Automatic Restore for WebSite

I'm trying to migrate all my C# projects to new Nuget Automatic Restore, following this tutorial: Migrating MSBuild-Integrated solutions to use Automatic Package Restore I've successfully done it to my desktop/libraries projects, which I had to edit…
11
votes
2 answers

Publish Profile not working when building website project

I recognized that Web Deployment Projects are not supported in Visual Studio 2012. After reading this article, I tried to get Publish Profiles to work. After installing Visual Studio Web Publish Update I was able to publish web site projects and web…
1
2 3
33 34