我需要一个 服务器,处理aspx 页面(网站用的是 FrameWork4.0).
 IIS 太大了,用它不现实。
网上找了 一些 迷你服务器又不好用。之后 觉得 VS调试 时启动的 WebDev.WebServer40.exe 不错 ,
我把它 弄出来之后 发现 在 没装VS 的 机子上 不能 启动
不知道什么原因。我查了 好多资料都说 只用 WebDev.WebServer40.exe  和  一个 DLL 文件 就能启动了可是我的却不行。问题:
1.WebDev.WebServer40.exe 在没装 VS 环境下不能启动么?
2.启动WebDev.WebServer40.exe  只需要 2个文件么?分别是什么。
3.谁做过相关的 服务器 能 给个 思路么?

解决方案 »

  1.   

    看看这样可以吗These files are required:WebDev.WebHost.dll
    WebDev.WebServer.EXE
    WebDev.WebServer.exe.manifest
    And you may need to Install WebDev.WebHost.dll in GAC.Copy and paste this code into a .BAT file:@SET GACUTIL="C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\gacutil.exe"Echo Installing WebDev.WebHost.dll in GAC%GACUTIL% -if WebDev.WebHost.dll
    Hope this helps someone.参考http://stackoverflow.com/questions/1853398/how-to-install-webdev-webserver-exe-as-a-standlone-application
      

  2.   

    这个应该是详细步骤了3. Running CassiniI used Cassini binaries that come with Visual Studio 2010 and built with .NET 4.0:WebDev.WebHost40.dll - additional assembly, must be installed to the GAC (see "issues" section below)
    WebDev.WebServer40.exe - web server binary, regular windows application
    WebDev.WebServer40 config and manifest files
    Running Cassini turned out to be simple:WebDev.WebServer40.exe /port:8111 /path:"c:\Projects\My Web Application"
    and voila: navigating to http://localhost:8112/Home.aspx takes me to my web project home page.I included Cassini binaries in the setup of my webserver-based solution and made sure WebDev.WebHost40.dll is installed in the GAC. Now, the only problem is that somebody has to start Cassini before the user navigates to my simple demo web pages. Here is a simple script that uses PortQry utility to detect if Cassini is already running and listening on port 8111:portqry.exe -n localhost -e 8111
    if ERRORLEVEL=1 goto nolisten
    echo Cassini is already running
    goto end
    :nolisten
    start WebDev.WebServer40.exe /port:8111 /path:"c:\Projects\My Web Application"
    :end
    start http://localhost:8111/Home.aspx
    All I had to do after that is to add a shortcut to the script to the Start menu under "My Web Application/Samples", and my web setup is done.这个英文很简单了,我就不翻译了。来自
    http://www.controlsystemworks.com/articles/UsingCassiniWebServer.html