Re: could not load type
From: Victor Garcia Aprea [MVP] (vga_at_NOobiesSPAM.com)
Date: 04/24/04
- Previous message: Victor Garcia Aprea [MVP]: "Re: User Control - InvalidCastException: Specified cast is not valid"
- In reply to: john: "could not load type"
- Messages sorted by: [ date ] [ thread ]
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
- Previous message: Victor Garcia Aprea [MVP]: "Re: User Control - InvalidCastException: Specified cast is not valid"
- In reply to: john: "could not load type"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|