Link to home
Create AccountLog in
Avatar of quest_capital
quest_capital

asked on

C# Compilation Error on Web Service

I have a web site setup with VS 2010 and I have a web service setup on my local machine that works fine. However, when I uploaded the site to my host server and try to go to the web service I get a Compilation Error see below:
Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0246: The type or namespace name 'DSTableAdapters' could not be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 11: using System.Linq;
Line 12: using System.Web.Script.Serialization;
Line 13: using DSTableAdapters;
Line 14: 
Line 15: 

Source File: \\brainiac.ad.safesecureweb.com\websites\vp6389d9\questentertainmentgroup.com\wedding\app\Data.asmx    Line: 13 

Open in new window


Why is this not working?
Avatar of kaufmed
kaufmed
Flag of United States of America image

Have you deployed all the DLLs for you site? Did you do a fresh compile before you deployed the site to the server?
Avatar of quest_capital
quest_capital

ASKER

kaufmed

Yes I did a fresh compile...
There are no DLL... Should there be?
If so how do I create one?
Well it looks like when I did a publish it did create a bin folder called App_Code.dll
Hi,
For some reason, the assembliesnused by your webservice were not deployed. In this case, you'll hav to be sure that on the hosting side, in your webservice folder, you have a bin folder. In this folder, you'll have to copy all the dlls that you have on you development machine bin folder.
ASKER CERTIFIED SOLUTION
Avatar of quest_capital
quest_capital

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
deployment mistake