473,752 Members | 6,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do i create an assembly named "SimpleControlS amplesVB"?

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>
simple1.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>

simple.vb:
Imports SystemImports System.Web
Imports System.Web.UI
Namespace SimpleControlSa mples
Public Class SimpleVB : Inherits ControlProtecte d
Overrides Sub Render(Output As HtmlTextWriter) Output.Write("< H2>Welcome to
Control Development!</H2>")
End Sub
End Class
End Namespace

Nov 19 '05 #1
1 1124
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:3T******** ********@newsfe 3-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>
simple1.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>

simple.vb:
Imports SystemImports System.Web
Imports System.Web.UI
Namespace SimpleControlSa mples
Public Class SimpleVB : Inherits ControlProtecte d
Overrides Sub Render(Output As HtmlTextWriter) Output.Write("< H2>Welcome to
Control Development!</H2>")
End Sub
End Class
End Namespace

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6684
by: Mike Nau | last post by:
I've been trying to get a concrete answer to this for the last few days, but have come up short. I'm hoping someone here can help. Is there a way to take a set of c# modules (c# code compiled using csc with the /t:module option) and combine them into a single assembly using the assembly linker or any other tool. For example I have the following compiled c# modules: foo1.netmodule foo2.netmodule
3
2277
by: Avin Patel | last post by:
Hi, I have one weakly named(i.e. not strong named) assembly/xyz.dll. And other strong named assemblies/.dll. I have found that I can't use weakly named assembly with strong named assembly. How can I convert weekly named assembly to strong named assembly. Or other possible way. One more question: If I create assembly for C# with strong name. Can some one else, who is not using strong name, will be able to use it in his C#
3
3948
by: michael | last post by:
General: - Using C# - Using notepad to program (NOT Visual Studio). I have a code-behind file name 'example1.cs'. I want to use an Assembly given to me for a project I'm working on. I have put the assembly named 'assembly1.dll' in the /bin directory. How do I import/load etc the assembly so that I can use it in example1.cs?
1
1425
by: bdwise | last post by:
Has anyone seen a tool that will look at a VS.NET 2003 solution and create assemblyBinding and default bindingRedirect elements for a config file? I want to get away from hand-coding these for a packaged app. Thanks.
1
3537
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the remote site is trusted. Also, my web site uses a custom HTTPModule implemented in a DLL named Security.dll. Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. Description: An unhandled exception occurred during...
5
5653
by: Reddy | last post by:
Hi, I am a newbie to VB.NET. I want to create an assembly in VB.Net using Visual Studio.Net 2003, which will be used in web, mobile web as well as windows applications. There are several types of projects in VB.Net in Visual Studio.Net 2003. Which project type I need to choose? Can anyone please help.
1
933
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 your source file appropriately. Parser Error Message: File or assembly name...
5
3247
by: RickN | last post by:
I want to creat a new application domain called 'mydomain' and then load an assembly named 'myassembly.dll' into the domain. The assembly is in the folder "C:\Mydata\assembly", which is not the running program folder. I then want to load the 'MainClass" found in 'myassembly'. I'm having a little trouble loading because the assembly is not in the program folder. Any suggestions. Thanks, -- Rick
0
917
by: Brian Richards | last post by:
I just cannot create a strongly named MC++ assembly. I always get an error Error 1 fatal error LNK1256: ALINK operation failed (80090007) : Bad Version of provider. There's no help anywhere. I'm using a pfx file that works fine with all my C# assemblies. Does anyone have any clue how to fix this?
0
9020
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
8861
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
9616
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
9423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9371
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6101
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
4726
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2819
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2237
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.