问题描述
我怎么能告诉Visual Studio 2010将推出从不同的位置内置的Web服务器。是否有一个注册表设置的地方,我可以修改或一些如何更改调试 - >启动调试菜单命令
How I can tell Visual Studio 2010 to launch built in web server from a different location. Is there a registry settings somewhere that I can modify or some how change the Debug -> Start Debugging menu item command?
从C:\ Program Files文件(x86)的\ Common Files文件\微软共享\ DevServer \ 10.0 \ WebDev.WebServer20.exe
FromC:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\WebDev.WebServer20.exe
要C:\ Program Files文件\ Common Files文件\微软共享\ DevServer \ 10.0 \ WebDev.WebServer20.exe
ToC:\Program Files\Common Files\microsoft shared\DevServer\10.0\WebDev.WebServer20.exe
推荐答案
如果您已经在与ASP.NET的Oracle集成在Windows 7 64位连接面临的问题,然后放松... XD
If you've facing the problem in connection with Oracle integration with ASP.NET in Windows 7 64 bits, then relax... XD
这是解决方案(我使用Visual Studio 2010的32位):
That's the solution (I'm using Visual Studio 2010 32 bits):
首先,这里遵循的步骤:
First of all, follow the steps here:
System.Data.OracleClient需要Oracle客户端软件版本8.1.7
然后将这些步骤:
-
复制你的web服务器的目录(通常为C:\ Program Files文件(x86)的\共同文件\微软共享\ DevServer \ 10.0)到C:\ Program Files文件\共同文件\微软共享\ DevServer \ 10.0;
Copy the directory of your webserver (typically in "C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0") to "C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0";
打开 CMD
,导航到目录粘贴在步骤1中启动Web服务器(在我的情况WebDev.WebServer40)指向的目录中项目(要小心,因为这条路不能包含括号,这将导致Oracle错误ORA-06413:连接不开一样可以看到描述这里);
Open cmd
, navigate to directory pasted in step 1 and start the web server (in my case "WebDev.WebServer40") pointing to the directory of your project (be careful, because this path cannot contain parenthesis, that causes the Oracle Bug 'ORA-06413: connection not open' as can be see described here);
。在解决方案资源管理到项目>右键点击>属性>网络>中的服务器部分中,选择使用自定义Web服务器,并把您的服务器正在运行的URL。在此之后,开始调试和快乐= D
If you want to debug your application, change the default URL to the URL of your started server in Visual Studio. In Solution Explorer go to your project > right click > properties > web > in "Servers" section select "Use Custom Web Server" and place the URL that your server are running on. After this, start debug and be happy =D
这篇关于Visual Studio 2010中的Web服务器的更改启动路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!