473,698 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compilation Error "The name Convert is not declared"

Hello

I'm getting an error during a .vb file compilation.

My command is :

vbc /t:library /r:system.web.dl l /r:system.dll /r:mscorlib.dll myFile.vb
The error is :
Compilateur Microsoft (R) Visual Basic .NET version 7.10.6310.4
pour Microsoft (R) .NET Framework version 1.1.4322.2300
Copyright (C) Microsoft Corporation 1987-2002. Tous droits réservés.

F:\orespub\Encr yption.vb(33) : error BC30451: Le nom 'Convert' n'est pas
déclaré.
Return Convert.ToBase6 4String(ms.GetB uffer(), 0, ms.Length)
~~~~~~~
F:\orespub\Encr yption.vb(44) : error BC30451: Le nom 'Convert'
n'est pas
déclaré.

Dim buffer As Byte() = Convert.FromBas e64String(value )
--> The name Convert is not declared.

The reference to mscorlib.dll assembly is realised. I don't understand the
error for the name Convert.
Which assembly do i used ?
Thanks for your help.

Fabrice
Nov 19 '05 #1
2 3806
Fabrice,

Just use System.Convert. To...

Eliyahu

"fabrice" <em******@test. com> wrote in message
news:uO******** ******@TK2MSFTN GP14.phx.gbl...
Hello

I'm getting an error during a .vb file compilation.

My command is :

vbc /t:library /r:system.web.dl l /r:system.dll /r:mscorlib.dll myFile.vb
The error is :
Compilateur Microsoft (R) Visual Basic .NET version 7.10.6310.4
pour Microsoft (R) .NET Framework version 1.1.4322.2300
Copyright (C) Microsoft Corporation 1987-2002. Tous droits réservés.

F:\orespub\Encr yption.vb(33) : error BC30451: Le nom 'Convert' n'est pas
déclaré.
Return Convert.ToBase6 4String(ms.GetB uffer(), 0, ms.Length)
~~~~~~~
F:\orespub\Encr yption.vb(44) : error BC30451: Le nom 'Convert'
n'est pas
déclaré.

Dim buffer As Byte() = Convert.FromBas e64String(value )
--> The name Convert is not declared.

The reference to mscorlib.dll assembly is realised. I don't understand the
error for the name Convert.
Which assembly do i used ?
Thanks for your help.

Fabrice

Nov 19 '05 #2
fabrice <em******@test. com> ha scritto:
Compilateur Microsoft (R) Visual Basic .NET version 7.10.6310.4
pour Microsoft (R) .NET Framework version 1.1.4322.2300
Copyright (C) Microsoft Corporation 1987-2002. Tous droits réservés.

F:\orespub\Encr yption.vb(33) : error BC30451: Le nom 'Convert' n'est
pas déclaré.
Return Convert.ToBase6 4String(ms.GetB uffer(), 0,
ms.Length) ~~~~~~~
F:\orespub\Encr yption.vb(44) : error BC30451: Le nom 'Convert'
n'est pas
déclaré.

Dim buffer As Byte() = Convert.FromBas e64String(value )
--> The name Convert is not declared.

The reference to mscorlib.dll assembly is realised. I don't
understand the error for the name Convert.
Which assembly do i used ?
In your code, you have inserted the import for the namespace System?

imports System
imports System.Data
.... Thanks for your help.

Fabrice


--
AZ [Microsoft - .NET MVP]
Mia Home page: http://ciclismo.sitiasp.it
Asp.Net community: http://www.aspitalia.com
Il mio blog: http://blogs.aspitalia.com/az
Nov 19 '05 #3

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

Similar topics

16
2448
by: Jim Hefferon | last post by:
Hello, I'm getting an error join-ing strings and wonder if someone can explain why the function is behaving this way? If I .join in a string that contains a high character then I get an ascii codec decoding error. (The code below illustrates.) Why doesn't it just concatenate? I'm building up a web page by stuffing an array and then doing "".join(r) at
6
18451
by: Le, Thanh-Nhan | last post by:
Hi, I am a beginner in .NET. I am creating a new project. At begin I created this project with a form, then a class."start" I want to use class "start" as start point for this program. In this class I wrote: static void Main()
1
4166
by: Brad | last post by:
I'm trying to use Active Directory to retrieve information for a user...for display purposes.. I am not using windows authentication or impersonation....I am using a fixed user id and password for initializing the DirectoryEntry object. For example sake our domain name is mydomain.net so the LDAP path I use is LDAP://DC=mydomain,DC=Net Notice I am not specifying a server in the LDAP path which and I would prefer to not use the server...
1
2012
by: Elie | last post by:
Hello I get this error when the code runs from the server as an .asp page or from a compiled dll. But When I log onto the server and run a vb program that executes the same code, it works fine. this works fine on a different web server as well. They are both running windows 2003.
5
15130
by: lds | last post by:
I am getting the following error: The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.
1
3970
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException : Validation error: The element 'http://xmlns.somewhere.com/something:rDetail' cannot contain text. Expected 'http://xmlns.somewhere.com/something:AList'. An error occurred at , (1, 533). ----------
1
2580
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException : Validation error: The element 'http://xmlns.somewhere.com/something:rDetail' cannot contain text. Expected 'http://xmlns.somewhere.com/something:AList'. An error occurred at , (1, 533). ----------
6
6012
by: Nathan Sokalski | last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so that I could use ASP.NET 2.0 (All my ASP.NET is done using VB.NET). After converting, everything was fine, and worked and compiled correctly, but I noticed one big difference between the VB.NET code of the converted files in the projects and the VB.NET code in new pages. The new pages use...
1
3747
by: kamcap | last post by:
I have referenced a COM dll (unmanagged code) in a C# console application and this DLL is referenced in C# program using Interop facility in .NET. This dll actually a dataset/table which is written in Borland Delphi. static int Main(string args) { ClientVarDataSet vds = new ClientVarDataSet(); vds.XML = ""; vds.AddField("x", 3); //"x" field name and 3 field type
1
4407
by: ziycon | last post by:
Can anyone tell me what this error means in tomcat logs?
0
8683
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
8609
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
9170
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
9031
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
8901
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,...
1
6528
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.