Re: could not load type

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Victor Garcia Aprea [MVP] (vga_at_NOobiesSPAM.com)
Date: 04/24/04

  • Next message: Victor Garcia Aprea [MVP]: "Re: Seeking Ideas for Controls"
    Date: Sat, 24 Apr 2004 18:40:56 -0300
    
    

    Hi john,

    Seems like the designer can't find the type you've specified. Make sure you
    first compile the assembly containing the control. Just in case restart
    VS.NET in order to give it a chance to catchup with the changes.

    -- 
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:
    http://obies.com/vga/blog.aspx
    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    "john" <anonymous@discussions.microsoft.com> wrote in message
    news:B6A5E5C3-9230-4790-A242-86FAA323E704@microsoft.com...
    > Hi,
    >
    > I tried with "Developing a Simple ASP.NET Server Control" from MSDN at
    >
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwalkthroughdevelopingsimplewebformscontrol.asp.
    >
    > But I saw "Error Creating Contro - Firstcontrol1" at the design time
    > and when I try to run it, I get:
    >
    > Parser Error
    > Description: An error occurred during the parsing of a resource required
    to service this request. Please review the following specific parse error
    details and modify your source file appropriately.
    >
    > Parser Error Message: Could not load type CustomControls.FirstControl from
    assembly CustomControls, Version=1.0.1561.36680, Culture=neutral,
    PublicKeyToken=null.
    >
    > Source Error:
    >
    >
    > Line 5:        <form  runat=server ID="Form1">
    > Line 6:            Here is a custom ASP.NET server control.<br><br>
    > Line 7:            <Custom:FirstControl Message= "This control tells time.
    "  runat=server ID="Firstcontrol1"/>
    > Line 8:         <br>
    > Line 9:        </form>
    >
    >
    > Source File: c:\inetpub\wwwroot\TestMyControls\WebForm1.aspx    Line: 7
    >
    >
    > --------------------------------------------------------------------------
    ------
    > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    ASP.NET Version:1.1.4322.573
    >
    >
    >
    >
    > Appreciate your help.
    >
    > --John
    

  • Next message: Victor Garcia Aprea [MVP]: "Re: Seeking Ideas for Controls"

    Relevant Pages

    • Re: Parser error
      ... > I keep getting the parser error, and I have no idea why. ... > 4)recreating the virtual dir in IIS ... > details and modify your source file appropriately. ... > Parser Error Message: ...
      (microsoft.public.dotnet.framework.aspnet)
    • Website Not loading
      ... When trying to access my companys website and my ... details and modify your source file appropriately. ... Parser Error Message: ...
      (microsoft.public.windows.server.sbs)
    • Re: Not another "could not create type blah" thread
      ... SQL Server 2005 ... details and modify your source file appropriately. ... Parser Error Message: ...
      (microsoft.public.dotnet.framework.aspnet)
    • Help interpreting error?
      ... However, once I upload it, I get this error: ... parse error details and modify your source file appropriately. ... Parser Error Message: The file '/index.ascx.cs' does not exist. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: How to Debug and Trace asp.net 1.1?
      ... I guess, you are not creating a WebForm, otherwise how come it has the directive, which is wrong in a WebForm. ... If you are not using Visual Studio and typed <%@ Control %> directive manually, then it is wrong because a WebForm cannot contain a directive and directive. ... Parser Error Message: ...
      (microsoft.public.dotnet.framework.aspnet)