0

I've been trying to create a webService on a .NET platform using Visual Studio's WCF Service Library project template. I noticed that when I tried to use a VO object from another project file within the same solution... programatically, the compiler has no issues and runs fine... but when I call the webService, it will stop the application prematurely.

I've done some google-ing and the closest answer I could find was the possibility that since WCF is run from a separate location, the VO.dll file that I added in as a reference is not available to it.

As a reference to the above statement... please find the enclosed link: http://forums.asp.net/t/712261.aspx

Thanks

16
  • Is VO.dll a reference or a project in visual studio? If it is a reference, try and mark the dll to copy local. Right click the refence and click properties, set copy local to true. If it is a project make sure your wcf project has a reference to the project.
    – user2453734
    Jan 14, 2014 at 21:31
  • the VO is a project in VS. I've tried adding the VO project into my wcf project but the problem still exists. Jan 14, 2014 at 22:50
  • Have you looked in the bin folder of where you deployed your wcf solution to check if it has vo.dll file? if not, try and copy the .dll file there to see if it solves the problem. This will confirm that is the problem. If it does not work, you probably have a different problem.
    – user2453734
    Jan 14, 2014 at 22:55
  • Something to try would also be in visual studio go to the debug tab select exceptions from the menu. In the window you get check all the checkboxes under the thrown column then run the project with debugging. This should throw an exception no matter what happens. If this works, could you post the details of the exception you get?
    – user2453734
    Jan 14, 2014 at 22:57
  • I tried copying the vo.dll file directly into the same directory as the wcfservicehost.exe is... is that what you are referring to? If so, that didn't fix the problem either Jan 14, 2014 at 22:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.