简体   繁体   中英

Can't Find System.ServiceModel Reference for my CLR Project

I'm trying to add the System.ServiceModel reference on my CLR project. When I click 'Add Reference' on my CLR project, all I see within the window that pops up when I try to do this is the Projects and SQL Server tabs. Under the SQL Server tab there is no System.ServiceModel reference. No matter what framework I target my project to, I do not see the System.ServiceModel reference. What can I do?

Try this:

http://community.aspnix.com/windows-manuals-tutorials-tos/1867-system-servicemodel-assembly-found.html

Hi all,

I ran into this issue today for my domain. After some investigation it turned out that eventhough .Net 3.0 was installed on the server, IIS did not seem to find the system.service assembly required to execute WCF or Cardspace code. Running ServiceModelReg.exe on the server (you will have to ask support to do this for you) does the trick.

Here is the full command to run: %WINDOWS%Microsoft.NETFrameworkv3.0Windows Communication FoundationServiceModelReg.exe /i /x

Once this is done, your web application will be able to instanciate objects for the system.servicemodel assembly.

I found this file on my own machine, should do the trick.

I'm not sure you're supposed to have the ability to do this at all, actually. At least, in VS2010 I can't do this, none of my colleagues at work can either. You only see the SQL and Project tabs, and the only time you get the ServiceModel reference in the project's references is when you add a service reference to an actual WCF service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM