找不到类型或命名空间名称'dutyfree'(您是否缺少using指令或程序集引用?) [英] The type or namespace name 'dutyfree' could not be found (are you missing a using directive or an assembly reference?)

查看:67
本文介绍了找不到类型或命名空间名称'dutyfree'(您是否缺少using指令或程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发One Project,它正在消耗One Webservice免税。我添加了Webreference,它在我的本地机器上运行得非常好。但是当我在我的服务器上发布它时它给出了错误

无法找到类型或命名空间名称'dutyfree'(是你错过了一个using指令或程序集引用吗?)



我已检查webrefernce是否已转换为服务器上bin目录中的App_WebReferences.dll。

相同的代码在Localhost上运行得非常好。



protected void Page_Load(object sender,EventArgs e)

{

dutyfree.Services test = new dutyfree.Services();

DataTable dt = test.GetProductCatalog2();

Repeater1.DataSource = dt;

Repeater1.DataBind();

}



请帮助我。我坚持了。我坚持了。我已经做了很多google.Every似乎很好,但仍然得到它。





关心

I am working on One Project which is consuming One Webservice "dutyfree". I add the Webreference and it is working very fine on my Local Machine.But as I publish it on my Server it is giving error
"The type or namespace name 'dutyfree' could not be found (are you missing a using directive or an assembly reference?)"

I have check that the webrefernce is converted into App_WebReferences.dll in the bin directory on server.
Same code was working very fine on Localhost.

protected void Page_Load(object sender, EventArgs e)
{
dutyfree.Services test = new dutyfree.Services();
DataTable dt = test.GetProductCatalog2();
Repeater1.DataSource = dt;
Repeater1.DataBind();
}

Kindly help me.I am stuck to it.I have done lots of google.Every thing seems to be fine but still getting it.


Regards

推荐答案

这篇关于找不到类型或命名空间名称'dutyfree'(您是否缺少using指令或程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