|
-
Aug 25th, 2003, 02:48 PM
#1
Thread Starter
Lively Member
Ambiguous in the Namespace
The errors I'm getting are on the lines with a *.
I can't figure out what the problem is, I have very similar syntax in other projects, even dealing with the same classes with no problem. I have web references and everything.
Help?
Imports wsJobManager = xlait.xlp.ui.ws.si.jobmanager
Public Sub main(ByVal m_gobjUser As xlait.core.Authentication.XLGeniusUser)
Dim m_wsJobManager As wsJobManager.JobManager *
(ambiguous)
m_wsJobManager = New wsJobManager.JobManager *
(ambiguous)
startFTP(success)
End Sub
Public Sub startFTP(ByRef success As Boolean)
WriteToEventLog("AppStart", "")
Console.WriteLine("Successful")
Try
If m_wsJobManager.FTPDBUpload(GetUser(m_gobjUser), filename) = True Then... *
(not declared)
Last edited by bassist695; Aug 25th, 2003 at 02:54 PM.
-
Aug 25th, 2003, 02:56 PM
#2
Ambiguous means that one of thos names can be evaluated to more than one object in the current namespace. The easiest way to fix it is to use the full or at least more of the full namespace of the object. So instead of wsJobManager.JobManager put something like TopLevelNamespaceHere.wsJobManager.JobManager or remove some of the Import statments from the project.
Also why not condense this:
Dim m_wsJobManager As wsJobManager.JobManager
m_wsJobManager = New wsJobManager.JobManager
to this:
Dim m_wsJobManager As New wsJobManager.JobManager
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|