Error BC30464: Namespace Or Type'Compatibility' In The Project-level Imports 'Microsoft.VisualBasic.Compatibility' Cannot Be Found

Jan 16, 2009

I've started to use a Vista machine for development. In case it is significant: I'm using MSBee so that I can code in the Visual Studio 2005 IDE while still building against the 1.1 framework.On the Vista machine, when I tried to build a particular vb project, I got this error:

error BC30464: Namespace or type'Compatibility' in the project-level Imports 'Microsoft.VisualBasic.Compatibility' cannot be found.

The same project built fine on my old XP machine. I checked in this folder on my Vista machine:

C:windowsmicrosoft.netFrameworkv1.1.4322

...and sure enough, "Microsoft.VisualBasic.Compatibility.dll" was missing. So was "Microsoft.VisualBasic.Compatibility.Data.dll". Copying them from my XP machine to my Vista machine allowed me to build the project successfully.I'm just a bit puzzled as to why this happened. Why was "Microsoft.VisualBasic.Compatibility.dll" missing? I'm also not very comfortable with my chosen solution - copying the DLL manually. It works, but surely there must be a better way.

As far as the configuration:

Vista:
.Net Framework 1.1
.Net Framework 1.1 SP1
.Net Framework 1.1 SDK

[code]....

View 1 Replies


ADVERTISEMENT

Imports System.Xml - Error Namespace Or Type Doesn't Contain Any Public Members Or Cannot Be Found?

May 2, 2010

I'm setting up a simple XML read-write demo (VB Winforms) in Visual Studio 2010 Premium (tried in both the RC and RTM) and added:

Imports System.Xml

Result: Error Namespace or type doesn't contain any public members or cannot be found...

VS 2008 equivalent example recognizes the Imports statement fine.I know this has to be me, but I'm stumped.

Note: I tried this with the app targeting both .Net 3.5 and 4.0. Same result.

View 4 Replies

VS 2005 Method Not Found: System.String Microsoft.visual Compatibility.vb6.support.format

Mar 23, 2011

I got following error when trying to login my web application.

method not found: System.String Microsoft.visual compatibility.vb6.support.format

what is that ?

Microsoft.visual basic.compatibility.dll is already present @ my machine

View 1 Replies

Namespace Or Type 'Data' For The Imports 'Microsoft.ApplicationBlocks?

Sep 28, 2009

Error msg - Namespace or type 'Data' for the Imports 'Microsoft.ApplicationBlocks.Data' can't be found. How do I fix this error. I tried adding a reference but it is not listed in the references.

View 2 Replies

Namespace Or Type Specified In The Imports 'MS.Internal.Xaml.Builtins' Doesn't Contain Any Public Member Or Cannot Be Found?

Feb 26, 2010

I have a WPF VB.NET project in Visual Studio 2008. For some reason, Visual Studio thinks that it needs to add anImports MS.Internal.Xaml.Builtinsto every auto-generated XAML partial class (= the nameOfXamlFile.g.vb files), resulting in the following warning:warning BC40056: Namespace or type specified in the Imports 'MS.Internal.Xaml.Builtins' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.I can remove the Imports line, but, since this is an auto-generated file, it reappears every time that the project is rebuilt.

View 1 Replies

Warning 1 Namespace Or Type Specified In The Imports 'System.Windows.Forms' Doesn't Contain Any Public Member Or Cannot Be Found

Mar 14, 2010

When trying to compile my newly created ClassLibrary class 'Validator' that validates entries made into TextBoxs or MaskedTextBoxs, I get the following error:

Warning 1 Namespace or type specified in the Imports 'System.Windows.Forms' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:Users erryDocumentsVisual Studio 2008ProjectsMillerClassLibMillerClassLibValidator.vb 1 9 MillerClassLib.

Following is the first part of code in the class:

Imports

System.Windows.Forms
Public
Class Validator

[code]....

What can I do to resolve this problem? The classes in this class library will be used to validate forms data input in a number of varied projects.

View 2 Replies

Error - Method Not Found Microsoft.visualbasic.msgboxresult

Apr 18, 2012

When I start my application I get the following error:

method not found microsoft.visualbasic.msgboxresult

I have tried repairing my .NET installation.

Note: This error only occurs on one machine. On every other machine it works fine which makes me think something with the .NET assemblies was corrupted. It was working fine on the broken machine a few days ago.

View 2 Replies

C# - Dll Reference Of One Project Into Another Project - Error Of "Type Or Namespace Name Could Not Be Found"

Apr 25, 2011

I have 2 projects, one built in VB.NET and another in C#.NET. I want to use certain functionality of VB.NET into C#.NET and hence I have added the dll file of VB.NET solution into C#.NET as a reference by browsing the dll from my system. Say dll name for VB.NET is myData.dll. In my C#.NET project I am trying to declare it as a namespace i.e. "using myData;" and its giving me an error of "Type or namespace name could not be found"

