A simple summary of the authoring of the WebServer (ASMX) Service Program website. Problems encountered in the Webserver
Write webserver program vs run Debug if present
system.data.oracleclient.oracleexception:ora-06413: The connection is not open. This is because when using the Oraole driver to access the Oracle database, the folder where the program is located, the last name cannot be ")" or "--" these characters.
VS2013 in the Windows7 64-bit version of the installation, the default is a program files (x86), which is the "()" caused;
Modify the installation directory of the VS2013, then create a new data source in the From program, the test passed;
But new Web program, handwriting connection database, run, still prompt "ORA-06413: Connection is not open";
Originally running the Web program in the project, the default is to use the VS built-in Web server (develop server), and this built-in server program is installed under C:/Program files (x86)/common files/, here also used "(", Thus caused the error.
However, there is no place for you to be able to modify the installation path of this built-in server at installation time.
So there's only one way around the built-in server. That is, use native IIS to debug the program. In the solution, select the Web project point right-click Property, under the Web tab you can put the debug server as native IIS. This is the re-debugging Web program, connecting the database successfully.
Put the program on the Windows R2 64bit Server, the above error occurs when processing Excel.
The workaround is to open IIS Manager to the server. Go to Application pool and locate the corresponding site. Right-click Advanced setting ... For reference, set enable 32-bit application to False to true.
Other programs call the post-publish webserver function program:
In the case where the URL address is already known,
In the Windows Start menu, locate Visual Studio Command Prompt. And then enter the command inside:
WSDL/HTTP// your WSDL address can be in C: \ ... A. cs file is generated under the directory. Copy this file into your project.
You can also modify the CS code. Open the URL parameter. Can be configured by reading.
If it appears
You can try to add the WSDL after the URL. Confirm that the URL can be opened in the browser.
WSDL can require the internal personnel to be saved as the XML sent to you. You can also generate CS files locally using the WSDL D:\xxxx.wsdl.
There is another way to be more troublesome. Call WebRequest, send a POST request to this URL. When you look at the local WSDL, there is something written about it in the description.
How C # calls the Webserver function