crm 2011- Web resource not found exception when resource exists
在我们的解决方案中,我们为几种表单(帐户表单和某些自定义实体的表单)提供了自定义.js文件。
它们在我们的开发环境中正常工作。
将开发人员定制导入到我们的质量检查环境时,我们会在帐户中收到错误消息,以及一些(但不是全部)定制实体的表单;
在crm服务器上查看跟踪日志时,我们看到以下异常:
MSCRM Error Report:
-------------------------------------------------------------------------------------------------------- Error: Could not find a web resource with name account.js. Error
Number: 0x80040217 Error Message: Could not find a web resource with
name account.js. Error Details: Could not find a web resource with
name account.js. Source File: Not available Line Number: Not available
Request URL:
https://server:444/Handlers/WebResource.ashx?name=account.js&ver=935169123
Stack Trace Info: [CrmException: Could not find a web resource with
name account.js.] at
Microsoft.Crm.Application.Components.Handlers.WebResource.RetrieveWebResource(String
webResourceName, String preview) at
Microsoft.Crm.Application.Components.Handlers.WebResource.ProcessRequestInternal(HttpContext
context) at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)blockquote>
但是,自定义脚本本身已加载并正常运行。
删除/删除自定义脚本或重新导入自定义不能解决此问题。
有人知道吗?
好像您正在尝试使用不存在的名称" account.js"来调用网络资源。如果您尝试从enableRule中的某个customRule或类似名称的自定义文件中调用它,那么您需要按其名称而不是其显示名称进行调用,例如,名称为" new_ / scripts / account"。 js,那么您的呼叫应为:
1 $webresource:new_/scripts/account.js
好吧,我会把它发布为评论...但是我只是在网站上开始回应,并且缺乏"声誉"。
我想问的是,您是在标准表单还是网络资源上使用此表单?
在您的解决方案中,您是在调用页面上调用JS还是在解决方案中调用其他东西?例如new _ \\\\ js \\\\ account.js与new_account.js?
您可以浏览堆栈跟踪中的URL吗?例如,我在"活动摘要"上遇到了类似的行为,当时的问题是我有一个以瑞典语为基础语言的组织,而没有为组织提供英语。
您的开发环境是否与使用语言的生产环境完全相同?致谢
里卡德