POST
|
My work machine was just upgraded to Windows 7, this caused a lot of problems with my Visual Studio 2008. (all issues described here are presenting themselves in VS 2010 as well). My issue when building projects is the following error: Error 1 Cannot register assembly "C:\Users\sbwolf\Desktop\CVS Repository\arcgis - Copy\ExportToImage\EMF Export\bin\Release\ExportToImage.dll" - access denied.
Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\ExportToImage.ExportToImage' is denied. ExportToImage
If I run Visual Studio as administrator and then run (Debug -> Run ) the project in ArcMap, my ArcMap gets into this odd state where only a few Feature Classes load. If I try to fix the ones that did not, no feature classes or datasets display in the SDE connection. Not running Visual Studio in administrator fixes this issue with ArcMap, but the COM assembly is not registered and doesn't show up in ArcMap. FYI, the code being run is an ESRI ICommand derivative. I'm wondering if due to Visual Studio running as administrator, ArcMap isn't in some odd execution context because it's not running the same permission level or the possibly same level as that of its supporting executables ( AppRot, etc). Has anyone else had this problem?
... View more
10-25-2010
04:07 AM
|
0
|
7
|
5556
|
POST
|
Greetings, I am writing a tool that calls some common ESRI data management toolboxes during its execution. Calling these toolboxes dumps their messages into my tool's output window. Unless an error occurs, I would really like to suppress called toolbox messages. How can I go about doing this? My code is essentially this:
Public Sub Execute( ByVal paramvalues As IArray, _
ByVal trackcancel As ITrackCancel, _
ByVal envMgr As IGPEnvironmentManager, _
ByVal message As IGPMessages) Implements IGPFunction.Execute, IGPFunction2.Execute
'Custom Geoprocessing Code here...
pGeoResult1 = pGeoProcessor.Execute("Toolbox1", Parameters1, TrackCancel)
pGeoResult2 = pGeoProcessor.Execute("Toolbox2", Parameters2, TrackCancel)
'At this point, my tool window is filled with a ton of output from "Toolbox1" and "Toolbox2"
'More Custom Geoprocessing Code here...
End Sub
... View more
07-29-2010
05:35 AM
|
0
|
0
|
639
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|