[WCF] How to solve a System.InvalidOperationException

To solve the problem you need to compile your assembly in the Bin folder of the WebApplication (bin\debug or bin\release are not valid folder). If you're using Visual Studio you can config the output folder by the project properties, in the BUILD tag.

Server Error in '/HWWebService' Application.

The type 'Sardo.Giorgio.ServiceName', provided as the Service attribute value in the ServiceHost directive could not be found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The type 'Sardo.Giorgio.ServiceName', provided as the Service attribute value in the ServiceHost directive could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Print | posted on domenica 23 luglio 2006 19.31

Comments on this post

# re: [WCF] How to solve a System.InvalidOperationException

Left by 合金管 on apr 16, 2008 11.24

# re: [WCF] How to solve a System.InvalidOperationException

Requesting Gravatar...
Thanks, It's working
Left by ozer on gen 14, 2009 9.42

# re: [WCF] How to solve a System.InvalidOperationException

Requesting Gravatar...
5CXU now
Left by 5CXU on mar 15, 2009 2.46

# re: [WCF] How to solve a System.InvalidOperationException

Requesting Gravatar...
I was searching on the web for the same thing, found..but couldn’t figure out how to run..I did have problems with this so plz solve my problem..
Left by Giocare ai casinò gratis on mag 03, 2010 12.07

# re: [WCF] How to solve a System.InvalidOperationException

Requesting Gravatar...
really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
Left by honda racing on apr 11, 2011 12.26

Your comment:

 (will show your gravatar)
 
Please add 6 and 6 and type the answer here: