如何解决页面未预编译的运行时错误 [英] How do I resolve page not pre-compiled run time error

查看:168
本文介绍了如何解决页面未预编译的运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用visual studio 2010编译我的asp.net 4.0项目但注意到当我尝试在生产服务器上运行应用程序时,某些文件未编译:文件'文件名'尚未预编译,无法请求。



请有人告诉我该怎么做才能解决这个错误。



问候

I have been trying to compile my asp.net 4.0 project with visual studio 2010 but noticed that some file were not compiled when i try to run the app at the production server: "The file 'filename' has not been pre-compiled and can can not be requested."

Please can someone tell me what to do to resolve this error.

Regards

推荐答案

可能有很多原因,

尝试一下(如果有帮助)

。重新发布您的网站/项目,选中在发布时使用Visual Studio中的固定命名和单页程序集。从bin文件夹中删除所有文件并重新部署它们



。您可能会丢失服务器上的某些程序集。可能是已从GAC删除程序集
Could be many reasons for this,
try one following (if helps)
. Re-publish your website/project, check the option "Use fixed naming and single page assemblies in Visual Studio while publishing.Delete all files from bin folder and re-deployed them
Or
.You might missing some assemblies on server.may be assemblies have been deleted from GAC


这篇关于如何解决页面未预编译的运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