cassini

Cassini Error: “This type of page is not served”

大憨熊 提交于 2019-12-11 15:32:32
问题 I'm trying to use the Server class from Cassini to include a basic web server in my own application. I just started playing around with it to get familiar with the way the server works and I setup a simple app that is as follows: static void Main(string[] args) { Server server = new Server(80, "/", @"C:\Projects\"); server.Start(); Console.ReadLine(); server.Stop(); } It lets me browse through the directories, however if I try to click on a file, a C# source file (*.cs) for example, it gives

Remote debugging web service hosted by Cassini

♀尐吖头ヾ 提交于 2019-12-11 14:38:42
问题 Is there any way to remote debug a web service on my local machine that is being hosted by Cassini? ie On my local machine I can browse to http:// localhost:1234/webservice, but I cannot go to another machine and access http:// ip_address_of_my_machine:1234/webservice. Is there a way? Thanks, Jon 回答1: I think you'll find cassini doesn't allow remote connections. Any reason you can't run it from your IIS webserver? 回答2: Use Fiddler! Fiddler can operate as a "reverse proxy" which means that it

The directory or file specified does not exist on the Web server

心不动则不痛 提交于 2019-12-11 08:09:19
问题 I have a hybrid asp.net web forms / mvc application that I recently converted to .net 4 with mvc2. I have set-up that application to run on IIS 7.5 (on Windows 7) and the web forms part of the site is running okay but the MVC part is not. Whenever I try and access a page that needs to go through the routing engine I get HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Module IIS Web Core Notification

StackoverflowException in IIS7 but not in Cassini

…衆ロ難τιáo~ 提交于 2019-12-11 07:34:07
问题 I have some C# code that is giving a StackOverflowException when running under IIS7 but when it is run under Cassini in VS2008 then the code runs fine. Is this a known issue whereby Cassini handles these kinds of exceptions differently? 回答1: The IIS runtime uses a different stack size for threads. IIRC it is 256 KB as opposed to the standard 1 MB you get when running on the standard .NET runtime, which is the one VS uses. In other words, you may have code that runs fine under the regular .NET

Using Cassini with a virtual path that contains dots

▼魔方 西西 提交于 2019-12-11 06:44:44
问题 I am working on an existing project in ASP.NET witch is based in a folder that contains dots http://localhost/My.Awesome.WebClient/ This setup works fine using the integrated Visual Studio Develompent Server, but fails when I add MVC content and try to access it ( Error 404 Resource not found ). http://msdn.microsoft.com/en-us/library/ee941656.aspx seems to explain the issue: If you create a file system Web site in Visual Studio 2010 and the Web site is in a folder that contains a dot (.) in

How do you change an ASP.NET website to use Cassini server?

主宰稳场 提交于 2019-12-11 03:15:47
问题 I am working on an ASP.NET web site that for some reason does not use the Visual Studio "Cassini" mini-server but requires that IIS be installed and set up. It runs as "http://localhost". I would like to change this, but can't find information as to how to change it. Is there a property somewhere? I looked in the Property Pages of the project, but it just shows two options for server : Default Server and Custom Server. Default Server is selected and Custom Server is grayed out. I notice that

Is Visual Studio Asp.Net Development Server Really Multi-Threaded?

我的未来我决定 提交于 2019-12-11 03:09:33
问题 I'm debugging a WebProject in VS2010 that runs in the local dev server (cassini?). One of the aspx pages calls a ManualResetEvent.WaitOne() and another Page aspx page calls the ManualResetEvent.Set() (on the same Global object) to release the first page. When I look at the thread list in VS2010 there seems to be lots of worker threads. However, the web server seems to halt processing anything while blocked by the ManualResetEvent.WaitOne() call. Therefor the ManualResetEvent.Set() does not

Why RewritePath changes the Browser Url?

走远了吗. 提交于 2019-12-11 02:32:50
问题 I have an ASP.NET 4 HttpModule (see code below). When the url path starts with "/1.0" I want Cassini/IIS to go to MyService.svc. However, I don't want to show "MyService.svc" to the user (i.e. no update to the url in the browser). I want the user to see "www.something.com/1.0". I was pretty sure that RewriteUrl isn't supposed to change the browser url, but in my case it does. Any idea why? public void Init(HttpApplication context) { context.BeginRequest += delegate { HttpContext ctx =

What is Cassini's (aka VS Dev Server) stack limit?

回眸只為那壹抹淺笑 提交于 2019-12-11 00:12:27
问题 I'm running into a StackOverflowException (please don't ask, it's not my fault) in IIS6/2k3 which has a limit of 256k, but the exception doesn't happen in the VS debugger. As a matter of understanding I'd love to know, but have failed to google what the stack limit of Cassini is...if indeed it has one? 回答1: Have you tried stack-overflowing Cassini on purpose to see at what point it crashes? I'd imagine the stack is immense, though I would expect Cassini to replicate IIS as closely as possible

RegEx.Match is much slower in IIS compared to Development Server (Cassini)?

谁说胖子不能爱 提交于 2019-12-10 13:38:08
问题 While looking at the performance of an asp.net (webservice) application, we noticed that on IIS it is much slower (38 seconds) than on the Dev Server (18 seconds). Running the Performance profiler (in sampling mode) of Visual studio we noticed the difference is calling regex.Match?! In IIS it is taking 70% of the time, running the same test against same app in dev server, it is taking less than 1% of the total time. So anyone can explain this weird difference in behaviour between IIS and Dev