
May 14th, 2002, 01:44 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Custom Control Error
<i><b>Originally posted by : Thomas</b></i><br />I created a custom control called NumberBox in VB.Net. When I try to use this control, I keep getting this error:<br /><br />"Could not load type MyControls.NumberBox from assembly ControlLib, Version=1.0.864.18219, Culture=neutral, PublicKeyToken=null."<br /><br />I copied the .dll into my project's bin directory and added a reference but this didn't help.<br /><br />Here is a snip of my .aspx source code:<br /><br /><%@ Register TagPrefix="con" Namespace="MyControls" Assembly="ControlLib"%><br /><%@ Page Language="vb" AutoEventWireup="false" codebehind="WebForm1.aspx.vb" inherits="TestControl.WebForm1"%><br /><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br /><html><br /> <head><br /> <title>WebForm1</title><br /> </head><br /> <body ms_positioning="GridLayout"><br /> <form id="Form1" method="post" runat="server"><br /> <b>Enter float: </b><con:NumberBox id="NumBox1" runat="server" /><br><br /> <b>Enter int: </b><con:NumberBox id="NumBox2" floating="False" runat="server" /><br /> </form><br /> </body><br /></html><br /><br /><br />Got any suggestions?<br />
|