View 1 Replies

Error: Microsoft.VisualBasic: Conversion From Type 'DataRowView' To Type 'String' Is Not Valid

May 25, 2011

I now have SQL Parameters set up and I'm using them to save/delete/add my data. This all works well, except when it's trying to save a combobox to the datatable it appears with the error above.Majority of my comboboxes have datasources, and the valuemembers of these are the actual list items, not the ID's of the list items.I'm not sure why this error could be happening, I'm fairly sure I've connected everything to the binding source correctly; I've checked it a few times.Does anybody know what the cause of this could be? I've looked around a bit and I haven't found much

View 7 Replies

Add Older Versions Compatibility Of Framework To Project?

Aug 16, 2010

I made a small program which i have sent to all users in my network. Unfortunately i forgot about older versions of framework.

Is there a quick and easy way to add older versions compatibility of framework to my project?

View 7 Replies

Error "PrintForm Is Ambiguous In The Namespace 'Microsoft.VisualBasic.PowerPacks.Printing'"

Aug 31, 2011

i used printForm to print forms, but when i installed the powerpack 3.0 it doesn't work anymore.i am always getting an error "PrintForm is ambiguous in the namespace 'Microsoft.VisualBasic.PowerPacks.Printing'" i am using visual studio 2008 professional edition.

View 3 Replies

Error : A First Chance Exception Of Type 'System.InvalidCastException' Occurred In Microsoft.VisualBasic.dll

Oct 9, 2011

Error is Simple Application -- Error Type (A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll)

View 3 Replies

Microsoft.VisualBasic Namespace Support?

Mar 24, 2010

Is there any official assurance that the Microsoft.VisualBasic namespace will continue to exist in the future?

View 13 Replies

