Get An Error Indicating The Class Name Or Rather "contactClass Is Ambiguous

Feb 1, 2010

I am trying to use a class that I created. However, I get an error indicating the class name or rather "contactClass is ambiguous. How do I correct this?The following error of code:

Public newcontactClass As New contactClass Recency

View 2 Replies


ADVERTISEMENT

.NET: Ambiguous Class Name Error When No Ambiguity Exists?

Aug 16, 2010

A client of ours reported that when trying to use our .NET .DLL in VB.NET they receive the error:error BC31429: 'OurClass' is ambiguous because multiple kinds of members with this name exist in namespace 'our.company.nspace' I've also been able to reproduce the error with a dummy project containing the single line of

Dim x as our.company.nspace.OurClass Normally this is because there are several types with names differing only in case. But in this case there is no such ambiguity. OurClass is a unique name not only in the specific namespace but in the whole assembly and any other assemblies referenced by the project. Reflector also shows this. There are also no class members with the same name, also verified by Reflector.

Also a weird thing is that the error wasn't there immediately after I created the dummy project, and then it suddenly appeared and now it doens't go away anymore. In fact I didn't even change anything between the two recompiles from which the first one worked, and the second didn't.

View 2 Replies

Default Sound Indicating Invalid Action / Error?

Sep 11, 2011

The following code produces a sound that's like a tone or a soft bell, indicating that an action has completed successfully:
System.Media.SystemSounds.Beep.Play()
Any code for the opposite? You know like if you tried to do something in Windows that was invalid. Is there some kind of default sound indicating an error that I can invoke on a Windows computer in VB.Net similar to the one above only discordant?

View 4 Replies

Error: "Error 1 'Application' Is Ambiguous Between Declarations In Modules

Apr 26, 2012

i can't understand what the error:

"Error 1 'Application' is ambiguous between declarations in Modules 'WindowsApplication1.My.MyProject' and 'WindowsApplication1.My.MyWpfExtension'.F:DevVisualBasic 2010ProjectsWindowsApplication1WindowsApplication1My ProjectSettings.Designer.vb 33 16 WindowsApplication1"

View 1 Replies

Asp.net - Error - VirtualMarchRegistrationDAL' Is Ambiguous

Jun 2, 2011

I am trying to build my solution and am getting a "'VirtualMarchRegistrationDAL' is ambiguous" error.

Private Function submitRegistration() As Boolean
Dim firstName As String
Dim lastName As String

[code]....

The error is occurring on the return statement. The DAL that it is referring to is located in the App_Code folder.

View 2 Replies

Error 103 'Application' Is Ambiguous In The Namespace

Jan 3, 2011

Using Visual Studio 8. On old computer, my application works. When installed on a new computer I get an error message:

Line of code causing error:
Dim WordApp
As
New Microsoft.Office.Interop.Word.Application

Error message: Error 103 'Application' is ambiguous in the namespace

Both computers reference:

C:WindowsassemblyGACMicrosoft.Office.Interop.Outlook12.0.0.0__71e9bce111e9429cMicrosoft.Office.Interop.Outlook.dll Old computer is 32 bit XP. New computer is 64 bit Windows 7.

View 2 Replies

Inheritance Is Causing Ambiguous Error?

Oct 11, 2011

I am currently programming a complicated inheritance structure for an Insurance Application. One DLL has classes that can be used and inherited from. DLL Two has Classes specific for our Auto Line of business, however when i attempt to use Object 2 from a Web Application it errors out because one of the classes is ambiguous because it appears that DLL Two inherits a class from DLL One which appears to pull in the entire inherited class. Since the Web app has a reference to both DLL One and Two, One has the class, Two seems to also have it and so compilation errors out with an ambiguous class in the same namespace.

To attempt to get more specific ill try a quick run down.DLL One - PGPolicy.dll contains standard classes with properties and methods needed for every line of business such as:

Policy, Name, NamedInsured, Unit
DLL Two - PGPolicyAuto.dll contains the following Auto specific classes:
Vehicle Inherits from Unit
Driver Inherits from Name

