ASP.NET无法加载类型“System.String” [英] ASP.NET Could not load type 'System.String'

查看:97
本文介绍了ASP.NET无法加载类型“System.String”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人见过用ASP.NET websuite一个问题,在初始登录时吹了起来,抱怨在配置文件中以System.String类型在web.config中定义。

更多信息:

 在'/ ABC应用程序中的服务器错误。
-------------------------------------------------- ------------------------------配置错误
说明:该请求提供服务所需的配置文件的处理过程中发生错误。请检查下面的特定错误详细信息并适当地修改配置文件。分析器错误信息:试图加载此属性的类型导致以下错误:无法加载类型System.String。源错误:
222行:LT; /供应商>
223线:其中;性状>
224线:其中,添加名称=名字TYPE =System.String/>
225线:其中,添加名称=姓氏TYPE =System.String/>
226线:其中,添加名称=驱动器code型=System.String/>
源文件:D:\\的Inetpub \\ wwwroot的\\ ABC \\ web.config行:224
-------------------------------------------------- ------------------------------
版本信息:Microsoft .NET Framework版本:2.0.50727.1433; ASP.NET版本:2.0.50727.1433


解决方案

我还没有看到,但该文档说System.String是默认的,所以尽量只删除类型的部分。

Has anyone ever seen an issue with an ASP.NET websuite blows up on initial login, complaining about a system.string type in the profile that is defined in the web.config.

More Info:

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

解决方案

I haven't seen that, but the docs say that System.String is the default, so try just removing the type part.

这篇关于ASP.NET无法加载类型“System.String”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