Re: Console Application will run.
- From: "Jonas Follesø" <JonasFolles@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Apr 2005 14:15:03 -0700
Hi.
The file:
I:\windows\assembly\gac\System.Windows.Forms\1.0.5000.0__b77a5c561934e089\System.Windows.Forms.dll
allready exsists on the XPe image (I: is the CF attached to my developer
computer using a card reader).
How ever, i might get closer to an answer. I think it's my memory problem,
becaouse during FBA i got this error (i redeployed the image):
Fatal Execution Engine Error (0x792dc38e)
Registered JIT debugger is not available. An attempt to launch a JIT debugger
with the following command resulted in an error code of 0x2(2). Please check
computer settings.
cordbg.exe !a 0x1b4
If i click OK a few times the FBA runs through and the computer boots up
just fine. But, obvious there is something bogus going on... I tought i was
sooooo close to get this thing to run... Looks like getting more RAM or
forgetting about .NET and doing this in C++ are my only options?
I was hoping to use .NET Remoting on the frame to enable remote control
using a pocket pc and .NET CF. Say i do this in C++, how hard is it to do
sockets programming and reading some kind of input, like next picture,
previous picture, pause and play?
I'm a decent C# developer, but have never written a single line of C++... So
i _really_ want C# (so easy to consume my "person aware web service" etc.)
"KM" wrote:
> Jonas,
>
> Thanks for the logs and the viewer app.
>
> Just an idea... At runtime can you copy the System.Windows.Forms.dll from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 to
> C:\WINDOWS\assembly\GAC\System.Windows.Forms\1.0.5000.0__b77a5c561934e089 (you will have to create this folder).
> Then start your HelloWorld app and see if it helped anyhow.
>
> If it did not, please copy the C:\WINDOWS\assembly\GAC\System.Windows.Forms\1.0.5000.0__b77a5c561934e089 folder from XP Pro machine
> (with .Net 1.1 installed there) to your runtime, reboot XPe image and start the HelloWorld again.
>
> --
> Regards,
> KM, BSquare Corp.
>
>
> > Since you cant load log files into FileMon or RegMon, and viewing them as
> > plain text files can be a pain in the ass, i wrote a little log viewer in C#.
> >
> > You can download it off http://jonas.greit.no/MonLogViewer.zip
> >
> > It simply loads the log files into a list view that you can sort and remove
> > rows from. If you remove un-needed rows you can save the new stripped file to
> > disk.
> >
> > "Jonas Folleso" wrote:
> >
> > > I've uploaded the log files at:
> > > http://jonas.greit.no/regmon.txt
> > > http://jonas.greit.no/filemon.txt
> > >
> > > HelloWorld.exe is a C# Windows Forms application in it's simplest form.
> > > Simply selected "New project - Windows Forms - Build in release". I havent
> > > made ANY changes, and it's not configured for localization (culture neutral).
> > >
> > > Any help would be greatefully appreciated.
> > >
> > > "KM" wrote:
> > >
> > > > Jonas,
> > > >
> > > > > Hmm...
> > > > >
> > > > > I tried running both filemon and regmon on the computer, but not sure what to look for.
> > > >
> > > > It is hard to advise not seeing the log. Any chance for you to save, attach and post the Logs to this thread?
> > > > Also, I'd suggest you to first analyze there the misisng (FILE NOT FOUND) components (FileMon log).
> > > >
> > > > > One of the last registry actions before the app crashes is a
> > > > > language lookup. I tryed setting the app to only support English (since
> > > > > that's the only language supported on the XPe computer) but with no luck.
> > > >
> > > > In your application do you use only English resources?
> > > >
> > > > > I allso tryed adding a try-catch block around the entrypoint of the
> > > > > application. This should catch any exception caoused by the application and
> > > > > display it in a MEssageBox. The exception never get caought, so the error has
> > > > > nothing to do with my code, but the JIT/Runtime.
> > > >
> > > > If you app runs fine on XP Pro, you may think it is not your app code that cause the problem.
> > > >
> > > > --
> > > > Regards,
> > > > KM, BSquare Corp.
> > > >
> > > >
> > > > > "KM" wrote:
> > > > >
> > > > > > Jonas,
> > > > > >
> > > > > > I can only suggest you to monitor the broken app launch with RegMon/FileMon to see what's missing there.
> > > > > > Again, I think this is a bug of XPe (I guess SP2?).
> > > > > >
> > > > > > KM
> > > > > >
> > > > > > > Just did some more testing and built a simple C# Console Application
> > > > > > > displaying the current date and time, and it ran perfectly. A windows
> > > > > > > application doing the same thing caouses the error mentioned in the first
> > > > > > > post in this thread. So, obviously the .NET Framework is installed, but the
> > > > > > > problem has something to do with WindowS Forms Applications.
> > > > > > >
> > > > > > >
> > > > > > > "Jonas Folleso" wrote:
> > > > > > >
> > > > > > >> I didn't install it manually, i added the .NET Framework 1.1 component to
> > > > > > >> the image. The image is based on the "WinLogon Sample Macro" component.
> > > > > > >>
> > > > > > >>
> > > > > > >> "KM" wrote:
> > > > > > >>
> > > > > > >> > Jonas,
> > > > > > >> >
> > > > > > >> > Sounded like you installed the .Net Framework at run time manually. Any particular reason not to use the .Net
> component
> > > > from
> > > > > > >> > XPe
> > > > > > >> > repository?
> > > > > > >> >
> > > > > > >> > Alos, what is your image based on - Minlogon or Winlogon?
> > > > > > >> >
> > > > > > >> > KM
> > > > > > >> >
> > > > > > >> > > I've finnaly managed to installed the .Net Framework and boot my Windows XPe
> > > > > > >> > > image. I've copied a hello world application to the XPe computer.
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > When I execute the hello world.exe file. I get this exception immediately
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > CommonLanguage Runtime Debugging Service
> > > > > > >> > > "Application has generated an exception that could not be handled
> > > > > > >> > > Process ID=0x704(1796), thread id = 0x710(1808)"
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> > > Can any one tell me what went wrong, do I need to install any additional
> > > > > > >> > > components? I have the "autoresolve dependency" setting turned on.
> > > > > > >> > >
> > > > > > >> > > -Jonas
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
>
>
>
.
- Follow-Ups:
- Re: Console Application will run.
- From: KM
- Re: Console Application will run.
- References:
- Windows XPe SP2 - Problem executing a .NET application
- From: Jonas Follesø
- Re: Windows XPe SP2 - Problem executing a .NET application
- From: KM
- Re: Windows XPe SP2 - Problem executing a .NET application
- From: Jonas Follesø
- Re: Console Application will run.
- From: Jonas Follesø
- Re: Console Application will run.
- From: KM
- Re: Console Application will run.
- From: Jonas Follesø
- Re: Console Application will run.
- From: KM
- Re: Console Application will run.
- From: Jonas Follesø
- Re: Console Application will run.
- From: Jonas Follesø
- Re: Console Application will run.
- From: KM
- Windows XPe SP2 - Problem executing a .NET application
- Prev by Date: Re: QFE updates
- Next by Date: Re: QFE updates
- Previous by thread: Re: Console Application will run.
- Next by thread: Re: Console Application will run.
- Index(es):