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
ADVERTISEMENT
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
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
Mar 9, 2010
Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Excel
View 12 Replies
Dec 9, 2009
It says .Application ambiguous Error6'Application' is ambiguous in the namespace 'Microsoft.Office.Interop.Word'.
Imports Word = Microsoft.Office.Interop.Word
oWord = CType(CreateObject("Word.Application"), Word.Application)
oDoc = oWord.Documents.Add()
View 5 Replies
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
Feb 3, 2011
As I say, I've got an application which I'll refer to as "AppName" (note the upper case 'A' and 'N') which, for example, attempts to reference "My.Application.Info.ProductName". Adding a breakpoint and putting a QuickWatch on that call shows the error:
[Code]...
View 1 Replies
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
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
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
May 10, 2011
While I am trying to load my project, I've got some errors like the following[code]...
View 1 Replies
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
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
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
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
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
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
Mar 26, 2010
I have this application where I am getting this error. What can I do to resolve this?
View 2 Replies
Jan 23, 2011
I am creating class libraries in my project so that I can update code without having to update the whole app.I created a class library project and added some code to it. I also added a reference to System.Data.SqlClient and also imported it into the class file.I am getting an error and I have never seen it before. Been looking online and not able to find an answer yet.
View 2 Replies
Feb 3, 2011
Got an asp.net 3.5 app - compiles fine, but when browse to page I get the error below. Searches for this all seem to indicate it is a namespace problem, but all of my pages seem to declare the proper namespace.
[Code]...
View 2 Replies
Aug 4, 2010
I'm getting a ton of errors like this when attempting to build an empty VB.NET project: 'GenerateCodeAttribute' is ambiguous in the namespace 'System.CodeDom.Compiler' Is this some problem with my .NET installation?
View 1 Replies
Jan 29, 2012
Imports System.Windows.Forms
ERROR : 'Namespace' can occur only at file or namespace level
View 5 Replies
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
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
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
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
May 21, 2012
I am getting the error: 'User' is ambiguous between declarations in Modules 'My.MyProject' and 'My.MyProject'.I am trying to debug an ASP.NET web application compiled as a file system project. Obviously the namespaces in question are in-built Microsoft namespaces so there is no way to change anything here nor change any class definitions.
View 2 Replies
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
Jul 20, 2010
I just converted UberSite, a vb.net web site to a web application. I get run-time errors saying that there is no such thing as type foo. When I drill down to the page in the code-view, it gives me an error-correction suggestion: import namespace UberSite.
If I create a new web application and define foo there, there is no need to import any namespace to use foo in the new application.
How can this be? Why does my web application seemingly need to import its own namespace?
View 1 Replies
Jul 15, 2009
I have errors saying "statement not valid in a namespace" What is a namespace? They are variables that i want to set up so that each can only take a certain typr of data. Here are a few examples:
Public
pepPath As String
Public
[code]....
View 2 Replies