473,394 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How do i create an assembly named SimpleControlSamplesVB

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
1 910
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Julia | last post by:
Hi, My system uses Mail Client component the Mail Client can either wrap exchange or pop3\SMTP server functions in order to do that I declared an abstract named class MailClient and create...
3
by: Atul Godbole | last post by:
Suppose an assembly "Main" is using class "A" from another Assembly "Dep" as follows : A a = new A(); a.MethodOne(); At what time is the call to MethodOne linked to the actual MSIL (method...
2
by: Paul Ingles | last post by:
Hi, I have an ASP.NET Web Application which uses a number of controls in an external strongly named assembly. Whenever I view a page that uses one of the controls within the strongly named...
1
by: John Blair | last post by:
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. ...
3
by: Jim | last post by:
Hi, I have an assembly and it's satellite in my GAC. I have referenced the DLLs in my project (from the same location where I added it to the GAC). CopyLocal is set false. When I run the...
4
by: Stefan | last post by:
Hi, I have an application that consists of multiple strong-named assemblies like: App.exe references Utils.dll (for simplicities sake) All assemblies are strong-named, but not GAC'd...
1
by: Tim F | last post by:
Problem: I'm receiving the error "File or assembly name XXXXX or one of its dependencies, was not found." when trying to execute code in an assmebly that has both a strong-name and has been...
10
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
0
by: Dave Burns | last post by:
Hi, I have a C++ managed assembly (.dll) which links to a bunch of native libraries. Everything works fine if I don't make the managed assembly a strongly named one. Once I make it a strongly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.