fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: warning XS9043: NamedType 'Exception' is ambiguous.

warning XS9043: NamedType 'Exception' is ambiguous. 1 week 4 days ago #13868

  rn@warner-it.com's Avatar Topic Author Offline Posts: 34
H Chris,

First of all thank all of you for your help so far in this forum even if the problem is not completely solved at least the ideas that one gets helps a lot to find solutions even a work around..

Chris or anyone
Can you please help on this it use to work in vulcan.net but the same code does not seem to be ok for X#

Thanks
Raymond
error XS1061: 'Microsoft.Office.Interop.Outlook.Exception' does not contain a definition for 'Message' and no accessible extension method 'Message' accepting a first argument of type 'Microsoft.Office.Interop.Outlook.Exception' could be found (are you missing a using directive or an assembly reference?) 788,8 F3WE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSales' 798,5 F3WE.prg StartStopV2
warning XS9043: NamedType 'Exception' is ambiguous. Could be 'Microsoft.Office.Interop.Outlook.Exception' or 'System.Exception'. Using the first one. 826,7 F3WE.prg StartStopV2
error XS0155: The type caught or thrown must be derived from System.Exception 826,7 F3WE.prg StartStopV2
error XS1061: 'Microsoft.Office.Interop.Outlook.Exception' does not contain a definition for 'Message' and no accessible extension method 'Message' accepting a first argument of type 'Microsoft.Office.Interop.Outlook.Exception' could be found (are you missing a using directive or an assembly reference?) 830,8 F3WE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSales' 840,5 F3WE.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 680,2 LoadWinB.prg StartStopV2
warning XS9043: NamedType 'exception' is ambiguous. Could be 'Microsoft.Office.Interop.Outlook.Exception' or 'System.Exception'. Using the first one. 901,1 F3WE.prg StartStopV2
error XS0155: The type caught or thrown must be derived from System.Exception 901,1 F3WE.prg StartStopV2
error XS1061: 'Microsoft.Office.Interop.Outlook.Exception' does not contain a definition for 'Message' and no accessible extension method 'Message' accepting a first argument of type 'Microsoft.Office.Interop.Outlook.Exception' could be found (are you missing a using directive or an assembly reference?) 934,2 F3WE.prg StartStopV2

METHOD btUpdateClick(sender AS System.Object , e AS System.EventArgs) AS System.Void
LOCAL cGRNumber AS STRING


TRY
// SELF:bs:EndEdit() // WICHTIG bei Verwendung von BindingSource, sonst werden die Änderungen NICHT weggeschrieben!
// Werte aus den Textboxen in die Felder der DataRow
* cTicketNr := SELF:CurrentRow:Item["Todokey"]:ToString():Trim()

SELF:CurrentRow:Item["GRperson"] := SELF:oCBWHPerson:Text:Trim()
SELF:CurrentRow:Item["Supplier"] := SELF:oTBSupplier:Text:Trim()
SELF:CurrentRow:Item["Quantity"] := SELF:oTBQuantity:Text:Trim()
SELF:CurrentRow:Item["ItemDesc"] := SELF:oTBItemDesc:Text:Trim()
SELF:CurrentRow:Item["GRDate"] := SELF:oDateTimePicker1:Value:ToShortDateString()
SELF:CurrentRow:Item["Subject"] := SELF:oTBSubject:Text:Trim()
SELF:CurrentRow:Item["Forwardto"] := SELF:oCBPerson:Text:Trim()
SELF:CurrentRow:Item["Comments"] := SELF:oTBInfo:Text:Trim()
SELF:CurrentRow:Item["Stats"] := SELF:oCBStatus:Text:Trim()
SELF:CurrentRow:Item["CloseDate"] := SELF:oDateTimePicker2:Value:ToShortDateString()


// hier in die weiteren Felder schreiben: normalerweise bei Feldern vom typ STRING die TEXT-Property verwenden - auch bei ComboBoxen



SELF:dt:GetChanges() // Same as Commit in vo // DT means DataTable is memory image of Table
SELF:cmdBuilder:GetUpdateCommand() // cmdBuilder generates SQl commands for updating based on Select statement
SELF:da:Update(SELF:ds,"GR_Warehouse") // Update Physically updates the File // DA means DataAdapter is Oledbprovider to connect to Table

messagebox.show("Update für GRNumber "+cGRNumber+" OK!")

SELF:close() // Wichtig!!! Wenn das Fenster NICHT geschlossen wird, wird die GridView NICHT aktualisiert!!!!

