asp.net网站发布后没有运行 [英] asp.net site not running after publishing

查看:70
本文介绍了asp.net网站发布后没有运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net 4.0开发这个网站它工作正常。



但是,我在页面上加载了一个javascript Autosuggest在一个页面上出现此错误发布后发生。

(我在ASP.NET 4.0中配置它)



我的所有页面在开发时工作得很好,但在发布之后,(部署),我总是得到:



找不到方法:''Void System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(System。 Web.UI.Control,System.Web.UI.ITemplate)''ERROR。

I am developing this site in asp.net 4.0 it was working fine.

However, after I added a javascript Autosuggest in page load on one page this error occured after publishing.
(I CONFIGURED IT IN ASP.NET 4.0)

All my pages work just fine on development, but after publishing, (deploying), I always get:

Method not found: ''Void System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(System.Web.UI.Control, System.Web.UI.ITemplate)'' ERROR.

推荐答案

可能有一些东西此处 [ ^ ]可以帮助您。
There might be something here[^] that can help you.


您是否在IIS中为Web应用程序设置了正确的.NET Framework?



假设它是在.NET framework 2中开发的,请确保在IIS中选择Framework v2.0作为应用程序配置。
Did you set the correct .NET Framework for your web application in IIS?

Assuming it was developed in .NET framework 2, make sure you have selected Framework v2.0 in your IIS as the application configuration.


尝试在IIS中回收应用程序。



:)
Try recycling the app in IIS.

:)


这篇关于asp.net网站发布后没有运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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