大马资讯论坛 - 马来西亚中文资讯平台

 找回密码
 注册
搜索
打印 上一主题 下一主题

[教学] Could not create type 'WebService1.Service1'

[复制链接]
跳转到指定楼层
1#
发表于 2010-4-9 12:04:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
For Web Service Solution / Web Service的问题
  1.   '   Visual   Basic  
  2.   <%@   WebService   Language="vb"   Codebehind="Service1.asmx.vb"   Class="WebService1.Service1"   %>  
  3.    
  4.   //   C#  
  5.   <%@   WebService   Language="c#"   Codebehind="Service1.asmx.cs"   Class="WebService1.Service1"   %>  
  6.    
复制代码
If   you   rename   the   class,   be   sure   to   change   the   class   name   in   the   Class   property   of   the   WebService   directive   as   well.  How   to   solve   it? See   picture   below.

如果您换了Class名字,你也要把Service1.asmx的名字一起换掉,如何解决呢? 看以下图

use Notepad open Service1.asmx Rename Class Name and Save / 使用 notepad 打开 Service1.asmx 把class的名字换了,存档即可。

手机版|大马资讯论坛  

GMT+8, 2024-4-28 20:48 , Processed in 0.017392 second(s), 13 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表