在ISV MS CRM 4.0中实现.NET应用程序

时间:2009-12-09 09:53:51

标签: dynamics-crm dynamics-crm-4

我正在尝试在ISV文件夹中的CRM中创建一个小应用程序。 我使用Visual Studio 2008创建了一个新的应用程序。它唯一能做的就是onLoad函数中的Response.Write("Hello world!")。我将其编译并上传到CRM中ISV目录中的虚拟文件夹(app)。 如果我现在去crm.mycrm.nl:5555 / ISV / app我得到:

  

“Microsoft.Crm.WebServices.Crm2007.CookieAndSoapHeaderAuthenticationProvider,   Microsoft.Crm.WebServices,Version = 4.0.0.0,Culture = neutral,   PublicKeyToken = 31bf3856ad364e35'不存在。参数名称:   Microsoft.Crm.WebServices.Crm2007.CookieAndSoapHeaderAuthenticationProvider,   Microsoft.Crm.WebServices,Version = 4.0.0.0,Culture = neutral,   公钥= 31bf3856ad364e35

使用堆栈跟踪

[ArgumentException: 'Microsoft.Crm.WebServices.Crm2007.CookieAndSoapHeaderAuthenticationProvider, Microsoft.Crm.WebServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' doesn't exist.
Parameter name: Microsoft.Crm.WebServices.Crm2007.CookieAndSoapHeaderAuthenticationProvider, Microsoft.Crm.WebServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]
   Microsoft.Crm.Authentication.BaseAuthenticationSettings.CreateType(String typeName, Type requiredBaseType) +265
   Microsoft.Crm.Authentication.BaseAuthenticationSettings.CreateProvider(String typeName, IDictionary`2 configuration) +28
   Microsoft.Crm.Authentication.AuthenticationPipelineSettings.LoadPipeline() +262
   Microsoft.Crm.Authentication.AuthenticationPipelineSettings.get_AuthenticationProvider() +16
   Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e) +524
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

1 个答案:

答案 0 :(得分:1)

好的,我修好了。问题是,你必须将你的程序集放入CRMWeb文件夹,并将你的aspx文件放入ISV文件夹。