Microsoft KB Archive/822857

= Visual Studio .NET Cannot Process DBCS Characters in Web Services That Were Generated by the BizTalk Adapter for Web Services =

Article ID: 822857

Article Last Modified on 6/17/2003

-

APPLIES TO


 * Microsoft BizTalk Adapter for Web Services

-



SYMPTOMS
You 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  tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This  tag should then have its &quot;mode&quot; attribute set to &quot;RemoteOnly&quot;. To enable the details to be viewable on remote machines, please set &quot;mode&quot; to &quot;Off&quot;.

-or-

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



CAUSE
This problem occurs because Visual Studio .NET does not interpret the DBCS characters in the Web service correctly.



WORKAROUND
To work around this problem, add a fileEncoding=&quot;utf-8&quot; attribute to the globalization element of the Web.config file for the Web service, as in the following sample code:  After you add this attribute, Visual Studio .NET can process the DBCS parameter names without experiencing errors.



STATUS
This behavior is by design.

Keywords: kbprb KB822857

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.