The specific tool mentioned on this page that you'll want to use is the Service Configuration Editor (svcconfigeditor.exe). This tool is used to edit Web.config files for WCF services. It comes with a handy wizard for adding a new service. When using this wizard, I ran into an error message similar to the following when trying to select the assembly I built containing my service: "Could not load assembly. This assembly is built by a newer runtime than the currently loaded runtime and cannot be loaded.". To solve this, I had to go and change the application configuration file for the program ("svcconfigeditor.exe.config" in the same directory as the program). I added the following under the root 'configuration' element:
<startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v2.0" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup>
This will allow the program to run using your currently installed framework (mine happened to be 4.0).
No comments:
Post a Comment