Sometimes i get this Exeception:Server Error in '/' Application.--------------------------------------------------------------------------------Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object.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: [NullReferenceException: Object reference not set to an instance of an object.] System.UriTemplateCompoundPathSegment.IsEquivalentTo(UriTemplatePathSegment other, Boolean ignoreTrailingSlash) +68 System.UriTemplate.IsPathFullyEquivalent(UriTemplate other) +211 System.UriTemplate.IsEquivalentTo(UriTemplate other) +41 System.ServiceModel.Dispatcher.WCFKey.Equals(Object obj) +41 System.Collections.Generic.ObjectEqualityComparer`1.Equals(T x, T y) +37 System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +251 System.ServiceModel.Dispatcher.WebHttpDispatchOperationSelector..ctor(ServiceEndpoint endpoint) +367 System.ServiceModel.Description.WebHttpBehavior.GetOperationSelector(ServiceEndpoint endpoint) +24 System.ServiceModel.Description.WebHttpBehavior.ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) +185 Microsoft.ServiceModel.Web.WebHttpBehavior2.ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) in d:\dd\SP_1\src\ndp\cdf\src\hilo\stagingCodeplex-R2\Microsoft.ServiceModel.Web\Microsoft.ServiceModel.Web\WebHttpBehavior2.cs:46 System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +3858 System.ServiceModel.ServiceHostBase.InitializeRuntime() +37 System.ServiceModel.ServiceHostBase.OnBeginOpen() +27 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +49 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +261 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +121 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479[ServiceActivationException: The service 'XXX' cannot be activated due to an exception during compilation. The exception message is: Object reference not set to an instance of an object..] System.ServiceModel.AsyncResult.End(IAsyncResult result) +11592858 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176 System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) +23 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Product Version