Select to view content in your preferred language

COM Error Hell...

2647
5
04-23-2010 02:57 PM
RodrigoR_
Emerging Contributor
Hello, I am working with an engine not long ago.

I´m really tired of getting Com errors like "HResult: 0x80040e14" or similar.

Is there any way to get more descriptive message???
How are you doing to decipher the meaning of the error????

Thanks in advance...
0 Kudos
5 Replies
RichardWatson
Deactivated User
Visual Studio includes the errlook.exe utility.  The problem with looking up errors is that if the error is specific to a certain module/DLL then you have tell the utility this for it to be able to find the error message.

Your other alternative is to simply Google the error number.
0 Kudos
RodrigoR_
Emerging Contributor
Hi rlwatson, thanks for your answer... i´m going to study the errlook.exe utility, or mabye, you can give me a little more help.

For example, now i´m getting the next Error, {"Excepción de HRESULT: 0x80041538"}.
The error happens when i try to create a geodatabase using dataServerManagerAdmin.CreateGeodatabase

I really can get any help with this message.

My code:

              IDataServerManager dataServerManager = new DataServerManagerClass();
                dataServerManager.ServerName = "IP\\Instance;
                dataServerManager.Connect();

IDataServerManagerAdmin dataServerManagerAdmin = (IDataServerManagerAdmin) dataServerManager;
                if (dataServerManagerAdmin.IsConnectedUserAdministrator)
                {
                  &nsbp;  &nbsp  dataServerManagerAdmin.CreateGeodatabase("LandUse", "c:\\LandUse.mdf",
                      0, "", 0);

............
...........
0 Kudos
RodrigoR_
Emerging Contributor
Hi, i´m getting this error now... (in the same creategeodatabase line of code)

{"Excepción de HRESULT: 0x80050147"}

Google throws 0 matches !!!!!

How can i do to know whats happening???

Thanks again.
0 Kudos
JamesMacKay
Deactivated User
Here's a link to a tool you may find useful:

http://resources.esri.com/arcgisengine/dotnet/index.cfm?fa=codeGalleryDetails&scriptID=16621

By default, it's configured to check only low-level libraries (System, Geometry, Geodatabase, etc) for error codes. When working with specific higher-level libraries, the XML configuration file should be modified accordingly, but it looks like your errors are GDB-related - your last error code corresponds with sdeError.SDE_E_SE_NO_ARCSDE_LICENSE.

Cheers,
James
0 Kudos
RodrigoR_
Emerging Contributor
Thanks James, i´m using your utility right now.

Anyway the message is not right, as i understand, it means that i dont have the right licence to create geodatabases, but i can create gdb in others remotes geodatabases (same code in same machine, changing the ip of the remote gdb)

I don´t know how to mark your answear in this new forum 😞

Tnaks
0 Kudos