询问者
crm4.0新建不了实体

问题
全部回复
-
用了工具跟踪,报错如下:
at CrmEventLog.WriteEntry(String eventSourceName, EventLogEntryType eventType, Int64 eventId, Object[] values)
at CrmKeyService.LogKeySettingUpdate(CrmKeySetting keySetting, Guid scaleGroupId)
at CrmKeyService.ComputeHash(CrmKey key, Guid scaleGroupId, HashParameterBase[] parameters)
at CrmKeyService.ComputeHash(CrmKey key, HashParameterBase[] parameters)
at WRPCContext..ctor()
at AppPage.ValidateWrpcContext()
at AppPage.OnInit(EventArgs e)
at Control.InitRecursive(Control namingContainer)
at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at Page.ProcessRequest()
at Page.ProcessRequest(HttpContext context)
at default_aspx.ProcessRequest(HttpContext context)
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at ApplicationStepManager.ResumeSteps(Exception error)
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Failed to write the following event message to the Event Log.
EventType:Information
EventId=1073760784
Contents:CrmWRPCTokenKey{B291707F-6158-E111-8E23-00155D00051F}{00000000-0000-0000-0000-000000000000}
The exception information is:
System.InvalidOperationException: 无法打开源“MSCRMKeyService”的日志。您可能不具有写访问权。 ---> System.ComponentModel.Win32Exception: 拒绝访问。
--- 内部异常堆栈跟踪的结尾 ---
在 System.Diagnostics.EventLog.OpenForWrite(String currentMachineName)
在 System.Diagnostics.EventLog.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
在 System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Byte[] data, Object[] values)
在 Microsoft.Crm.CrmEventLog.WriteEntry(EventLogEntryType eventType, Int64 eventId, Boolean traceFailure, Object[] values)------------------------------------------------------------------------------------------------------------------
at CrmPerformanceCounterFactory.LoadCounters(PerformanceCounterLoadSetting settings, String component)
at BaseAuthenticationProvider..ctor()
at MultipleOrganizationSoapHeaderAuthenticationProvider..ctor()
at RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at Activator.CreateInstance(Type type, Boolean nonPublic)
at BaseAuthenticationSettings.CreateType(String typeName, Type requiredBaseType)
at BaseAuthenticationSettings.CreateProvider(String typeName, IDictionary`2 configuration)
at AuthenticationPipelineSettings.LoadPipeline()
at AuthenticationPipelineSettings.get_AuthenticationProvider()
at AuthenticationEngine.get__provider()
at AuthenticationEngine.Execute(Object sender, EventArgs e)
at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at ApplicationStepManager.ResumeSteps(Exception error)
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Failed to write the following event message to the Event Log.
EventType:Information
EventId=17189
Contents:Authentication
The exception information is:
System.InvalidOperationException: 无法打开源“MSCRMPerfCounters”的日志。您可能不具有写访问权。 ---> System.ComponentModel.Win32Exception: 拒绝访问。
--- 内部异常堆栈跟踪的结尾 ---
在 System.Diagnostics.EventLog.OpenForWrite(String currentMachineName)
在 System.Diagnostics.EventLog.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
在 System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Byte[] data, Object[] values)
在 Microsoft.Crm.CrmEventLog.WriteEntry(EventLogEntryType eventType, Int64 eventId, Boolean traceFailure, Object[] values)---------------------------------
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at ThreadHelper.ThreadStart()
>NotificationWatcherThreadProc Stopped.------------------------------------------------------
at NotificationManager.NotificationWatcherThreadProc()
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at ThreadHelper.ThreadStart()
>ThreadAbort Exception in NotificationWatcherThreadProc 正在中止线程。 -
权限 的问题,可以参考以下的方法
http://social.microsoft.com/Forums/en/crmdeployment/thread/03e14eac-b383-45f9-8330-f9583e83eb36
regards,http://eastoceantechnical.blogspot.com/
Toong Yang