Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Posted
Comments
On local host, what is the related dll?
Sharma_Dinesh 31-May-14 0:39am    
Hi Dash,
On local host it was a WebReferenece with .disco and .wsdl.It was converted to .dll when host on server
Dinesh

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900