首页 \ 问答 \ 无法加载文件或程序集 - 处理本地而不是生产 - ASP.net(Could not load file or assembly - working on local not on production - ASP.net)

无法加载文件或程序集 - 处理本地而不是生产 - ASP.net(Could not load file or assembly - working on local not on production - ASP.net)

我有这个问题,该项目在当地正常工作,它只是不生产

在本地,一切工作在IIS Express上

在生产上,IIS 7.5,Windows 2008 R2:

Exception type: ConfigurationErrorsException 
    Exception message: Could not load file or assembly 'Telerik.OpenAccess, Version=2014.3.1209.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified. (\\xxx\xxx\xxx\web.config line 106)
  1. 在本地检查了物理文件的版本,它们存在且正确
  2. 从生产中删除完整的文件夹,然后部署
  3. 在IIS上检查并勾选了32位应用程序兼容性

还要注意,我们在生产环境中部署了以前版本的项目(具有相同的引用文件和版本) - 只有目标.net版本已更改并停止工作(它仍针对相同的程序集,并且在本地运行)

文件在那里,被引用项目中的所有引用对于这个文件都是正确的

我还能看到什么?


I have this problem, where the project works fine on local, it just doesn't wortk on production

on local, everything works on IIS Express

on production, IIS 7.5, windows 2008 r2:

Exception type: ConfigurationErrorsException 
    Exception message: Could not load file or assembly 'Telerik.OpenAccess, Version=2014.3.1209.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified. (\\xxx\xxx\xxx\web.config line 106)
  1. checked the file versions physically in the locaiton, they are present and correct
  2. deleted the complete folder from production, then deployed
  3. checked and ticked 32-bit applicaiton compatibility on IIS

also note that we had a previous version of the project deployed on production ( with same referenced files and versions) - only the target .net version has been changed and it stopped working (it's still targetting the same assembly, and works on local)

the files are there and all references in the referenced projects are correct for this file

what else can I look into ?


原文:https://stackoverflow.com/questions/41670208
更新时间:2022-03-21 06:03

最满意答案

你可以改用Watchman ; 它作为持久服务运行,并会记住您错过的事件。

您可以通过多种不同的方式实现用例,但最简单的方法是设置触发器并让watchman在文件更改时直接运行脚本,或者使用pywatchman客户端绑定来运行持久的python脚本并订阅活动并采取您想要的任何行动。


You can use Watchman instead; it runs as a persistent service and will remember the events that you missed.

There are a number of different ways that you might achieve your use-case, but probably the easiest is to set up a trigger and have watchman directly run your script as files change, or use the pywatchman client bindings to have a persistent python script run and subscribe to the events and take whatever action you'd like.

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。