2009-01-23 37 views
1

有沒有人看到ASP.NET websuite在初始登錄時爆發問題,抱怨Web中定義的配置文件中的system.string類型。配置。ASP.NET無法加載類型'System.String'

更多信息:

Server Error in '/abc' Application. 
-------------------------------------------------------------------------------- 

Configuration Error 
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: Attempting to load this property's type resulted in the following error: Could not load type 'System.String'. 

Source Error: 


Line 222:   </providers> 
Line 223:   <properties> 
Line 224:    <add name="FirstName" type="System.String"/> 
Line 225:    <add name="LastName" type="System.String"/> 
Line 226:    <add name="DriverCode" type="System.String"/> 


Source File: d:\Inetpub\wwwroot\abc\web.config Line: 224 


-------------------------------------------------------------------------------- 
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 

回答

3

我還沒有看到,但該文檔說,System.String是默認的,所以儘量只刪除類型的一部分。

+0

約翰,感謝您的想法。此應用程序已部署幾十次無W/O問題。我確實繼續嘗試你所說的,但它仍然暴露在System.Boolean屬性上。 還有其他想法嗎? – ryanbales 2009-01-23 20:32:40

+0

然後,聲音就像部署中的某些東西一樣。是否應用了任何Service Pack,或者其他會影響ASP.NET安裝的內容? – 2009-01-23 20:55:30

0

看一看這個問答&答:Using a profile property of type List in .NET Membership

嘗試添加一個完全合格的組件的名稱,如:
<add name="MyString" type="System.string, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

這使得它爲我工作。

相關問題