为什么在WebService工程中不能使用“StrConv(s, VbStrConv.Wide)”?
用vb创建的一个Asp.Net WebService工程,有一个功能是将半角转换为全角。代码如下:
<WebMethod()> _
Public Function Test() As String
Dim s As String
s = "1"
Try
s = StrConv(s, VbStrConv.Wide)
Catch ex As Exception
Throw ex
End Try
End Function
为什么运行时出错呢?提示:
VbStrConv.Wide and VbStrConv.Narrow are not applicable to the locale specified.
我用的是双系统,c盘下是Win2k,d盘下是WinXp,我用的是WinXp系统。.Net安装在D盘下。
请高手指教。急!急!急!急!简直要疯了!
问题点数:100、回复次数:5Top
1 楼tosgd(快乐是本钱)回复于 2006-03-02 13:33:32 得分 0
斑竹救命呀!!!!!!!!!Top
2 楼tosgd(快乐是本钱)回复于 2006-03-02 13:57:46 得分 0
是不是和IIS的配置有关系呢?Top
3 楼tosgd(快乐是本钱)回复于 2006-03-02 15:24:06 得分 0
在Windows应用程序中可以。Top
4 楼123comeon(卡萨)回复于 2006-03-02 15:40:03 得分 100
帮顶一下Top
5 楼tosgd(快乐是本钱)回复于 2006-03-14 18:19:40 得分 0
知道了,VbStrConv.Wide此变量只能在亚洲区域使用,而我的系统是在英文Xp基础上改成日文的。病因应该就在这里!Top




