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.WebServer.EXE /port:5002 /path:”d:\Projects\myproject\project.service” /vpath:”/Project.Service”

Check this out:

Starting Cassini manually




回答2:


Consider also using UWS Pro. It's a free web server that's fairly advanced and can be started from the command line to debug ASP.NET applications from .NET 1.1 to 4.



来源:https://stackoverflow.com/questions/4549559/how-can-i-launch-cassini-web-server-from-a-command-line-or-batch-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!