cassini

Customizing the cassini webserver

孤人 提交于 2019-12-23 16:24:41
问题 Currently the local webserver exectutes at http://localhost:51377 Is there any option of customizing the web server in order executing under http://192.168.1.2:51377 (where 192.168.1.2 is my static intranet ip address) 回答1: Cassini will only serve local requests. If you want a lightweight webserver you may want to take a look at UltiDev 回答2: I just released the CassiniDev 3.5.1/4.0.1 beta with a simple test fixture example if you are interested. Supports arbitrary IP and Host name Cassini for

Link to download Cassini source code?

假装没事ソ 提交于 2019-12-23 13:23:49
问题 Does any one know from where can I download source code for Cassini. I tried the link http://www.asp.net/Projects/Cassini/Download but this page does not exist now. 回答1: You can download it here there are also older versions on the website for the 2.0 framework for instance. 回答2: A newer version was released: Cassini 3.5.0.2: Support for Friendly URLs / Routing 来源: https://stackoverflow.com/questions/436250/link-to-download-cassini-source-code

What reason would Visual Studio ASP.NET Development Server start returning HTTP 503 errors?

北城余情 提交于 2019-12-22 08:38:24
问题 I've been putting together a website for a few weeks, most of the routine has just been creating new web forms with master pages. I've been using the ASP.NET Development Server to view my additions to the project as I've gone along, but today (seemingly out of nowhere) the server has been returning HTTP 503 errors. I tried restarting VS, then restarting workstation, then making sure that "bypass proxy for local addresses" was enabled on my workstation, but to no avail. Has anyone encountered

Starting .Net web service on the same port as the ASP.Net application

女生的网名这么多〃 提交于 2019-12-22 04:37:18
问题 We have a simple Visual Studio solution containing 2 projects: A.) Simple ASP.Net website B.) RESTful web service hosted in another ASP.Net application We want to simply start the projects in Debug mode (F5) and have A consume data from B through Ajax. We do not have the possibility to configure IIS on all development machines (because some of them are on the client's side). The problem might be that JavaScript needs to be in the same domain as the URL it posts to. Is there any way we can use

How would you compare IIS & Cassini as production servers?

删除回忆录丶 提交于 2019-12-21 22:18:26
问题 I have an ASP.NET website which is running currently on IIS. Now I want to move that site to run on Cassini. What are the advantages of Cassini over IIS? What are its disadvantages? What are your experiences using Cassini as a production web-server? 回答1: I would say you are better off, going with something proven to handle scaling, like mod_mono on apache if you are looking for alternative servers. The integrated pipeline, routing, compression and caching features of iis are hard to replicate

How can I launch Cassini Web Server from a command line or batch file?

徘徊边缘 提交于 2019-12-21 09:23:23
问题 Is there anyways to launch Cassini web server from a command line? The exe appears to be in this path, C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0 I try to use the suggested parameters but it doesn't seem to work. Does anyone know of, or have a script that can accomplish this? Thanks for any help or tips, Cheers, ~ck in San Diego 回答1: Example: taskkill /F /IM WebDev.WebServer.exe START /D “C:\Program Files\Common Files\microsoft shared\DevServer\9.0\” /B WebDev

Why does Request[“host”] == “dev.testhost.com:1234” whereas Request.Url.Host == “localhost”

无人久伴 提交于 2019-12-20 11:49:18
问题 Hi all, I seem to have found a discrepancy when testing ASP.NET applications locally on the built-in web server with Visual Studio 2008 (Cassini). I've set up a host on my local machine associating dev.testhost.com with 127.0.0.1 , since I have an application that needs to change its appearance depending on the host header used to call it. However, when I request my test application using http://dev.testhost.com:1234/index.aspx , the value of Request.Url.Host is always "localhost" . Whereas

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

不想你离开。 提交于 2019-12-19 04:39:49
问题 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. 回答1: return AppDomain.CurrentDomain .GetAssemblies() .Any( a => a.FullName.StartsWith("WebDev.WebHost") ); 回答2: 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.

stop development server when i stop debugging

久未见 提交于 2019-12-18 14:16:22
问题 How can automatically I stop the development web server when I stop debugging in Visual Studio? 回答1: 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

HttpModule not running with Visual Studio

只谈情不闲聊 提交于 2019-12-18 12:12:34
问题 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