Thursday, March 24, 2011

ASP.NET Could not load type '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
From stackoverflow
  • I haven't seen that, but the docs say that System.String is the default, so try just removing the type part.

    ryanbales : John, thanks for the idea. This application has been deployed a couple of dozen times w/o issue. I did go ahead and try what you said, but it still blows up on the System.Boolean property. Any other thoughts?
    Jon Skeet : Sounds like something in the deployment is badly hosed then. Have any service packs been applied, or anything else that would affect the ASP.NET installation?

0 comments:

Post a Comment