/// RealOwner wird als zweiter Param. vom aufrufenden CellDoubleClick übergeben
SELF:RealOwner:GetChanges(SELF:nCurrentPos, FALSE) // FALSE = Update mode ; zwingt die DGV die Änderungen anzuzeigen

CATCH ex AS exception
messageBox.show("Update Fehgeschlagen! "+ex:Message:ToString())
END TRY

RETURN

warning XS9043: NamedType 'Datatable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 120,2 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 125,2 LoadWinAE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'nPrintCol' 292,4 PrintDocument.prg StartStopV2
warning XS0165: Use of unassigned local variable 'j' 488,18 PrintDocument.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 843,2 DrillWin4.prg StartStopV2
warning XS0165: Use of unassigned local variable 'dgv' 906,2 DrillWin4.prg StartStopV2
warning XS0165: Use of unassigned local variable 'dgv' 960,2 DrillWin4.prg StartStopV2
[b]warning XS9043: NamedType 'Exception' is ambiguous. Could be 'Microsoft.Office.Interop.Outlook.Exception' or 'System.Exception'. Using the first one. 784,7 F3WE.prg StartStopV2[/b]
error XS0155: The type caught or thrown must be derived from System.Exception 784,7 F3WE.prg [/b]StartStopV2
error XS1061: 'Microsoft.Office.Interop.Outlook.Exception' does not contain a definition for 'Message' and no accessible extension method 'Message' accepting a first argument of type 'Microsoft.Office.Interop.Outlook.Exception' could be found (are you missing a using directive or an assembly reference?) 788,8 F3WE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSales' 798,5 F3WE.prg StartStopV2
warning XS9043: NamedType 'Exception' is ambiguous. Could be 'Microsoft.Office.Interop.Outlook.Exception' or 'System.Exception'. Using the first one. 826,7 F3WE.prg StartStopV2
error XS0155: The type caught or thrown must be derived from System.Exception 826,7 F3WE.prg StartStopV2
error XS1061: 'Microsoft.Office.Interop.Outlook.Exception' does not contain a definition for 'Message' and no accessible extension method 'Message' accepting a first argument of type 'Microsoft.Office.Interop.Outlook.Exception' could be found (are you missing a using directive or an assembly reference?) 830,8 F3WE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSales' 840,5 F3WE.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 680,2 LoadWinB.prg StartStopV2
warning XS9043: NamedType 'exception' is ambiguous. Could be 'Microsoft.Office.Interop.Outlook.Exception' or 'System.Exception'. Using the first one. 901,1 F3WE.prg StartStopV2
error XS0155: The type caught or thrown must be derived from System.Exception 901,1 F3WE.prg StartStopV2
error XS1061: 'Microsoft.Office.Interop.Outlook.Exception' does not contain a definition for 'Message' and no accessible extension method 'Message' accepting a first argument of type 'Microsoft.Office.Interop.Outlook.Exception' could be found (are you missing a using directive or an assembly reference?) 934,2 F3WE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cGRNumber' 926,2 F3WE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'dgv' 766,2 LoadWinB.prg StartStopV2
warning XS0165: Use of unassigned local variable 'dgv' 820,2 LoadWinB.prg StartStopV2
warning XS0162: Unreachable code detected 905,1 Form1.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 1028,2 DrillWin.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 859,2 DrillWin3.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSelect' 940,8 DrillWin3.prg StartStopV2
warning XS0165: Use of unassigned local variable 'dgv' 1093,2 DrillWin3.prg StartStopV2
warning XS0165: Use of unassigned local variable 'dgv' 1147,2 DrillWin3.prg StartStopV2
warning XS0165: Use of unassigned local variable 'oWin2' 239,8 SmallWin.prg StartStopV2
warning XS0165: Use of unassigned local variable 'TempYear' 703,5 ServiceWinA.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 325,2 SmallWin.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cOrdHdr' 921,5 ServiceWinA.prg StartStopV2
warning XS0165: Use of unassigned local variable 'oDuration1' 2448,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'abt' 1123,4 Frm_BITreeview.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 2567,8 StopWatch.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 1280,2 Frm_BITreeview.prg StartStopV2
warning XS0165: Use of unassigned local variable 'CSpan' 3035,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3099,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3162,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3225,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3321,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'TempYear' 702,5 ShopWinA.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cOrdHdr' 920,5 ShopWinA.prg StartStopV2
warning XS0252: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string' 164,2 TicketForm.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3381,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3435,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3488,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3541,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'nExitCode' 47,1 Start.prg StartStopV2
warning XS0165: Use of unassigned local variable 'ds' 3667,3 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 3980,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 4038,8 StopWatch.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 1215,8 LoadWinAE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cTicketNr' 474,2 F3Edit.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 4095,8 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSpan' 4152,8 StopWatch.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 155,11 Ray_Tools.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 156,11 Ray_Tools.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 1295,8 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 1379,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 1392,5 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 269,11 Ray_Tools.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 270,11 Ray_Tools.prg StartStopV2
warning XS9043: NamedType 'Datatable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 432,14 Ray_Tools.prg StartStopV2
warning XS0165: Use of unassigned local variable 'ZcreationDate' 4291,10 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cSum' 4329,15 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'sSearch' 1650,6 LoadWinAE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'sOrder' 1650,6 LoadWinAE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'ZcreationDate' 4474,10 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'cStd' 4509,12 StopWatch.prg StartStopV2
warning XS0165: Use of unassigned local variable 'ZTNum' 4533,12 StopWatch.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 1818,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 1819,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 978,11 Ray_Tools.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 979,11 Ray_Tools.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2053,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2054,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2276,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2277,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2390,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2391,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2505,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2506,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2612,11 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 2613,11 LoadWinAE.prg StartStopV2
warning XS0165: Use of unassigned local variable 'oXL' 2750,7 LoadWinAE.prg StartStopV2
warning XS0162: Unreachable code detected 3216,1 LoadWinAE.prg StartStopV2
warning XS0162: Unreachable code detected 3481,1 LoadWinAE.prg StartStopV2
warning XS9043: NamedType 'DataTable' is ambiguous. Could be 'System.Data.DataTable' or 'Microsoft.Office.Interop.Excel.DataTable'. Using the first one. 3486,9 LoadWinAE.prg StartStopV2
Compilation failed (6 errors, 83 warnings)

