﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » How to deploy to Windows 8.1</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 23:46:19 GMT</lastBuildDate><ttl>20</ttl><item><title>How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32278.aspx</link><description>I'm&amp;nbsp;running into a slight problem with the deployment to a Dell XPS 12 with Windows 8 installed.&lt;br/&gt;&lt;br/&gt;I've changed the User Access Control to Never&lt;br/&gt;&lt;br/&gt;I've placed the following in the AppMain.cs for the main WinForms interface layer project:&lt;br/&gt;&lt;br/&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt; System.Security;&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;[&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;&lt;font color="#0000ff" face="Consolas" size="2"&gt;assembly&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;: &lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;AllowPartiallyTrustedCallers&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;]&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;But I continue to get a System.MethodAccessException error.&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;Any clues ... other than to install Windows 7 Professional :-D.&lt;br/&gt;&lt;br/&gt;Here is another clue:&lt;br/&gt;&lt;br/&gt;Attempt by security transparent method 'SouthendCRMWin.AppMain.Main()' to access security critical method 'System.AppDomain.add_UnhandledException(System.UnhandledExceptionEventHandler)' failed.&lt;br/&gt;&lt;br/&gt;This is the offending line of code:&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;            &lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" face="Consolas" size="2"&gt;&lt;font color="#008000" face="Consolas" size="2"&gt;&lt;font color="#008000" face="Consolas" size="2"&gt;// Add the event handler for handling non-UI thread exceptions to the event.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font color="#008000" face="Consolas" size="2"&gt;&lt;font color="#008000" face="Consolas" size="2"&gt;&lt;font color="#008000" face="Consolas" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;AppDomain&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;Just as a test I built an empty&amp;nbsp;StrataFrame Windows Application and here is the error in the Event Viewer:&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="2"&gt;&lt;font size="3"&gt;Fault bucket -311547793, type 5&lt;br/&gt;Event Name: CLR20r3&lt;br/&gt;Response: Not available&lt;br/&gt;Cab Id: 0&lt;br/&gt;Problem signature:&lt;br/&gt;P1: TestApplication.exe&lt;br/&gt;P2: 1.0.0.0&lt;br/&gt;P3: 5282cd1f&lt;br/&gt;P4: MicroFour StrataFrame UI&lt;br/&gt;P5: 1.7.6.0&lt;br/&gt;P6: 5282b038&lt;br/&gt;P7: 4b&lt;br/&gt;P8: 36&lt;br/&gt;P9: System.MethodAccessException&lt;br/&gt;P10: &lt;br/&gt;Attached files:&lt;br/&gt;C:\Users\Todd Cahill\AppData\Local\Temp\WERC9DE.tmp.WERInternalMetadata.xml&lt;br/&gt;These files may be available here:&lt;br/&gt;C:\Users\Todd Cahill\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_TestApplication._5ed89756f454716c01e24f869d2487d34397fc1_71d2d649_1535ccdc&lt;br/&gt;Analysis symbol: &lt;br/&gt;Rechecking for solution: 0&lt;br/&gt;Report Id: e00a819f-4bfd-11e3-8258-5c514f5008ec&lt;br/&gt;Report Status: 0&lt;br/&gt;Hashed bucket: 3aefc0518904f554fb5a35a4579e44ab&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="3"&gt;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!&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font face="Consolas" size="1"&gt;Now &lt;/font&gt;</description><pubDate>Wed, 13 Nov 2013 18:37:16 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32295.aspx</link><description>Edhy that is wonderful news.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;As an update I went ahead and installed StrataFrame and Visual Studio 2012 on the Dell XPS 12 ... I DID NOT recompile the application or enter into the development environment.&amp;nbsp; I then clicked on the .exe shortcut and the application ran.&lt;br/&gt;&lt;br/&gt;It would appear that the installation application for StrataFrame did its magic and registered the proper assemblies or configured some environment properly ... now I just have to figure out what it did and duplicate it.&lt;br/&gt;&lt;br/&gt;Thanks for everything Edhy ... I'll be calling you shortly.&lt;br/&gt;&lt;br/&gt;There </description><pubDate>Wed, 13 Nov 2013 18:37:16 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32293.aspx</link><description>Hi Charles,&lt;br/&gt;&lt;br/&gt;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:&lt;br/&gt;&lt;br/&gt;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.&amp;nbsp; 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.&lt;br/&gt;&lt;br/&gt;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.&amp;nbsp; Be aware that in InstallAware I configure my shortcuts to run as "Administrator".&lt;br/&gt;&lt;br/&gt;Again I develop on a Windows 8.1 computer and test all my applications there and also on virtual machine images.</description><pubDate>Wed, 13 Nov 2013 17:35:18 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32292.aspx</link><description>[quote]Is there anyone who has deployed to Win8 yet?[/quote]&lt;br/&gt;&lt;br/&gt;Yep, many places and on my own developing machine too, for quite some time now.&lt;br/&gt;&lt;br/&gt;Your offending line:&lt;br/&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;&lt;font color="#2b91af" face="Consolas" size="2"&gt;AppDomain&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Consolas" size="2"&gt;&lt;font face="Consolas" size="2"&gt;.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;&lt;br/&gt;&lt;br/&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;is not part of a normal StrataFrame Program.cs. When you created a simple SF application to test, did it throw the same exception without inserting this offending line?</description><pubDate>Wed, 13 Nov 2013 17:34:10 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32290.aspx</link><description>Hey Edhy:&lt;br/&gt;&lt;br/&gt;This is a "developmentally" clean machine ... so the answer is that I cannot copy the libraries and executables to the machine and have it work.&lt;br/&gt;&lt;br/&gt;It doesn't work with my complex application ... and it doesn't work with a completely empty SF application.&lt;br/&gt;&lt;br/&gt;That said, a completely empty regular Windows Application when copied into the same subdirectory works like a charm.&lt;br/&gt;&lt;br/&gt;So, there is something going on ... if I have to ... and it looks like I'm not going to be able to get this resolved by Monday ... I'm going to have to install VS 2012 and StrataFrame onto the machine and see if it works then.&lt;br/&gt;&lt;br/&gt;Has no one ever deployed an SF application on an 8.1 machine in enterprise environment?&lt;br/&gt;&lt;br/&gt;C. T.</description><pubDate>Wed, 13 Nov 2013 17:06:43 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32289.aspx</link><description>Hi Charles,&lt;br/&gt;&lt;br/&gt;I am sorry but I am a bit confused with your issue.&amp;nbsp; I have Windows 8.1 on my computer and I am working with SF and I can run my applications just fine.&amp;nbsp; I have not tried installing my application on Win 8.1, but I did in a virtual machine with Windows 8.0 and it worked just fine.&lt;br/&gt;&lt;br/&gt;Is your the problem with installing the application on Windows 8.1 or running it from Windows 8.1?</description><pubDate>Wed, 13 Nov 2013 15:38:01 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32286.aspx</link><description>Oh God:&lt;br/&gt;&lt;br/&gt;Now you have me scared to death ... just as a test I created a standard and empty WinForms application and it runs just fine.&lt;br/&gt;&lt;br/&gt;Maybe I should have contacted you before I spent six months building an application that appears to only run on Windows 7?&amp;nbsp;&amp;nbsp; This simply CAN'T be true!&lt;br/&gt;&lt;br/&gt;There is &lt;strong&gt;no way&lt;/strong&gt; StrataFrame should be doing anything that prevents it from running on Windows 8.1 ... please tell me this is the case.&lt;br/&gt;&lt;br/&gt;Is there anyone who has deployed to Win8 yet?&lt;br/&gt;&lt;br/&gt;I have to get this application to the client by Monday ... hopefully somebody will&amp;nbsp;rescue my dumb a$$ before then!&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;C. T.</description><pubDate>Wed, 13 Nov 2013 13:00:58 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32281.aspx</link><description>On the Main() method, add &amp;lt;SecurityCritical()&amp;gt; to the attributes. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;That will set the method as a security critical method instead of a security transparent method, forcing it to require full trust to be launched.</description><pubDate>Wed, 13 Nov 2013 10:03:39 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32280.aspx</link><description>Yes ... that was the first thing I tried ... right click ... Properties ... Compatibility ... check "Run this program as an administrator".&amp;nbsp; I even chose to make it compatible with Windows 7 ... to no avail.&lt;br/&gt;&lt;br/&gt;C. T.</description><pubDate>Wed, 13 Nov 2013 09:26:25 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: How to deploy to Windows 8.1</title><link>http://forum.strataframe.net/FindPost32279.aspx</link><description>You have UAC turned off on the machine, but are you trying to launch the application with administrative rights?</description><pubDate>Wed, 13 Nov 2013 08:53:55 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>