By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

How do i create an assembly named SimpleControlSamplesVB

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"John Blair" <jo********@hotmail.com> wrote in message
news:yK*****************@newsfe3-win.ntli.net...
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.