web-site-project

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

爷,独闯天下 提交于 2019-11-29 03:44:01
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? To specify a port for the ASP.NET Development Server - WebSite / WebServices projects In Solution Explorer, click the name of the application. In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list. This will enable editing of the Port number property. In the Properties pane, click the text box beside Port number and type in a port number. Click outside of the Properties

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

谁说胖子不能爱 提交于 2019-11-29 02:26:04
问题 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 projects, and I haven't seen it happen on any Web Application projects. Symptoms Each time it freezes, it takes about half a minute before I can use it again. During a freeze, Windows Task Manager reports that Microsoft.VisualStudio.Web.Host.exe is

ASP.NET Web Site or Web Project [duplicate]

夙愿已清 提交于 2019-11-28 23:12:53
Possible Duplicate: ASP.NET: Web Site or Web Application? 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 caveats using one over the other? There's a pretty good comparison chart on MSDN . Website projects are simple, in that all files added to the project folders are automatically compiled and included, which was supposedly added to make it more palatable to classic ASP and PHP developers. Once

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

丶灬走出姿态 提交于 2019-11-28 03:11:52
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 assume the use of a Web Application Project . However, it seems impossible to find information about how to retrofit an existing ASP.net Web Site Project with the ASP.Net MVC features. I've reviewed Scott Hanselman's post and Chapter 13 of his upcoming book, both of which assume the Web Application Project type. Is this possible? Does anyone have a how

ASP.NET Web Site or Web Project [duplicate]

天涯浪子 提交于 2019-11-27 21:15:14
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: ASP.NET: Web Site or Web Application? 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 caveats using one over the other? 回答1: There's a pretty good comparison chart on MSDN. Website projects are simple, in that all files

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

北城余情 提交于 2019-11-27 17:45:06
问题 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? 回答1: To specify a port for the ASP.NET Development Server - WebSite / WebServices projects In Solution Explorer, click the name of the application. In the Properties pane, click the down-arrow beside Use dynamic ports and select False from the dropdown list. This will enable editing of the Port number property. In the

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

笑着哭i 提交于 2019-11-27 17:27:53
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 will be good. Q2. If there are any repercussions of mixing C# and VB.Net code then please do share those as well. I have a web project that is coded in VB.Net. I am working on one module of the project. and i want to code in C#. I cant convert the whole project to C# because i am not the only one working on the project. However, the module i intend

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

假装没事ソ 提交于 2019-11-27 06:48:01
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 Testing (using nunit) in at least some sections of the project moving forward. Any Unit Testing that I would be doing would need to have full access to all of the code that is currently located in the App_Code folder. I have done some initial reading so far, and the consensus seems to be: This will not be possible given my current setup Unit testing

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

泄露秘密 提交于 2019-11-27 05:05:09
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . 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

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

时光总嘲笑我的痴心妄想 提交于 2019-11-26 22:34:21
问题 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 will be good. Q2. If there are any repercussions of mixing C# and VB.Net code then please do share those as well. I have a web project that is coded in VB.Net. I am working on one module of the project. and i want to code in C#. I cant convert the