Since PGPolicy.dll contains classes needed by all lines of business and PGPolicyAuto.dll has more specific classes for the Auto line of business, the web application references both of them. The problem is that since Driver inherits the Name class, it appears to create a Name class in the same name space that the PGPolicy.dll has the namespace in, which gives me an Ambiguous class "Name" in the PG.Policy Namespace.

View 10 Replies

Asp.net - Fix Func Is Ambiguous In The Namespace 'system' Compiler Error

Dec 8, 2011

I have a method that looks like this :

Function ExecuteAndLogError(Of TResult)(ByVal code As Func(Of TResult), _ByVal sql As String, _Optional ByVal parameters As SqlParameterCollection = Nothing) As TResult End Function

I am getting this compiler error : 'Func' is ambiguous in the namespace 'System'.

[Code]...

View 1 Replies

Indicating Reversed Contents Of Array

Mar 14, 2011

In Mastering VB2010 on arrays, a command is show indicating the reversed contents of an array can be assigned to another array.
ReversedArray = System.Array.Reverse(ArrayName)

I can't get this to work and part of the problem is how to set up (dim) the ReversedArray. When I enter this I get a squiggly line under the right side of the equation and an error message saying no data is produced by the expression.

I get the same error with a copy command:
CopiedName = System.Array.Copy(Name, CopiedName, 10)
How do I set up working code to reverse or copy the contents of an array?

View 10 Replies

MS SQL Server, Indicating VARBINARY(MAX) Field's Datatype In .NET?

Oct 13, 2010

I use a VARBINARY(MAX) column, because I have no idea what is going to be put into it. All I know is that as of this point in time, the data will be one of many traditional data types(Integer, String, DateTime, etc.)I also have another column that is meant to indicate the DataType so the .NET application can handle the data and validate input accordingly.Right now, for testing, I have a DataType table in my database that stores the "supported" datatypes for the VARBINARY column, and a foreign key linking to the column meant to indicate the DataType. This works perfectly, but it feels akward.

View 2 Replies

C# - Compile Error: DoSomething' Is Ambiguous Across The Inherited Interfaces 'IMyFoo(Of MyType1)' And 'IMyFoo(Of MyType2)?

Feb 23, 2011

I have a C# project with a generic interface

public interface IMyFoo<T> { void DoSomething(T instance); }

I also have a C# project with an interface that inherits from several IMyFoos

public interface IMyBar : IMyFoo<Type1>, IMyFoo<Type2> { ... }

Everything works fine in C# land (including the scenario below which doesn't work in VB).

I have a VB .NET project that references this C# library.I have an instance of IMyBar and try to use as follows:

Dim instance as MyType1 = ...
Dim bar as IMyBar = ...
bar.DoSomething(instance) '

This generates a compile error: DoSomething' is ambiguous across the inherited interfaces 'IMyFoo(Of MyType1)' and 'IMyFoo(Of MyType2)'.

What's up? I can DirectCast like this and it works fine...but I'd REALLY rather not

DirectCast(bar, IMyFoo(Of MyType1)).DoSomething(instance)

View 2 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

Getting The Error "Application" Is Ambiguous In The Namespace 'microsoft.office.interop.excel'?

Sep 1, 2010

I have a project which opens a simple Excel file and populates it. It was working fine until this morning, when it has suddenly started giving me the error above: 'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel'.I haven't changed any project references, or anything within the file itself. The references include Microsoft.Office.Interop.Excel. The imports statement is there: importsMicrosoft.Office.InteropThe object declaration is also complete: Dim xl AsMicrosoft.Office.Interop.Excel.Application which is the line that's giving me the error!

View 2 Replies

Error: "AxMSFlexGrid" Is Ambiguous In Namespace "AxMSFLexGridLib"?

Mar 26, 2010

I have this application where I am getting this error. What can I do to resolve this?

View 2 Replies

IDE :: Error - The Class Tellerform Can Be Designed, But Is Not The First Class In The File

