cassini

How to determine if Cassini is what's running your web app?

☆樱花仙子☆ 提交于 2019-12-01 02:03:48
Basically, the question in the title - how can I / is it possible to determine that Cassini is what's running my app versus IIS? Basically I want my code to know that it's debugging, so if I'm missing something easier here, please point it out. return AppDomain.CurrentDomain .GetAssemblies() .Any( a => a.FullName.StartsWith("WebDev.WebHost") ); You can look at the port. Casini always runs on a random high port. IIS will usually be 80 or 443 unless you've configured it differently. If your goal is solely to determine whether you are debugging (in which case the build configuration will probably

IIS Express or Cassini

不想你离开。 提交于 2019-11-30 21:18:44
I'm a little confused about something. I am using Visual Studio 2010 and am a little unsure whether VS 2010 uses IIS Express or Cassini when running web applications. What is the difference? Thanks, Sachin VS 2010 SP1 supports both IIS Express and Cassini (VS 2010 supports only cassini). You can configure your project to use IIS Express or Cassini. By default VS 2010 SP1 uses Cassini and to change right click on your web site/web application and select "use iis express". (When IIS Express used you would find a IIS Express tray icon and there you can see all the running sites) I think this

How do I keep the development web server (Cassini) running in Visual Studio 2008?

烈酒焚心 提交于 2019-11-30 19:50:09
问题 I'm using Visual Studio 2008 to develop ASP.NET applications. Currently I'm debugging with running on IIS. I would like to switch to the development web server (Cassini) for debugging, so that I can use features like edit and continue. The reason that I'm not, is because the development web server only starts up when you are in debug mode. Is there any way to keep it running all the time, and just have Visual Studio attach to the existing server process like it does with IIS? 回答1: You can

stop development server when i stop debugging

我只是一个虾纸丫 提交于 2019-11-30 11:11:59
How can automatically I stop the development web server when I stop debugging in Visual Studio? Justin There is no way to get the Asp.Net development service to automatically stop when you hit the "stop debugging" button, as all that does is detach the debugger. You could however explicitly kill the process yourself (which would in turn cause VS to stop debugging). This question shows how you might do this in a Macro: Automatically stop/restart ASP.NET Development Server on Build Alternatively take a look at mat3's answer on how you can force the development server to restart every time you

HttpModule not running with Visual Studio

怎甘沉沦 提交于 2019-11-30 06:24:47
I am using an HttpModule to do some URL shortening on my site. I am using Visual Studio 2008 and IIS 7, and .Net 3.5. When the module is specified in the system.webServer element of web.config, and the site is run in IIS, it works fine. The config looks like this: <system.webServer> <modules> <add name="MinimizeModule" type="ClipperHouse.UrlMinimizer.MinimizeModule" /> </modules>... My module attaches to the BeginRequest event, everything works. However, I can't get it to run using the built-in VS web server (Cassini). I tried moving the module config to the system.web element in web.config,

Visual Studio creating IIS virtual directories when solution opened

白昼怎懂夜的黑 提交于 2019-11-30 05:59:43
问题 Visual Studio is asking to create virtual directories in IIS when I open a solution. Could this be because projects within the solution have been configured to use IIS rather than Cassini? The dialog message is: "The local URI ... specified for Web project ... has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?" 回答1: Yes it is. If a web project is configured to use IIS (on the Web tab in the

IIS Express or Cassini

谁都会走 提交于 2019-11-30 05:47:40
问题 I'm a little confused about something. I am using Visual Studio 2010 and am a little unsure whether VS 2010 uses IIS Express or Cassini when running web applications. What is the difference? Thanks, Sachin 回答1: VS 2010 SP1 supports both IIS Express and Cassini (VS 2010 supports only cassini). You can configure your project to use IIS Express or Cassini. By default VS 2010 SP1 uses Cassini and to change right click on your web site/web application and select "use iis express". (When IIS

Visual Studio ASP.NET MVC project: setting the start URL

為{幸葍}努か 提交于 2019-11-30 01:11:33
Consider an ASP.NET MVC 2 project with VS 2010. The goal is to set the 'start URL' on run/debug using VS's built-in Cassini web server. Entering the URL as I want to be loaded, in the typical & valid format, controller/action , VS 2010 gives this exception. Tried Remedies: starting the URL with and without a slash ending the URL with and without a slash Question: How can you specify the start URL for an MVC 2 project? Technologies: Visual Studio 2010 ASP.NET MVC 2 Resolution: I was using the wrong field in the startup options. What was needed was the " Specific Page " field with the relative

JS,Images and CSS getting intercepted by HTTPModule

雨燕双飞 提交于 2019-11-29 15:09:48
问题 I have a simple HTTPModule which does some custom session state management. public void Init(HttpApplication context) { context.AcquireRequestState += new EventHandler(ProcessBeginRequest); ActivityLogger.LogInfo( DateTime.UtcNow.ToLongTimeString() + " In Init " + HttpContext.Current.Request.Url.AbsoluteUri); } and public void ProcessBeginRequest(object sender, EventArgs e) { HttpApplication application = sender as HttpApplication; ActivityLogger.LogInfo(DateTime.UtcNow.ToLongTimeString() + "

Why is IIS slower than ASP.NET Development Server?

孤者浪人 提交于 2019-11-29 14:55:39
问题 I have an ASPX webpage that does some complex operations and database calls. When I view the webpage by running ASP.NET Development Server (Cassini), it takes about 200ms . Then, without any code changes and configuration changes , I deploy the website to my local machine IIS 7 and view the same web page again. It takes 2.0sec , which is 10 times slower . I thought IIS should be faster than (or at least as fast as) Cassini. To investigate further, I created a new page, test1.aspx, which