How do i create an assembly named SimpleControlSamplesVB

J

John Blair

hi,I have the following code which gives an error in VB.Net when i run it
that it cant find the assembly SimpleControlSamplesVB?any ideas how to
resolve this error? Thanks for any help! J.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: File or assembly name
SimpleControlSamplesVB, or one of its dependencies, was not found.Source
Error: Line 1: <%@ Register TagPrefix="SimpleControlSamples"
Namespace="SimpleControlSamples" Assembly="SimpleControlSamplesVB" %>
Line 2:
Line 3: <HTML> sample1.aspx<%@ Register TagPrefix="SimpleControlSamples"
Namespace="SimpleControlSamples" Assembly="SimpleControlSamplesVB" %>

<html>

<body>

<form method="POST" action="Simple.aspx" runat=server>

<SimpleControlSamples:SimpleVB id="MyControl" runat=server/>

</form>

</body>

</html>
sample.vb:Imports SystemImports System.WebImports System.Web.UINamespace
SimpleControlSamplesPublic Class SimpleVB : Inherits ControlProtected
Overrides Sub Render(Output As HtmlTextWriter)Output.Write("<H2>Welcome to
Control Development!</H2>")End SubEnd ClassEnd Namespace
 
J

John Blair

I needed to create the assembly (a DLL file) from a DOS prompt!

vbc /t:library /out:bin\SimpleControlSamplesV
B.dll /r:System.Web.dll /r:System.dll simple.vb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top