Visual Studio .NET Cannot Process DBCS Characters in Web Services That Were Generated by the BizTalk Adapter for Web Services (822857)
The information in this article applies to:
- Microsoft BizTalk Adapter for Web Services
SYMPTOMSYou use the BizTalk Adapter for Web Services to generate
a Web service from a Web method call that contains Double Byte Character Set
(DBCS) characters. When you try to add the Web service to a Microsoft Visual Studio
.NET project, you may receive an error message similar to one of the following:
Runtime Error
Description: An
application error occurred on the server. The current custom error settings for
this application prevent the details of the application error from being
viewed.
Details: To enable the details of this specific error
message to be viewable on the local server machine, please create a
<customErrors> tag within a "web.config" configuration file located in
the root directory of the current web application. This <customErrors>
tag should then have its "mode" attribute set to "RemoteOnly". To enable the
details to be viewable on remote machines, please set "mode" to
"Off". Server Error in '/'
Application.
Compilation Error Description: An error occurred
during the compilation of a resource required to service this request. Please
review the following specific error details and modify your source code
appropriately. Compiler Error Message: CS1026: )
expected CAUSEThis problem occurs because Visual Studio .NET does not interpret the DBCS characters in the Web
service correctly.WORKAROUNDTo work around this problem, add a fileEncoding="utf-8" attribute to the globalization element of the Web.config file for the Web service, as in the following sample code: <configuration><system.web> <globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8" /> </system.web> </configuration> After you add this attribute, Visual Studio .NET can process the DBCS parameter names without experiencing errors. STATUS This
behavior is by design.
Modification Type: | Major | Last Reviewed: | 6/17/2003 |
---|
Keywords: | kbprb KB822857 kbAudDeveloper |
---|
|