Jan 18, 2010

I'm having a problem with a class issue in VB 2005. The error message reads "The class Tellerform can be designed, but is not the first class in the file. Visual Studio requires that you use the first class in the file. Move the class code so that it is the first class in the file and try reloading the designer again."

Imports
System.IO
Imports

[code]....

View 2 Replies

Ambiguous Name In A Namesapce

Dec 21, 2009

ambiguous name in a namesapce in VB error in a dll

View 4 Replies

.net - Ambiguous Action Methods - ASP.net MVC?

Jul 16, 2009

I am having trouble doing something that is probably pretty simple!I have a stock listing that is done by 1) a simple form with parameters (Index) and 2) an ajax called partial view that displays the list of stock (based on the params).On this same simple form (Index) I have an action link to an "Add Stock" method which calls another form for adding stock.When the user has finished adding the stock I redirect them back to the stock list page (Index).

My issue is that I would like to "remember" the parameters that were initially entered in this form so the user isn't just directed back to a page with blank parameters forcing them to enter them again.I thought I could simply overload the Index method as such:

[Code]...

I get this error: The current request for action 'Index' on controller type 'StockController' is ambiguous between the following action methods:.Now I have read this post and it's answer but I cannot figure out how to implement the solution. Is this solution applicable in my situation? Is there a better way to acheive what I'm trying to do?

View 2 Replies

Asp.net - BC30554: 'ProfileCommon' Is Ambiguous

Feb 27, 2012

I use asp.net user management in my Website.(ASP.NET 3.5) Everything has been working fine while developing and test via VS2010 on Win7. But when I compile and publish the site throws the error:

Compiler Error Message: BC30554: 'ProfileCommon' is ambiguous.
Line 55: End Sub
Line 56:
Line 57: Protected ReadOnly Property Profile() As ProfileCommon

[code]....

View 2 Replies

MS Updates And Ambiguous In Namespace 'asp'?

Jun 1, 2010

We have a VB web application that for some reason breaks when some clients run Windows Updates. To resolve the issue we have to force the application to recompile on the servers where the application is installed. In some instances we must do this multiple times and/or restart IIS as well to resolve the issue.

This didn't start happening until October of 2009, and then suddenly it happened all the time... but not for every client, and not with every update. It continues to happen and we have been at a loss to understand why. Is anyone else experiencing this issue or found a way around it? If there is something in our code that we can alter to keep this from happening I would love to know about it, as we spend time and resources troubleshooting and resolving an issue that doesn't exist until a Windows update runs and our application becomes un-usable until resolved.

View 1 Replies

'Recordset' Is Ambiguous In The Namespace 'ADODB'?

Jun 17, 2011

I encounter this error as mention in the subject line. I just change from windows XP 32 bits to windows 7 64 bits, and the following code were working fine in windows XP, but in windows 7 I get ambiguous namespace for all the DIM cnn As New ADODB.Connection and DIM rst As New ADODB.Recordset.I Have no idea what is going on.However, the exe that is created from my old XP runs fine on both XP and Windows 7 32 bits but not the Win7 64 bits.

Public Sub mStartConnection()
Dim initPath As String
Dim File_Reader As StreamReader
Try

[code].....

View 4 Replies

EventArgs Is Ambiguous In Namespace System

May 10, 2011

While I am trying to load my project, I've got some errors like the following[code]...

View 1 Replies

Forms :: 'filename' Is Ambiguous In Namespace

Oct 26, 2011

I'm having problems with this error [code] I already imported the sqlserver references but it still don't work.

View 4 Replies

Settings' Is Ambiguous Between Declarations In Modules?

Nov 7, 2011

I'm new to programming. I'm using Visual Studio 2010. I'm taking into two introduction classes, VB and C# with .Net. I have seen the enemy and he is me. I hope that someone can please help me with my two errors.

I do not know how I created My.CopyOfMySettingsProperty but I do know they were created when I was trying to create a project by combining my previous four projects.Listed are the two errors from my error list window that I need to correct along with my offending code:

