473,419 Members | 2,056 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,419 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>
simple1.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>

simple.vb:
Imports SystemImports System.Web
Imports System.Web.UI
Namespace SimpleControlSamples
Public Class SimpleVB : Inherits ControlProtected
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 1084
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:3T****************@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>
simple1.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>

simple.vb:
Imports SystemImports System.Web
Imports System.Web.UI
Namespace SimpleControlSamples
Public Class SimpleVB : Inherits ControlProtected
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
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...
3
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...
3
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...
1
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...
1
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...
5
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...
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.Parser...
5
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...
0
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....
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?
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,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.