the Geodatabase editor license has expired
据说前同事搞了好几天,哥下班后过去了,哈哈,google第一个就是答案,记录一下。
描述:
Subject | AOInitialize hangs when initializing ESRI Product |
---|---|
Author | Toby Mills |
Date | Oct 13, 2008 |
Message | After a lot of messing about trying to debug my unresponsive website, I tracked it down to the initialization of the ArcGIS Server. The code below is used in Application_Start to initialze the product. But it hangs, leaving the website completely unresponsive. When I wrote a Windows Forms app to do the same thing, a popup message was displayed: Warning: The Geodatabase Editor (GDBEdit) license has expired. Warning: The Network Analyst (NetworkEngine) license has expired. Warning: The 3D Analyst (3DEngine) license has expired. ...and a bunch of other expired items. Once I click 'OK', initialization continues successfully. So it seems that what happens is that when the web server starts the website, the AOInitialise object throws up this message, but there is no user interface for the thread, so it is impossible to click 'OK', and the website just hangs! Question 1: These look like ArcGIS Desktop extensions, and Desktop is not installed, so where is this message coming from? Question 2: Why does the AOInitialise object throw up a message box rather than returning information that the developer can use? Question 3: How can I prevent this from happening??? Am I doing something fundamentally wrong? I know most of ESRI's focus is writing code to be consumed through SOC's & SOM's etc., but I am using ArcObjects code directly in my website, and my understanding is that this is supposed to be supported. |
g_aoInitialiseESRIProduct = New ESRI.ArcGIS.esriSystem.AoInitialize If g_aoInitialiseESRIProduct.IsProductCodeAvailable(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcServer) = ESRI.ArcGIS.esriSystem.esriLicenseStatus.esriLicenseAvailable Then g_aoInitialiseESRIProduct.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcServer) ElseIf g_aoInitialiseESRIProduct.IsProductCodeAvailable(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeEngine) = ESRI.ArcGIS.esriSystem.esriLicenseStatus.esriLicenseAvailable Then g_aoInitialiseESRIProduct.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeEngine) ElseIf g_aoInitialiseESRIProduct.IsProductCodeAvailable(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcInfo) = ESRI.ArcGIS.esriSystem.esriLicenseStatus.esriLicenseAvailable Then g_aoInitialiseESRIProduct.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcInfo) ElseIf g_aoInitialiseESRIProduct.IsProductCodeAvailable(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcEditor) = ESRI.ArcGIS.esriSystem.esriLicenseStatus.esriLicenseAvailable Then g_aoInitialiseESRIProduct.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeArcEditor) End If |
答案:
![]() | |
Subject | Re: AOInitialize hangs when initializing ESRI Product |
---|---|
Author | Richard Pruitt |
Date | Oct 13, 2008 |
Message | Go to the following location: "C:\Program Files\ArcGIS\Utilities" Open "AdvancedArcMapSettings.exe" Go to Miscellaneous tab and turn off the "License Timeout Warning" That should prevent the warning from being displayed. |