How to deploy to Windows 8.1


Author
Message
Charles Thomas Blankenship...
Charles Thomas Blankenship
Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)Advanced StrataFrame User (708 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
I'm running into a slight problem with the deployment to a Dell XPS 12 with Windows 8 installed.

I've changed the User Access Control to Never

I've placed the following in the AppMain.cs for the main WinForms interface layer project:

using System.Security;

[assembly: AllowPartiallyTrustedCallers]

But I continue to get a System.MethodAccessException error.

Any clues ... other than to install Windows 7 Professional :-D.

Here is another clue:

Attempt by security transparent method 'SouthendCRMWin.AppMain.Main()' to access security critical method 'System.AppDomain.add_UnhandledException(System.UnhandledExceptionEventHandler)' failed.

This is the offending line of code:

// Add the event handler for handling non-UI thread exceptions to the event.

AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;

Just as a test I built an empty StrataFrame Windows Application and here is the error in the Event Viewer:

Fault bucket -311547793, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: TestApplication.exe
P2: 1.0.0.0
P3: 5282cd1f
P4: MicroFour StrataFrame UI
P5: 1.7.6.0
P6: 5282b038
P7: 4b
P8: 36
P9: System.MethodAccessException
P10:
Attached files:
C:\Users\Todd Cahill\AppData\Local\Temp\WERC9DE.tmp.WERInternalMetadata.xml
These files may be available here:
C:\Users\Todd Cahill\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_TestApplication._5ed89756f454716c01e24f869d2487d34397fc1_71d2d649_1535ccdc
Analysis symbol:
Rechecking for solution: 0
Report Id: e00a819f-4bfd-11e3-8258-5c514f5008ec
Report Status: 0
Hashed bucket: 3aefc0518904f554fb5a35a4579e44ab


Now here is the fun part ... if I run the application from my development machine by accessing the directory of install on the client machine ... it works just fine ... even over a wireless connection it is fast .. therefore, it has to be something with that dadblasted Windows 8.1 security nightmare!

Now

Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
Edited 12 Years Ago by Charles Thomas Blankenship
Reply
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Charles,

I just left you a voice mail with my number, but in case we cannot communicate via phone I will explain how I install my SF applications:

I use InstallAware setup to take care of runtime libraries and other assemblies, but the key is that all SF and 3rd party assemblies I put them in the same folder as the application and not in the GAC folder.  In the past I had a lot of issues dealing with the GAC which tries to keep copies of all versioned assemblies and somehow my application got confused loading the wrong assemblies until I manually remove the old ones from the GAC.

I don't have any customer using Windows 8.1 yet but I have tested all my SF applications in Windows 8.0 and the InstallAware setup worked just fine and the applications worked just fine.  Be aware that in InstallAware I configure my shortcuts to run as "Administrator".

Again I develop on a Windows 8.1 computer and test all my applications there and also on virtual machine images.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search