Please Log in or Create an account to join the conversation.

warning XS9043: NamedType 'Exception' is ambiguous. 1 week 4 days ago #13869

  ic2's Avatar ic2 Offline Posts: 646
Hello,

If you find errors like NamedType 'Exception' is ambiguous it means that, in this case, Exception can be found in more than one namespace. It now looks into Outlook which is not what you meant.

Change this:

CATCH ex AS System.Exception

and see if it helps completely.

Dick

Please Log in or Create an account to join the conversation.

warning XS9043: NamedType 'Exception' is ambiguous. 1 week 4 days ago #13873

  rn@warner-it.com's Avatar Topic Author Offline Posts: 34
I am afraid your suggestion did not work I just tried it here is the result

error XS9002: Parser: unexpected input 'ex AS System exception' 535,21 F3WE.prg StartStopV2
error XS9002: Parser: unexpected input 'System exception' 535,21 F3WE.prg StartStopV2
error XS9002: Parser: unexpected input 'exception' expecting EOS 535,21 F3WE.prg StartStopV2
error XS9002: Parser: mismatched input '.' expecting EOS 536,12 F3WE.prg StartStopV2
error XS9002: Parser: mismatched input '(' expecting EOS 536,17 F3WE.prg StartStopV2
error XS9002: Parser: mismatched input ':' expecting EOS 536,52 F3WE.prg StartStopV2
error XS9002: Parser: mismatched input ':' expecting EOS 536,60 F3WE.prg StartStopV2
error XS9002: Parser: mismatched input '(' expecting EOS 536,69 F3WE.prg StartStopV2
error XS1003: Syntax error, 'END [TRY]' expected 535,2 F3WE.prg StartStopV2
Compilation failed (9 errors)

Please Log in or Create an account to join the conversation.

warning XS9043: NamedType 'Exception' is ambiguous. 1 week 4 days ago #13874

  Chris's Avatar Chris Offline Posts: 1753
Hi Raymond,

You missed a dot between System and Exception:

System.Exception
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

warning XS9043: NamedType 'Exception' is ambiguous. 1 week 4 days ago #13875

  ic2's Avatar ic2 Offline Posts: 646
Also the message is in the Welcome group. I noticed myself that I always need to check which forum is selected.

Maybe someone can change the forum and the subject ;)

Dick

Please Log in or Create an account to join the conversation.

warning XS9043: NamedType 'Exception' is ambiguous. 1 week 4 days ago #13877

  Chris's Avatar Chris Offline Posts: 1753
Hi Dick,

Done :)
And thanks for your prompt reply to Raymond!
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

warning XS9043: NamedType 'Exception' is ambiguous. 1 week 4 days ago #13878

  rn@warner-it.com's Avatar Topic Author Offline Posts: 34
Hi Chris and Dick,
Thanks a lot for the help I did miss the dot and Dick the changes you suggested do work.

Thanks a Lot for you r Help

Regards,
Raymond

Please Log in or Create an account to join the conversation.

  • Page:
  • 1