Build Error (The Type Or Namespace Name Could Not Be Found?

Jul 13, 2006

I am using VS.Net 2003. I have a solution that contains 4 projects. The first project contains the definitions of interfaces. The third project is using the interfaces defined in the first project. For the third project, I added a reference to the first project. But I'm still getting a build error

View 11 Replies

Error - A First Chance Exception Of Type 'System.Exception' Occurred In Microsoft.VisualBasic.dll

Sep 2, 2009

I have a large project where we have 2-3 dll projects that are converted from VB6 to VB.NET. We have fixed all the issues that caused compilation errors, and most of obvious issues in running, so now we have basically a program up and running. The exe is created from scratch in VB.NET, using a lot of functionality from the converted dll's (including GUI forms). What I wonder is when I run the program in debug mode, I get a bunch of warnings in the "Immediate Window" saying:

A first chance exception of type 'System.Exception' occurred in Microsoft.VisualBasic.dll

...and some of other type (but most of them in Microsoft.VisualBasic.dll).I was wondering if this is common in projects converted from VB6, or if it is caused by bad design in our code...

View 2 Replies

.net - Make A Namespace To Be Viewed By All Project Without Necessary Imports?

May 11, 2011

I'm developing an web application using VB.Net, and I would like to know, if is there any way to make a namespace to be viewed by all project without necessary Imports?

View 1 Replies

VS 2005 : Can Alias A Project Level Imports Statement

May 12, 2011

I know you can alias an Imports statement in

Imports xyz = ProjectABC.ClassABC

But if I want to use the Project Properties, Reference tab to select a namespace to allow a project-wide setting, is it possible to alias that namespace?

View 4 Replies

Asp.net - Project Level Imports Stored In Visual Studio 2008?

Mar 16, 2009

I have a Web Service Application Project in Visual Studio 2008. This is supposed to be an ASP.Net 2.0 project and at some point this has been rebuilt using 3.5.VS has kindly added in project level imports to System.Linq and System.Xml.Linq, but when I have re-targeted the project at 2.0 these project level imports have remained.Because the Web Service Application Project does not have the detailed window for editing project references I cannot find how to remove these project level imports.There is no .proj file which is where I would assume these were included.I cannot now build the project as it fails, even though I only get warnings (no errors reported) such as this:Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

View 3 Replies

ERROR : 'Namespace' Can Occur Only At File Or Namespace Level

Jan 29, 2012

Imports System.Windows.Forms

ERROR : 'Namespace' can occur only at file or namespace level

View 5 Replies

Type 'Microsoft.VisualBasic.CompilerServices.DesignerGenerated' Is Not Defined?

Mar 28, 2011

When ever I start a blank WPF project in Visual Basic 2010 (SP1) I get the following error:

Type 'Microsoft.VisualBasic.CompilerServices.DesignerGenerated' is not defined.

The error comes from the auto-generated code in MainWindow.g.i.vb - when I try to add a reference to Microsoft.VisualBasic, it says I can't because it will be added at runtime.

View 1 Replies

Warning1Namespace Or Type Specified In The Imports 'SpeechLib' Doesn't Contain Any Public Member Or Cannot Be Found

Jan 28, 2010

I have installed the SDK 5.1 (using the default install path). My issue is that I'm still not able to use Speech with in my programs. I have Imports SpeechLib. But this is the error I get when I hit return to finish coding:Warning1Namespace or type specified in the Imports 'SpeechLib' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.C:\Documents and Settings\Owner\Desktop\ipfinder\ipfinder\Form1.vb19ipfinder

how to fix it so as I can use the Speech in VS 2008?

View 5 Replies

VS 2008 PowerPacks Error "Type 'Microsoft.VisualBasic.PowerPacks.LineShape' Is Not Defined"

Apr 7, 2009

i have 2 windows machines with VB 2008 installed on both. I created a windows app on 1 machine and put the powerpacks dll file with the app folder anyway. For some reason, when i load the project up on my other machine, i just get a never ending list of errors related to PowerPacks. Why? I have exactly the same version installed and tried download the PowerPacks on Windows website. I just get over 102 errors saying Type 'Microsoft.VisualBasic.PowerPacks.LineShape' is not defined. Anyone care to enlighten me?

View 3 Replies

An Unhandled Exception Of Type 'System.InvalidCastException' Occurred In Microsoft.VisualBasic.dll

Feb 26, 2012

I'm a beginner to Visual Basic. In here I want to recreate a piggy bank which tells me how much money do I have. I created a function but the program tells me :

[Code]...

View 2 Replies

ActX Compatibility WITHIN .NET App?

Dec 13, 2011

I havnt found any info on this, probably because I expect there is no real way to do it... but does anyone know if there is a way to run an ActiveX control in 'copatibility mode' or some sort ov virtualization WITHIN a .net app?

We have a legacy control that does not work in Vista (and up) If we set the whole app to WinXP SP2 compatibility mode, the control seems to work well enough.

I would like to be able to rig it so we don't need to manually set that on every system.

My next step is to start looking if we can just set the compatibility through install, or the app itself.

View 1 Replies

VB 6 Compatibility With Windows 7

Nov 4, 2009

Am I still able to develop programs in Visual Basic 6 that will run easily under Windows 7? If no then must I convert to VB.NET? Are there other strategies?

View 2 Replies

VB 6.0 Future Compatibility

Apr 7, 2010

Imports System.Data.OleDb
Public Class Form2
Dim Conn As OleDbConnection
[code]...

this is my codes in vb?I am thinking what is the error in this code?because everytime I execute this There is an error appearing in this part OleA.Fill (DSSearch, 0) it says that "No value given for one or more required parameters." so, what should i need to do?

View 5 Replies

VB Compatibility With Windows 7 64 Bit

May 17, 2010

I have a small application I wrote in VB with visual studio express. This app uses a timer tick to wait for a certin time, the opens several comm ports, reads data, creates an output string, an sends the string via email. I tested this app for several days
on a windows 7 32 bit machine, with no problems. I compiled (published) the program, and am attempting to run it on a windows 7 64 bit machine. However, on the 64 bit machine, it freezes up and can only be stopped with Task Manager.

at the time the app hangs the only things going on are 1. a timer checking to see if it's time to read the comm ports. and 2. a background thread checkig to see if the internet is available to email the string.

I tried ;loading visual studio on the 64 bit machine, and compiling the app there, with the same result. However it seems to run (tested for 1 hour) in debug on the 64 bit machine.

Has anyone noticed anything like this? any ideas?

View 4 Replies

Value Of Type 'Microsoft.VisualBasic.PowerPacks.RectangleShape' Cannot Be Converted 'System.Windows.Forms.Control'

Feb 1, 2012

I seemed to have have ruined my settings on VS 2010... I can't get the Shapes to work just after I had fixed the problem with the PowerPacks, and then it deleted all of my shapes I had on my form after I was tweaking the code and added another shape. And ever since, the shapes make errors and I can't change there colors. I've tried reinstalling VS 2010, and changing refferences doesn't work anymore. The title is the problem I have with trying to add a shape through the code in my project, here is the code for that:

Public Class Form1
Public Circle As New Microsoft.VisualBasic.PowerPacks.OvalShape()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

[code]....

View 18 Replies

How To Make Compatibility Of Software

Jul 26, 2011

have developed software in vb.net with xp.will it work on win vista and win 7 ?

View 3 Replies

Office 2007 VBA Compatibility?

Dec 28, 2010

I have an Excel file endowed with a macro written under Office-2007.This file can be opened by Excel-2003, but the macro can't run because 2007-objects can't be recognized.My question is: does it exist a library or some trick to allow the macro running under Office-2003?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved