无法加载文件或程序集 - 处理本地而不是生产 - 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)
- 在本地检查了物理文件的版本,它们存在且正确
- 从生产中删除完整的文件夹,然后部署
- 在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)
- checked the file versions physically in the locaiton, they are present and correct
- deleted the complete folder from production, then deployed
- 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
最满意答案
你可以改用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.
相关问答
更多-
在Mac上有“看”还是“inotifywait”这样的命令?(Is there a command like “watch” or “inotifywait” on the Mac?)[2023-08-31]
fswatch fswatch是一个使用Mac OS X FSEvents API监视目录的小程序。 当接收到关于该目录的任何更改的事件时,指定的shell命令由/bin/bash执行 如果您使用GNU / Linux,则inotifywatch (大多数发行版的inotify-tools包的一部分)提供了类似的功能。 更新: fswatch现在可以在许多平台上使用,包括BSD,Debian和Windows。 语法/一个简单的例子 可以观看多个路径的新方法 - 版本1.x及更高版本 : fswatch -o ... -
反思我的解决方案,发现一个更好的解决方案适用于多个添加 inotifywait -m /srv/watchfolderfilme -e create -e moved_to | while read path action file; do # echo "The file '$file' appeared in directory '$path' via '$action'" chmod 0777 $path$file transmission-create -o /srv/newt ...
-
使用-m选项使其连续运行,而不是在每个事件后退出。 inotifywait -q -m -r -e modify -e create -e delete /var/my/path/Documents | \ while read event; do cd /var/scripts ./sync.sh done 这实际上会产生相反的问题:如果在同步脚本运行时发生多次更改,它将再次运行多次。 您可能希望在sync.sh脚本中放置一些内容,以防止它在最近运行时再次 ...
-
你可以改用Watchman ; 它作为持久服务运行,并会记住您错过的事件。 您可以通过多种不同的方式实现用例,但最简单的方法是设置触发器并让watchman在文件更改时直接运行脚本,或者使用pywatchman客户端绑定来运行持久的python脚本并订阅活动并采取您想要的任何行动。 You can use Watchman instead; it runs as a persistent service and will remember the events that you missed. There ...
-
如果控制终端关闭,则子进程获取信号 - 如果没有捕获 - 通过设计终止它们。 挂断信号 如果您希望屏蔽子进程,可以使用nohup命令启动它。 nohup命令 要在后台启动命令,请在最后应用(使用大多数(如果不是全部)shell)。 If a controlling terminal is closed, the child processes get signals which -if not caught- terminate them by design. Hangup signal If you wa ...
-
来自inotifywait文档: close_write 在可写模式下打开后,已观看目录中的监视文件或文件已关闭。 这并不一定意味着文件被写入。 close_write仅在文件关闭时触发。 tail -f /somefile >> /soemeotherfile.dat ...不断附加到someotherfile.dat 。 每次写入后都不会关闭它。 可能你想要modify事件。 From the inotifywait docs: close_write A watched file or a file ...
-
好吧,我发现了这个问题:似乎ssh命令在运行时正在吃inotifywait命令的输出。 因此,为了防止这种情况,我在ssh之后添加0 <& - 重定向,以关闭stdin。 inotifywait -mr --format '%w%f' -e close_write -e moved_to -e delete /mydir | \ while read FILECHANGE do if [ -f $FILECHANGE ] then rsync --bwlimit=4096 - ...
-
为什么这个inotifywait shellscript有两个PID?(Why does this inotifywait shellscript shop up with two PIDs?)[2022-07-26]
因为它有一个管道。 管道分支子shell - 第二个进程 - 并连接它们。 在foo | bar的情况下 foo | bar - 这些都是外部的,非shell命令 - 子shell exec实际的命令,因此丢失了它们的进程树条目。 当该管道的一个元素写在shell中时,执行它的shell仍保留在进程树中。 那就是说,我建议[1]写一点不同: while read -r path action file; do echo "The file '$file' appeared in directory ... -
我制作了一个更复杂的shell脚本并将其发布在文章中 : inotifywait -mr source --exclude _build -e close_write -e create -e delete -e move --format '%w %e %T' --timefmt '%H%M%S' | while read file event tm; do current=$(date +'%H%M%S') delta=`expr $current - $tm` if [ $de ...
-
bash脚本:在使用inotifywait的简单脚本中读取的含义(bash script: meaning of while read in a simple script that use inotifywait)[2023-11-03]
它捕获inotifywait命令的输出并inotifywait解析,在while语句中将每一行分配给f 。 该特定的inotifywait命令持续监视/tmp/watch目录,并在创建一个时输出完整路径名。 反过来, while循环处理每个文件名,并在/tmp/other/目录中创建一个符号链接。 这是一个示例脚本,显示while read in action: pax$ ( echo 1 ; echo 2 ; echo 3 4 ) | while read f pax> do pax> echo "[$f ...