按照本教程:http://aspalliance.com/1993_Replacing_ASPNET_Base_Pages_with_a_PageAdapter無法創建類型 - PageAdapter
它工作在我的測試項目,但在我的生產項目中,我得到以下錯誤:
Server Error in '/products' Application.
Unable to create type 'Photocreator.ThemedPageAdapter'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Unable to create type 'Photocreator.ThemedPageAdapter'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[Exception: Unable to create type 'Photocreator.ThemedPageAdapter'.]
System.Web.Configuration.HttpCapabilitiesBase.GetAdapter(Control control) +889
System.Web.UI.Control.ResolveAdapter() +214
System.Web.UI.Page.get_PageAdapter() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +188
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.468
這個會出現在所有頁面,這兩個項目都使用框架V4。
任何想法?
你有沒有想過解決你的問題? –
我這麼認爲,但是很久以前我真的不記得是什麼修復了。 – cja100