473,769 Members | 4,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do i create an assembly named SimpleControlSa mplesVB

hi,I have the following code which gives an error in VB.Net when i run it
that it cant find the assembly SimpleControlSa mplesVB?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
SimpleControlSa mplesVB, or one of its dependencies, was not found.Source
Error: Line 1: <%@ Register TagPrefix="Simp leControlSample s"
Namespace="Simp leControlSample s" Assembly="Simpl eControlSamples VB" %>
Line 2:
Line 3: <HTML> sample1.aspx<%@ Register TagPrefix="Simp leControlSample s"
Namespace="Simp leControlSample s" Assembly="Simpl eControlSamples VB" %>

<html>

<body>

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

<SimpleControlS amples:SimpleVB id="MyControl" runat=server/>

</form>

</body>

</html>
sample.vb:Impor ts SystemImports System.WebImpor ts System.Web.UINa mespace
SimpleControlSa mplesPublic Class SimpleVB : Inherits ControlProtecte d
Overrides Sub Render(Output As HtmlTextWriter) Output.Write("< H2>Welcome to
Control Development!</H2>")End SubEnd ClassEnd Namespace
Nov 21 '05 #1
1 936
I needed to create the assembly (a DLL file) from a DOS prompt!

vbc /t:library /out:bin\SimpleC ontrolSamplesV
B.dll /r:System.Web.dl l /r:System.dll simple.vb

"John Blair" <jo********@hot mail.com> wrote in message
news:yK******** *********@newsf e3-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 SimpleControlSa mplesVB?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 SimpleControlSa mplesVB, or one of its dependencies, was not
found.Source Error: Line 1: <%@ Register TagPrefix="Simp leControlSample s"
Namespace="Simp leControlSample s" Assembly="Simpl eControlSamples VB" %>
Line 2:
Line 3: <HTML> sample1.aspx<%@ Register TagPrefix="Simp leControlSample s"
Namespace="Simp leControlSample s" Assembly="Simpl eControlSamples VB" %>

<html>

<body>

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

<SimpleControlS amples:SimpleVB id="MyControl" runat=server/>

</form>

</body>

</html>
sample.vb:Impor ts SystemImports System.WebImpor ts System.Web.UINa mespace
SimpleControlSa mplesPublic Class SimpleVB : Inherits ControlProtecte d
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
365
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 two components in two different DLL which derive from MailClient ExchangeImpl.dll Pop3Impl.dll
3
2577
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 body) of the method? Does this occur when "Main" is build or does it happen when main is loaded and Jitted? Also is the linking achieved by the full method name( this is what is seen in the IL generated by ILDASM : e.g : call
2
2154
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 assembly a FileLoadException is thrown, saying that "The located assembly's manifest definition with name 'CentaurNet.Web.Controls' does not match the assembly reference".
1
1128
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. 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
3
5253
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 project I get our old friend: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error
4
2328
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 (private assemblies). My goal is that once I have deployed App.exe, I want to deploy a bugfix
1
2370
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 installed into the GAC. We originally had this assembly without a strong-name and we were successfully using it by referencing it when it was NOT in the GAC. The assembly was built using the 1.0 framework and we were able to call it from both 1.0...
10
8205
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 everything I can find on COM Interop and .NET. I've also tried many of the 'Walkthroughs' on the MSDN site relating to COM add-ins, .NET and Office XP but am unable to get even these working in Excel 2002 or Word 2002. I've installed the Office XP...
0
1578
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 named assembly by adding the following attribute: ;
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9415
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10198
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9848
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5432
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3947
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.