【发布时间】:2009-06-29 14:33:41
【问题描述】:
我创建了 Windows Mobile 应用程序并加载了包含一种方法 (GetNumber) 的 Web 服务。当我从模拟器中调用此方法时,出现以下异常
无法显示错误消息,因为找不到包含它的可选资源程序集。
谁能帮帮我。这是我的 WM Application 代码,非常简单。
使用系统; 使用 System.Collections.Generic; 使用 System.ComponentModel; 使用 System.Data; 使用 System.Drawing; 使用 System.Text; 使用 System.Windows.Forms; 使用 MobileClientApp;
命名空间 MobileClientApp { 公共部分类Form1:表格 {
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MobileClientApp.localhost.WebService m = new MobileClientApp.localhost.WebService();
int result;
bool resbool;
m.GetNumber(10, true, out result, out resbool);
label1.Text = result.ToString();
}
}
}
【问题讨论】: