Biztalk WebService deployment notes

Source: Internet
Author: User
Symptom

CreateWinformREFERENCEWeb Services, GenerateWeb ServicesThe proxy class hasOperation_1Method, this method isPort_2The operation name defined by the port.

PlaceButton, In thisButtonIn the click event, createWeb ServicesProxy class instance, createOperation_1The parameter instance of the method, and then callOperation_1Method, receiveOperation_1The Return Value of the method.

The preceding is a test scenario.Operation_1MethodCodeSet a breakpoint, debug and execute thisWinformApplicationProgram, ClickButton, The program is callingOperation_1When a breakpoint is interrupted at the method, one-step debugging and Program Invocation are performed.Operation_1Method is actually calledWeb ServicesAnd an error is returned:SoapInternal processing failed (Soapexception: Internal soap processing failure). The following error message is displayed in the Event Viewer:

LUser'Nt Authority \ Network Service'Logon Failed.

L try to connect to the server " jinjz2003 " biztalkmgmtdb " SQL server database failed. error : "the database requested for Logon cannot be opened " biztalkmgmtdb " . Logon Failed ."
( An attempt to connect to "biztalkmgmtdb" SQL Server database on server "Server "failed with error: "Cannot open database requested in login 'biztalkmgmtdb '. login fails. ". )

LThe message engine cannot register the receiving location"/Biztalksqlsp_proxy/biztalksqlsp_orchestration_1_port_2.asmx"Soap. Verify that the receiving location exists and the independent adapter can accessBiztalkRun under the account of the database.
(The messaging engine failed to register the adapter for "Soap" for the receive location "/virtualdirectory/name. asmx ". please verify that the receive location is valid, and that the isolated adapter runs under an account that has access to the BizTalk databases.)

III.Solution Process

according to the error message, go to Microsoft's support website for query. The related descriptions and handling methods of this error are displayed, this is because the account of the Web Services corresponding application pool is not BizTalk isolated host users group member. BizTalk isolated host users the Group has a pair of 'biztalkmgmtdb' database access permission. The account must also be a member of the iis_wpg group.

viewed IIS Web Services the corresponding application pool is defaultapppool , defaultapppool the corresponding account is a network service ( network service ), the iis_wpg group contains network service accounts, however, no Network in BizTalk isolated host users group Service account, therefore, add the BizTalk isolated host users group to the network service account.. Test, the fault persists, and an error message is still displayed in the Event Viewer: network service cannot log on 'biztalkmgmtdb' database. It's a little strange.

change defaultapppool to " IWAM _ machine name ", add IWAM _ machine name "to BizTalk isolated host users group and iis_wpg group, restart IIS and then perform the test. There are still errors, but this error message is not the original " soapexception: Internal soap processing failure ", changed to " system. web. services. protocols. soapexception: the server cannot process the request. ---> system. invalidoperationexception: temporary classes cannot be generated (result = 1) . \ nerror cs2001: the source file " C: \ Windows \ temp \ zyobqxbr.0.cs () "

It seems that the database access permission problem has been solved, and the event viewer does not have an error record for data access. Check the Microsoft support website for new errors, find the relevant content, and sayWeb ServicesThe corresponding application pool account needs% SystemRoot % \ TempThe folder has read and write permissions, becauseWeb Service (. asmx)FileJITThe% SystemRoot % \ TempFolder compilation and generationDLLFile, if the account of the application pool does not% SystemRoot % \ TempFolder read and write permissions, you cannot generate relatedDLLFile.

Follow this instructions and set it to"IWAM _Machine name "account read/write% SystemRoot % \ TempFolder read/write permission, and then test,OK, Successful,Operation_1The expected results returned when the method is successful.

Reference:

1.Biztalk Server 2004AndWebService:Http://www.microsoft.com/china/MSDN/library/WebServices/WebServices/BTS2004WP5cab05ab.mspx? MFR = true

2.You cannot call an orchestration that is exposed as a Web service on a server that is running BizTalk Server 2004:Http://support.microsoft.com /? Kbid = 910295

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.