我们有一个网站,该网站设置为在 IIS 中处理多个工作进程。在加载某个页面时,我们会收到经典的“对象未设置为对象的实例”错误。我想尝试在 Visual Studio 中复制它,有没有办法设置 Visual Studio,以便它像在 IIS 中一样有效地在多个工作进程上运行?
问问题
189 次
1 回答
0
You can host websites on IIS if you have Windows Home Premium Plus or better.
Just install IIS, add your site, bind it to 'sitename.dev' and then wdit your c:\Windows\System32\drivers\etc\hosts file. Please use visual studio because it requires admin permissions.
Add line like this to hosts. file:
127.0.0.1 sitename.dev
check all is correct by ping sitename.dev - it should go to 127.0.0.1.
Then you are able to setup multimple processes, similar like on server, and debug it from VS.NET using Debug - Attach to process (look for w3p.exe in processes list).
于 2012-01-29T23:48:58.513 回答