Adding WebGet gives error..
-
Code SnippetServer Error in '/' Application.
Could not load type 'System.ServiceModel.Administration.IWmiInstanceProvider' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
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.TypeLoadException: Could not load type 'System.ServiceModel.Administration.IWmiInstanceProvider' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
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.
Stack Trace:
[TypeLoadException: Could not load type 'System.ServiceModel.Administration.IWmiInstanceProvider' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) +0
System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +214
System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +211
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +122
System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +419
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit) +126
System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Type attributeType, Boolean inherit) +63
System.ServiceModel.Description.ServiceReflector.GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType, Boolean inherit) +40
[InvalidOperationException: An error occurred while loading attribute 'OperationBehaviorAttribute' on method 'Tasks' in type 'ICollaborateService'. Please see InnerException for more details.]
System.ServiceModel.Description.ServiceReflector.GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType, Boolean inherit) +516
System.ServiceModel.Description.TypeLoader.CreateOperationDescriptions(ContractDescription contractDescription, ContractReflectionInfo reflectionInfo, Type contractToGetMethodsFrom, ContractDescription declaringContract, MessageDirection direction) +134
System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation) +896
System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation) +174
System.ServiceModel.Description.ContractDescription.GetContract(Type contractType, Type serviceType) +59
System.ServiceModel.ServiceHost.CreateDescription(IDictionary`2& implementedContracts) +314
System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +144
System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +236
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +28
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +323
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +699
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +31
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +445
[ServiceActivationException: The service '/CollaborateService.svc' cannot be activated due to an exception during compilation. The exception message is: An error occurred while loading attribute 'OperationBehaviorAttribute' on method 'Tasks' in type 'ICollaborateService'. Please see InnerException for more details..]
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +962
System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) +419
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() +264
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() +760
System.ServiceModel.Activation.HostedHttpModuleRequestAsyncResult.BeginRequest() +178
System.ServiceModel.Activation.HttpModule.StartBeginProcessRequest(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +70
System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +195
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Version Information:
Microsoft .NET Framework Version:2.0.50727.1378; ASP.NET Version:2.0.50727.1378
Server Error in '/' Application.
Could not load type 'System.ServiceModel.Administration.IWmiInstanceProvider' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
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.TypeLoadException: Could not load type 'System.ServiceModel.Administration.IWmiInstanceProvider' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
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.
Stack Trace:
[TypeLoadException: Could not load type 'System.ServiceModel.Administration.IWmiInstanceProvider' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.] System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) +0 System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +214 System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +211 System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +122 System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +419 System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit) +126 System.Reflection.RuntimeMethodInfo.GetCustomAttributes(Type attributeType, Boolean inherit) +63 System.ServiceModel.Description.ServiceReflector.GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType, Boolean inherit) +40 [InvalidOperationException: An error occurred while loading attribute 'OperationBehaviorAttribute' on method 'Tasks' in type 'ICollaborateService'. Please see InnerException for more details.] System.ServiceModel.Description.ServiceReflector.GetCustomAttributes(ICustomAttributeProvider attrProvider, Type attrType, Boolean inherit) +516 System.ServiceModel.Description.TypeLoader.CreateOperationDescriptions(ContractDescription contractDescription, ContractReflectionInfo reflectionInfo, Type contractToGetMethodsFrom, ContractDescription declaringContract, MessageDirection direction) +134 System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation) +896 System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation) +174 System.ServiceModel.Description.ContractDescription.GetContract(Type contractType, Type serviceType) +59 System.ServiceModel.ServiceHost.CreateDescription(IDictionary`2& implementedContracts) +314 System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +144 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +236 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +28 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +323 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +699 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +31 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +445 [ServiceActivationException: The service '/CollaborateService.svc' cannot be activated due to an exception during compilation. The exception message is: An error occurred while loading attribute 'OperationBehaviorAttribute' on method 'Tasks' in type 'ICollaborateService'. Please see InnerException for more details..] System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +962 System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath) +419 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() +264 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() +760 System.ServiceModel.Activation.HostedHttpModuleRequestAsyncResult.BeginRequest() +178 System.ServiceModel.Activation.HttpModule.StartBeginProcessRequest(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +70 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +195 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
Version Information:
Microsoft .NET Framework Version:2.0.50727.1378; ASP.NET Version:2.0.50727.1378

