簡體   English   中英

ASP.NET無法加載類型'System.String'

[英]ASP.NET Could not load type 'System.String'

有沒有人見過ASP.NET Websuite的問題在初次登錄時就炸毀,抱怨在web.config中定義的配置文件中的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 

我還沒有看到,但是文檔說System.String是默認值,所以請嘗試只刪除類型部分。

看看下面的問答: 在.NET Membership中使用類型為List的配置文件屬性

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

那使它對我有用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM