There are parentheses in the program Files (x86) path of the 64-bit Win7 system, and Oracle does not recognize such a path, so there is a problem that the database cannot be connected. So we can copy VS2010 's internal debug Web server WebDev.WebServer20.EXE file from the Program Files (x86) path, put it in a path that Oracle can recognize, and then fix the problem by invoking the server Debug.
1. Copy the WebDev.WebServer20.EXE and WebDev.WebServer40.EXE files from the Program Files (x86) directory and place them in the C:\dev directory.
2, start-run->cmd, in the Command line window input: "C:\dev\WebDev.WebServer20.EXE"/port:5970/path: "D:\WebSite"/vpath: "/" The command executes to start the Web debugging server. Note that path: the location of the project file, Vpath: the virtual directory name. PORT: Debug port number (you can set it yourself).
3. On the Web project, right-click Properties, on the Web tab, in server, use custom Web server, set the server URL to: http://localhost:5970
There is also a simpler way to take advantage of the second way of writing the path, as follows:
CD c:\progra~2\common Files\Microsoft shared\devserver\10.0
Webdev.webserver40.exe/port:6688/path: "E:\ contract Management \cms"/vpath: "/cms"
64-bit WIN7 system vs2010 Debug Unable to connect to Oracle