Re: VB component works correctly only in debug mode

From: J French (erewhon_at_nowhere.uk)
Date: 11/18/04


Date: Thu, 18 Nov 2004 09:33:54 +0000 (UTC)

On Wed, 17 Nov 2004 18:20:01 -0800, "=?Utf-8?B?amJoYW4=?="
<jbhan@discussions.microsoft.com> wrote:

>Hi,
>
>I have a Vb component which internally uses an exe to create a batch file ,
>and read a key value from a file.
>
>I call the method of this component from my asp page. When I debug throught
>the asp page into the component and back I get the value generated correctly
>but when I try this by access the page normally without debugging it, the
>component is not generating the key.
>
>I am using component services to register the dll. I am at a loss why it
>works in debug mode and not other wise. Does the fact that I run an exe
>within my component have anything to do with it?
>
>any help would be great.

ChDir App.Path first thing in your App

In the IDE CurDir (the default directory) is normally not the same as
App.Path



Relevant Pages

  • VB component works correctly only in debug mode
    ... I have a Vb component which internally uses an exe to create a batch file, ... I call the method of this component from my asp page. ... When I debug throught ...
    (microsoft.public.vb.general.discussion)
  • EXE compiles but Not a valid Win32 Application
    ... I am tasked with enhancing a VB6 website (i.e. ASP pages which Create ... ActiveX EXE which itself loads an ActiveX DLL), but I cannot seem to get it ... which also contains the statement Set oWebFactory = ...
    (microsoft.public.vb.general.discussion)
  • Re: Rollout Registry Settings via SMS (w/Adv Clients)
    ... If by an .exe you mean an Installshield script, which does NOT have an msi ... so I went with DFS. ... batch file can point to the DFS share where the registry entries are located. ...
    (microsoft.public.sms.swdist)
  • Re: How to deploy real cert in packaged .exe (VS 2005, .net cf 2.0 sp2, WM 5.0)
    ... ..exe for the mobile device I developed an app for. ... You can run a batch file after you've built your project/solution or as part ... Or do I do the signing using the the tools they send me? ...
    (microsoft.public.dotnet.framework.compactframework)
  • WMIPRVSE.exe locks a file
    ... I am having a Service Wrapper exe written using C++ utilizing ... Its job is to register and deregister s ... batch file as service as and when required. ...
    (microsoft.public.dotnet.general)