Error 1 'Settings' is ambiguous between declarations in Modules 'Assign5Multi.My.MySettingsProperty' and 'Assign5Multi.My.CopyOfMySettingsProperty'. F:ProjectsVBAVBAssignment4MoviesMy ProjectSettings.Designer.vb 34 13 prjAssign5Multi

[Code]...

View 2 Replies

VS 2005 Ambiguous Forms / Objects

Jun 9, 2009

I was working on one of my forms, not doing anything crazy or out of the ordinary, just adding a control to the form. When all of a sudden vb became real sluggish and barely responsive, so I closed VS and restarted the computer. Got back into my project and now I can't open any form. Opening a form gives me <b>failed to parse method 'InitializeComponent'. The parser reported the following error 'Error HRESULT E_FAIL has been returned from a call to a COM component.'. Please look in the task lisk for potential errors.</b>.Error list sometimes contains 102 errors, and sometime just one that says I have exceeded the maximum number of errors. When it contains 102, every single one of the errors is <b> [Object/Form] is ambiguous in the namespace [Project] </b>.

I can't open any designers right now, every single one of them gives the failed to parse method error. If I rename, lets say frmAbout to frmAbout1, then I can see that form.There is only one of everything in Solution Explorer, no duplicates. There are no duplicates in the folder either. I can open the code for each form/object and see it just fine, and looks fine too. Code is not duplicated or anything.

View 2 Replies

.net - 'TcpListener' Is Ambiguous In The Namespace 'System.Net.Sockets'?

Feb 21, 2012

I got 11 errors in my VB program. All the errors look similar: X is ambiguous in the namespace Y

Error line: Imports System.Net.Sockets
Imports System.Text
Module Module1
Sub Main()

Dim serverSocket As New TcpListener(System.Net.IPAddress.Parse("192.168.1.100"), 8888)

View 1 Replies

Smtp' Is Ambiguous In The Namespace 'MailBee.SmtpMail'?

Jun 14, 2012

We are using MailBee for the first time but get this error:

'Smtp' is ambiguous in the namespace 'MailBee.SmtpMail'.

What does it mean and how can we create the objSMTP object?

Here is what the complete coding looks like:

Imports MailBee
Imports MailBee.DnsMX
Imports MailBee.Mime
Imports MailBee.SmtpMail
Imports MailBee.Pop3Mail

[Code]...

View 1 Replies

VS 2008 <'HTMLDocument'> Is Ambiguous In The Namespace <'mshtml'>

Jul 30, 2009

This line is throwing the error; Public WithEvents CurrentDoc As mshtml.HTMLDocument
Researching the error tells me that HTMLDocument isn't fully qualified. Isn't this fully qualified? If I change it to Microsoft.mshtml.HTMLDocument then it says it's not defined.

[Code]...

View 3 Replies

'SqlConnection' Is Ambiguous In The Namespace 'System.Data.SqlClient'?

Mar 10, 2009

I have imports namespace System.Data.SqlClient.I just create object of SqlConnection,But error is there-
'SqlConnection' is ambiguous in the namespace 'System.Data.SqlClient'.

[Code]...

View 1 Replies

ScriptServiceAttribute' Is Ambiguous In The Namespace 'System.Web.Script.Services'

May 16, 2011

I'm currently working on an existing ASP.NET project. At the moment I have to integrate
a new componant so for that purpose I had to change the framework target from 2.0 to 3.5. After regenerating the solution, I'm now dealing with a strange issue.

Here's the code :

<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<System.Web.Script.Services.ScriptService()> _

And the last line returns that error 'ScriptServiceAttribute' is ambiguous in the namespace 'System.Web.Script.Services'I have definitely no clue what's going on in my code ?! Is it an internal error of the ScriptService constructor ?

View 2 Replies

Application' Is Ambiguous In The Namespace 'Microsoft.Office.Interop.Excel

Mar 9, 2010

Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel

View 12 Replies







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