當我們想要安裝DotNetNuke的時候  總是會碰到下列問題

(以下是在Windows 7  IIS7.5  工作環境下常見問題)

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

[No relevant source lines]


Source File: FileBasedCachingProvider.vb    Line: 280

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +59
   System.IO.Path.GetFullPath(String path) +98
   DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.GetFileName(String FileName) in FileBasedCachingProvider.vb:280
   DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, Boolean PersistAppRestart) in FileBasedCachingProvider.vb:116
   DotNetNuke.Common.Utilities.DataCache.SetCache(String CacheKey, Object objObject, Boolean PersistAppRestart) in DataCache.vb:217
   DotNetNuke.Common.Utilities.DataCache.SetCache(String CacheKey, Object objObject) in DataCache.vb:213
   DotNetNuke.Entities.Host.HostSettings.GetHostSettings() in HostSettings.vb:62
   DotNetNuke.Common.Globals.get_HostSettings() in Globals.vb:233
   DotNetNuke.Common.Globals.GetHostPortalSettings() in Globals.vb:725
   DotNetNuke.Common.Globals.GetPortalSettings() in Globals.vb:779
   DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.Init(HttpApplication application) +198
   System.Web.HttpApplication.InitModulesCommon() +66
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1006
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +259
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +114
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350

 

這一堆落落長的警訊的解決方法其實不會很難:

1. 請先到IIS(Internet Information Service) 下  點選應用程式集區 在DefaultAppPool點選右鍵  進入"進階設定" 

IIS DefaultAppPool.png 

 

2.點進去以後在"處理序模型"的"載入使用者設定檔"設定為true

這樣就可以開始安裝DotNetNuke了

 

 

至於為什麼捨棄joomla只是純粹因為它開發的話要用php寫

performance大家也知道是........當然還是有很多變快得方法啦只是我還不知道而已  

Pixnet的編輯器眼尖的人應該知道是JCE不知道幾版吧

解決方法的原文出處:http://geekswithblogs.net/ProjectLawson/archive/2009/05/05/iis-system.web.aspnethostingpermission-exception-on-windows-7-rc.aspx

創作者介紹
創作者 找女人 的頭像
找女人

darknuminous

找女人 發表在 痞客邦 留言(0) 人氣()