2009-01-23 69 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"/>

这使得它为我工作。

相关问题