2011-07-04 55 views
0

請告訴我什麼是使用的:錯誤Web.Config中

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Exception of type 'System.OutOfMemoryException' was thrown. 

Source File: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config 

感謝

回答

1

MSDN

<add assembly="*"/> 
因爲這樣我得到錯誤

you can specify the asterisk (*) wildcard character to add every assembly within the private assembly cache for the application, which is located either in the \bin subdirectory of an application or in the.NET Framework installation directory (%systemroot%\Microsoft.NET\Framework\version)

既然你最有可能做不需要將所有程序集添加到應用程序中我建議僅添加實際使用的程序集,並將<add assembly="*" />部分刪除,這可以解決您的問題。

1

索引服務可能會導致此類問題。從您的計算機上管理工具

  1. 打開計算機管理:如果索引服務在您的計算機上運行的話,你應該從索引目錄exlude它。
  2. 導航到服務和應用程序下的索引服務。
  3. 在索引服務下選擇「Web」。
  4. 在右側窗格中,右鍵單擊鼠標並選擇New> Directory。
  5. 添加網頁的路徑(例如:c:\ inetpub)。
  6. 對不在inetpub下的所有虛擬目錄重複此操作。