[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1752
  • Last Modified:

wcf code access security

I'm new to WCF but I'm starting to get it.

I used svcutil to generate code using a supplied wsdl and two xsds from a client. I created a WCF service library project, deleted the Service1 and Iservice1 modules, inserted the generated code and changed the bindings and now when I try to run it Im getting "The target assembly contains no service types. You may need to adjust the Code Access Security policy of this assembly"

Any ideas on what I did wrong and what I do next?
0
trgb
Asked:
trgb
1 Solution
 
mcs0506Commented:
check out the namespace of generated code it must be same with the current project name space
0
 
trgbAuthor Commented:
That helped thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now