Difference between revisions of "Using RocketLauncher over UNC"
(Replaced HL references with RL) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | == Resolving security errors | + | == Resolving security errors from RocketLauncher over a UNC path == |
− | Running HyperSpin/ | + | Running HyperSpin/RocketLauncher over a UNC path works perfectly fine, but some functions causes the application to crash and produce the following error message: |
<br><br> | <br><br> | ||
[[File:ComError.jpg]] | [[File:ComError.jpg]] | ||
<br><br> | <br><br> | ||
− | The same goes for | + | The same goes for Pause’s manual/guide function. An error is shown when trying to open a pdf file from a UNC installation: |
<br><br> | <br><br> | ||
[[File:Openpdferror.jpg]] | [[File:Openpdferror.jpg]] | ||
<br><br> | <br><br> | ||
− | |||
− | + | Also the following errors are related.<br> | |
− | # | + | When unpacking a 7z archive:<br> |
+ | |||
+ | ''COM Error Notification<br> | ||
+ | Function Name: "findFileInZip"<br> | ||
+ | PROG: mscorlib<br> | ||
+ | DESC: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,Culture=netutral, PublicKeyToken=b77a5c561934e089' failed.<br> | ||
+ | HELP: ,0<br> | ||
+ | |||
+ | ERROR2: Member not found. (0x80020003)<br> | ||
+ | Will continue?''<br> | ||
+ | <br><br> | ||
+ | When setting the log level in RocketLauncherUI to Debug1, Debug2 or Troubleshooting:<br> | ||
+ | ''Function Name "setLogMode"<br> | ||
+ | ERROR: (0x8013150A)<br> | ||
+ | Prog: RocketLauncher<br> | ||
+ | Desc: Request for the permission of type 'System.Security.Permissions.FileIOPermissions, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br> | ||
+ | Help: ,0<br> | ||
+ | |||
+ | ERROR2: Member not found.<br> | ||
+ | (0x80020003)<br> | ||
+ | Will Continue?''<br><br> | ||
+ | |||
+ | There are two ways to resolve this problem. The first one is more secure and the second one is easier. Both of them require that you download the .NET Framework 2.0 Configuration Tool from the link at the [http://blogs.msdn.com/b/astebner/archive/2006/01/23/516671.aspx bottom of this page]. Normally you'd have to download/install the SDK to get this tool, but this guy stripped it out and created a separate installer for it. Props to him! If it's down, PM me and I'll send you a copy.<br> | ||
+ | Direct link: [http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog%7C_Tools/configwizard.zip http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog%7C_Tools/configwizard.zip]<br> | ||
+ | Mirror: [http://grandis.nu/downloads/NET_Framework_2.0_Configuration_Tool.zip http://grandis.nu/downloads/NET_Framework_2.0_Configuration_Tool.zip] | ||
+ | <br><br> | ||
+ | |||
+ | == Option 1, more secure way of doing it == | ||
+ | <br> | ||
+ | |||
+ | #Run "''Microsoft .NET Framework 2.0 Configuration''" from Control Panel -> Administrative Tools | ||
#Create a new Code Group | #Create a new Code Group | ||
##Expand My Computer -> Runtime Security Policy -> Machine -> Code Groups | ##Expand My Computer -> Runtime Security Policy -> Machine -> Code Groups | ||
##Right-click on "All_Code" and select "New..." | ##Right-click on "All_Code" and select "New..." | ||
− | ##Give it a name under "Create a new code group" (I just used " | + | ##Give it a name under "Create a new code group" (I just used "RocketLauncherCodeGroup") and then click "Next" |
− | ##Under "Choose the condition type for this code group" select "URL" and then type in the full UNC path to the " | + | ##Under "Choose the condition type for this code group" select "URL" and then type in the full UNC path to the "RocketLauncher.dll" file, which is located in the \RocketLauncher\Module Extensions" folder. For example, my ##;server name is "SERVER", the FQDN is "SERVER.home.mydomain.com", and it's located in the "Users$" share. So, the full UNC path that I used is: |
− | ##; <nowiki>file:\\SERVER.home.mydomain.com\Users$\HTPC\HyperSpin\ | + | ##; <nowiki>file:\\SERVER.home.mydomain.com\Users$\HTPC\HyperSpin\RocketLauncher\Module%20Extensions\RocketLauncher.dll</nowiki> |
##*(Note that this is a URL so if you have spaces in the path you'll want to replace them with the HTML character code for a space which is "%20" without the quotes.) Then click "Next" | ##*(Note that this is a URL so if you have spaces in the path you'll want to replace them with the HTML character code for a space which is "%20" without the quotes.) Then click "Next" | ||
##Under "Use existing permission set:" select ”FullTrust”, then click "Next" | ##Under "Use existing permission set:" select ”FullTrust”, then click "Next" | ||
##Click "Finish" | ##Click "Finish" | ||
##Note that it will actually create the Code Group with "Copy of" pre-pended to the name you entered. So, if you're OCD like me and want to change it back to the name you entered, you can right-click and rename it | ##Note that it will actually create the Code Group with "Copy of" pre-pended to the name you entered. So, if you're OCD like me and want to change it back to the name you entered, you can right-click and rename it | ||
− | #Create another Code Group, this time for itextsharp.dll (a library used by | + | #Create another Code Group, this time for itextsharp.dll (a library used by Pause to open pdf files). |
− | #: Proceed the same steps as above. Give it a new name, e.g. | + | #: Proceed the same steps as above. Give it a new name, e.g. “PauseCodeGroup” In my case, the corresponding UNC path looks like: |
− | #:;<nowiki>file:\\SERVER.home.mydomain.com\Users$\HTPC\HyperSpin\ | + | #:;<nowiki>file:\\SERVER.home.mydomain.com\Users$\HTPC\HyperSpin\RocketLauncher\Module%20Extensions\itextsharp.dll</nowiki><br> |
− | + | <br> | |
+ | == Option 2, The quick and dirty edition. == | ||
+ | <br> | ||
+ | #Run "''Microsoft .NET Framework 2.0 Configuration''" from Control Panel -> Administrative Tools | ||
+ | #Open up '''My Computer'''. Right-click on '''Runtime Security Policy''' and select '''Adjust Security'''. | ||
+ | #'''Make changes to this computer''' should be checked. Click '''Next'''. | ||
+ | #Select '''Local Intranet''' and move the lever to the top for '''Full Trust'''. | ||
+ | #Click '''Next''', '''Finish''' and close the application. | ||
+ | <br> | ||
+ | Now we need to add the server that hosts RocketLauncher to your Local Intranet sites list.<br> | ||
+ | <br> | ||
+ | #Start Internet Explorer. Go to '''Tools''' / '''Internet Options''' | ||
+ | #In the '''Securities''' tab, click '''Local Intranet'''. | ||
+ | #Click '''Sites''' and '''Advanced'''. | ||
+ | #Uncheck "Require Server Verification (https:) for all sites in this zone". | ||
+ | #Add your server as such: file://servername | ||
+ | ##Or you can add the IP address to the server (example IP): file://192.168.101.15 | ||
+ | ##You can also add your entire network if you want: file://192.168.*.* | ||
+ | #Click '''Close, OK, OK''' and close Internet Explorer. | ||
+ | <br> | ||
+ | The errors should now be gone from RocketLauncher<br> | ||
+ | <br> | ||
---- | ---- | ||
− | + | <br> | |
− | == | + | == Optional / Recommended == |
− | Since you'll be running your applications from a UNC path, you'll probably run into the error message shown below. In order to get rid of these security warnings, you have to add your NAS/Server name to the proper security zone in Internet Explorer. | + | Since you'll be running your applications from a UNC path, you'll probably run into the error message shown below. In order to get rid of these security warnings, you have to add your NAS/Server name to the proper security zone in Internet Explorer. Note that you went for option 2 above, you've already added the server to the Local Intranet zone so this should be fixed already. |
<br><br> | <br><br> | ||
[[File:WindowsSecurityError.jpg]] | [[File:WindowsSecurityError.jpg]] |
Latest revision as of 15:47, 11 October 2020
Contents
Resolving security errors from RocketLauncher over a UNC path
Running HyperSpin/RocketLauncher over a UNC path works perfectly fine, but some functions causes the application to crash and produce the following error message:
The same goes for Pause’s manual/guide function. An error is shown when trying to open a pdf file from a UNC installation:
Also the following errors are related.
When unpacking a 7z archive:
COM Error Notification
Function Name: "findFileInZip"
PROG: mscorlib
DESC: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,Culture=netutral, PublicKeyToken=b77a5c561934e089' failed.
HELP: ,0
ERROR2: Member not found. (0x80020003)
Will continue?
When setting the log level in RocketLauncherUI to Debug1, Debug2 or Troubleshooting:
Function Name "setLogMode"
ERROR: (0x8013150A)
Prog: RocketLauncher
Desc: Request for the permission of type 'System.Security.Permissions.FileIOPermissions, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Help: ,0
ERROR2: Member not found.
(0x80020003)
Will Continue?
There are two ways to resolve this problem. The first one is more secure and the second one is easier. Both of them require that you download the .NET Framework 2.0 Configuration Tool from the link at the bottom of this page. Normally you'd have to download/install the SDK to get this tool, but this guy stripped it out and created a separate installer for it. Props to him! If it's down, PM me and I'll send you a copy.
Direct link: http://cid-27e6a35d1a492af7.skydrive.live.com/self.aspx/Blog%7C_Tools/configwizard.zip
Mirror: http://grandis.nu/downloads/NET_Framework_2.0_Configuration_Tool.zip
Option 1, more secure way of doing it
- Run "Microsoft .NET Framework 2.0 Configuration" from Control Panel -> Administrative Tools
- Create a new Code Group
- Expand My Computer -> Runtime Security Policy -> Machine -> Code Groups
- Right-click on "All_Code" and select "New..."
- Give it a name under "Create a new code group" (I just used "RocketLauncherCodeGroup") and then click "Next"
- Under "Choose the condition type for this code group" select "URL" and then type in the full UNC path to the "RocketLauncher.dll" file, which is located in the \RocketLauncher\Module Extensions" folder. For example, my ##;server name is "SERVER", the FQDN is "SERVER.home.mydomain.com", and it's located in the "Users$" share. So, the full UNC path that I used is:
- file:\\SERVER.home.mydomain.com\Users$\HTPC\HyperSpin\RocketLauncher\Module%20Extensions\RocketLauncher.dll
- (Note that this is a URL so if you have spaces in the path you'll want to replace them with the HTML character code for a space which is "%20" without the quotes.) Then click "Next"
- Under "Use existing permission set:" select ”FullTrust”, then click "Next"
- Click "Finish"
- Note that it will actually create the Code Group with "Copy of" pre-pended to the name you entered. So, if you're OCD like me and want to change it back to the name you entered, you can right-click and rename it
- Create another Code Group, this time for itextsharp.dll (a library used by Pause to open pdf files).
- Proceed the same steps as above. Give it a new name, e.g. “PauseCodeGroup” In my case, the corresponding UNC path looks like:
- file:\\SERVER.home.mydomain.com\Users$\HTPC\HyperSpin\RocketLauncher\Module%20Extensions\itextsharp.dll
- file:\\SERVER.home.mydomain.com\Users$\HTPC\HyperSpin\RocketLauncher\Module%20Extensions\itextsharp.dll
- Proceed the same steps as above. Give it a new name, e.g. “PauseCodeGroup” In my case, the corresponding UNC path looks like:
Option 2, The quick and dirty edition.
- Run "Microsoft .NET Framework 2.0 Configuration" from Control Panel -> Administrative Tools
- Open up My Computer. Right-click on Runtime Security Policy and select Adjust Security.
- Make changes to this computer should be checked. Click Next.
- Select Local Intranet and move the lever to the top for Full Trust.
- Click Next, Finish and close the application.
Now we need to add the server that hosts RocketLauncher to your Local Intranet sites list.
- Start Internet Explorer. Go to Tools / Internet Options
- In the Securities tab, click Local Intranet.
- Click Sites and Advanced.
- Uncheck "Require Server Verification (https:) for all sites in this zone".
- Add your server as such: file://servername
- Or you can add the IP address to the server (example IP): file://192.168.101.15
- You can also add your entire network if you want: file://192.168.*.*
- Click Close, OK, OK and close Internet Explorer.
The errors should now be gone from RocketLauncher
Optional / Recommended
Since you'll be running your applications from a UNC path, you'll probably run into the error message shown below. In order to get rid of these security warnings, you have to add your NAS/Server name to the proper security zone in Internet Explorer. Note that you went for option 2 above, you've already added the server to the Local Intranet zone so this should be fixed already.
Add your NAS/Server to the "Local Intranet" security zone
- Open Control Panel -> Internet Options
- Click on the "Security" tab
- Select "Local Intranet" and then click on the "Sites" button
- Click the "Advanced" button
- Add your NAS/Server here. (For example, the FQDN for my server is "SERVER.home.mydomain.com", so I entered "SERVER.home.mydomain.com" here without quotes)
- Click "Close" -> "OK" -> "OK"