RE: Troubles deploying my application

From: Niroo (Niroo_at_discussions.microsoft.com)
Date: 07/07/04


Date: Wed, 7 Jul 2004 02:58:01 -0700

What makes you think this is a security error?

You say that you supply COM interop wrappers - does your install also install and register the COM components?

Niroo

"Keith" wrote:

> I am using the built-in setup installer which comes with VS 2003. I am
> always having problems running the application on other machines other than
> my development machines with VS. It seems like most of the time it is a
> security/privilege problem. One time I succeeded to run the app by making
> the user a local administrator of the computer. My app only uses the
> standard 1.1 system assemblies. The other proprietary assemblies(COM interop
> wrappers) exist in the app folder. The app is not in the GAC. Of course the
> app run great on my computers. What's the deal? what am I missing? Most
> of the problems is the app runs in a crippled mode and if you click a tab
> control or type in a text control it throws an error. Of course it works
> great on my computer. I have also used the .NET config tool to allow
> execution and privileges to the required assemblies. If an admin installs
> the app it seems all users should be able to run the app. and have code
> execution privileges on all the required assemblies.
>
> Below is the error report.
>
> Thanks
> Keith
>
> See the end of this message for details on invoking
> just-in-time (JIT) debugging instead of this dialog box.
>
> ************** Exception Text **************
> System.ArgumentNullException: Value cannot be null.
> Parameter name: item
> at System.Windows.Forms.ObjectCollection.AddRangeInternal(IList items)
> at System.Windows.Forms.ObjectCollection.AddRange(Object[] items)
> at CBHAPOSApp.frmMain.frmMain_Load(Object sender, EventArgs e)
> at System.Windows.Forms.Form.OnLoad(EventArgs e)
> at System.Windows.Forms.Form.OnCreateControl()
> at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
> at System.Windows.Forms.Control.CreateControl()
> at System.Windows.Forms.Control.WmShowWindow(Message& m)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
> at System.Windows.Forms.ContainerControl.WndProc(Message& m)
> at System.Windows.Forms.Form.WmShowWindow(Message& m)
> at System.Windows.Forms.Form.WndProc(Message& m)
> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)
>
>
> ************** Loaded Assemblies **************
> mscorlib
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
> ----------------------------------------
> CBHAPOSApp
> Assembly Version: 1.1.1647.39426
> Win32 Version: 1.1.1647.39426
> CodeBase: file:///C:/Program%20Files/CBHA/CashRegister/CBHAPOSApp.exe
> ----------------------------------------
> System.Windows.Forms
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
> ----------------------------------------
> System
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
> ----------------------------------------
> System.Data
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
> ----------------------------------------
> System.EnterpriseServices
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll
> ----------------------------------------
> System.Xml
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
> ----------------------------------------
> System.Drawing
> Assembly Version: 1.0.5000.0
> Win32 Version: 1.1.4322.573
> CodeBase:
> file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
> ----------------------------------------
>
> ************** JIT Debugging **************
> To enable just in time (JIT) debugging, the config file for this
> application or machine (machine.config) must have the
> jitDebugging value set in the system.windows.forms section.
> The application must also be compiled with debugging
> enabled.
>
> For example:
>
> <configuration>
> <system.windows.forms jitDebugging="true" />
> </configuration>
>
> When JIT debugging is enabled, any unhandled exception
> will be sent to the JIT debugger registered on the machine
> rather than being handled by this dialog.
>
>
>
>
>



Relevant Pages

  • Re: I have seen some fat client Dot Net apps
    ... How do you install the CF SDK if you don't have VS? ... install CF on a device was to write a trivial CF app in VS and install ... "Borland does not have license to ship the CF assemblies. ... assemblies and run the app unchanged on the CF platform. ...
    (borland.public.delphi.non-technical)
  • Troubles deploying my application
    ... One time I succeeded to run the app by making ... execution and privileges to the required assemblies. ... Win32 Version: 1.1.4322.573 ... CodeBase: ...
    (microsoft.public.dotnet.general)
  • Re: .NET JITTing - AOT compiling - Choice?
    ... > install or at least have a choice.. ... If you know the app is going to be ... Thorpe the jitter compiles about as fast as D7. ... assemblies make a LOT of inter-module calls - System. ...
    (borland.public.delphi.non-technical)
  • Re: vsto auto update security
    ... Is the update stuff handled by a different assembly than the one you've already granted trust to? ... That would require adding trust for that assembly also, assemblies called by trusted assemblies aren't themselves trusted automatically. ... I publish the app and added the manifest file to ... the install and removed filtered out the default manifest. ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: COM interop, pathing from .NET
    ... DLL that is being accessed by a VB6 app. ... Working with Assemblies and the Global Assembly Cache ... you do not have to install assemblies into the global assembly ...
    (microsoft.public.dotnet.framework.interop)

Quantcast