HomeHomeSupportSupportSilverlight Med...Silverlight Med...A LOT Of Errors After InstallA LOT Of Errors After Install
Previous
 
Next
New Post
9/2/2007 5:45 AM
 
A LOT Of Errors After Install  (United States)
Error: Silverlight Media Player is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Request failed. ---> System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action) at iwebs.Modules.SMP.ViewSilverlightMediaPlayer.CheckMediumTrust() at iwebs.Modules.SMP.ViewSilverlightMediaPlayer.Page_Load(Object sender, EventArgs e) The action that failed was: LinkDemand The type of the first permission that failed was: System.Security.PermissionSet The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---
 
Anyone know what is up with this? We liked the look of this, bought it, and boom, nothing. We are hosting on a GoDaddy hosting account if that answers anything.
 
New Post
9/2/2007 8:36 PM
 
This is a problem with the site trust being changed from the default trust level.
 
 
The solution to this lies with a line in the web.config
 

There is an option in your web.config file in your dnn structure that will look like this:

 

<trust level="Medium" originUrl="http://localhost/.*" />

 

Please edit this line to be one of two options.

 

1. <trust level="Full" originUrl="http://localhost/.*" /> 2. <!-- trust level="Medium" originUrl="http://localhost/.*" / -->

 

Option 1. Is to set full trust level.

Option 2 is to comment out this filed. This is the default DNN web.config settings.
 
Option 1 is the better option, as this is how DNN recommend that you run a DNN site. It should alos be noted that we have put a load of effort into making our modules work well without the requirement for Full Trust. However it is not possible with the silverlight module by way of silverlight nature of design.
 
Hope this helps.
 
 
New Post
9/2/2007 8:56 PM
 
Oh yeah.. GoDaddy sucks for DNN.
 
New Post
9/2/2007 9:30 PM
 
I had already tried changing that trust level, and it caused another error. I will try again, and if it makes an error, I will post it here. Thank you for your reply.
 
New Post
9/2/2007 9:32 PM
 
sort of ssure that is the issue. Not sure how you would be changing the trust with a go daddy account. I did not think you could?
 
To be sure.. Uninstall the module. Set tust as above, then re-install.
 
 
New Post
9/2/2007 9:35 PM
 
Ok, I tried it again, and restarted the application after I changed the web.config file to this:
 
<trust level="Full" originUrl="http://localhost/.*" />
 
and it says this when I got the page with the silverlight media player:
 
Error: Silverlight Media Player is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Request failed. ---> System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action) at iwebs.Modules.SMP.ViewSilverlightMediaPlayer.CheckMediumTrust() at iwebs.Modules.SMP.ViewSilverlightMediaPlayer.Page_Load(Object sender, EventArgs e) The action that failed was: LinkDemand The type of the first permission that failed was: System.Security.PermissionSet The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---
 
New Post
9/2/2007 9:37 PM
 
Ok, I removed the module from the page, and then uninstalled the module from DNN. I am now rebooting the program from the host menu. After that, I will change the DNN security level, restart the application, and then try to install the app again. I will be right back to tell you what happens.
 
New Post
9/2/2007 9:39 PM
 
I will throw this under the nose of one of our programmers on Monday.. but I am kind of sure that even though you have set the tust in the web.config, GoDaddy do not allow anything past the medium trust for the IIS instance.  Hence the GoDaddy sucks comment.  We have been down this track before with GoDaddy, and did not find a solution as they would not allow full trust, and silverligh requires it.
 
New Post
9/2/2007 9:39 PM
 
Now I changed the DNN setting to this: <!-- trust level="Medium" originUrl="http://localhost/.*" / -->
 
And the page now has an error which will not allow the site to load, this is what it says:
 
 

Server Error in '/main' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->
            <configuration>
            <system.web>
            <customErrors mode="Off"/>
            </system.web>
            </configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->
            <configuration>
            <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
            </system.web>
            </configuration>
 
New Post
9/2/2007 9:41 PM
 
I have now changed the dnn setting to this: <trust level="Full" originUrl="http://localhost/.*" />
 
and restarted the application. The site now loads, and I am now going to try to load the silverlight module.
 
New Post
9/2/2007 9:42 PM
 
The installation of the Silverlight module went well. It said it installed everything, and the install page ended with this:
 
EndJob Files created
 
StartJob Registering DesktopModule
Info Registering Definitions
Info Registering Controls
EndJob Registering finished
 
EndJob Installation successful.
 
New Post
9/2/2007 9:43 PM
 
I will now attempt to add the module to a page:
 
 
New Post
9/2/2007 9:44 PM
 
Errors All Over.
 
Error: Silverlight Media Player is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Request failed. ---> System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action) at iwebs.Modules.SMP.ViewSilverlightMediaPlayer.CheckMediumTrust() at iwebs.Modules.SMP.ViewSilverlightMediaPlayer.Page_Load(Object sender, EventArgs e) The action that failed was: LinkDemand The type of the first permission that failed was: System.Security.PermissionSet The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---
 
 
 
This is really depressing.
 
New Post
9/2/2007 9:51 PM
 
Same deal.. Because GoDaddy prevent true Full Trust under IIS, the web config thing fails.
 
Options.
1. Hastle GoDaddy for full trust. (good luck)
2. Host with us, or someone else who can offer full trust.
3. We give you a refund.
 
P.S. Noticed the AOG site.. we are a Christian business here too.
 
 
 
New Post
9/2/2007 9:58 PM
 
I appreciate you lending us an ear while we tried to resolve this, it was much appreciated. Does silverlight have the option to setup its appearance as a photo album? Where you have images as the first thing you see, that lead to an album underneath them?
 
Like 6 images on the main silverlight page, that lead to 6 different albums etc? It doesnt have to be 6, it could be 11 or 3 or any amount of albums.
 
New Post
9/2/2007 10:02 PM
 
No, and although we could do this, it is not likely we will.
 
This would be easier for us to do with flash. So we are likely to keep silverlight to features that lend it's self to doing things that are not easy to do with flash or are work better with silverlight. Like the media stuff.
 
There is a good module from http://www.bizmodules.net/ that does this photo work you are looking for. Check it out..
 
New Post
9/6/2007 12:05 AM
 
We just added this script again on a brand new host, that allows us to modify the web config file, and allows flash and more, and it STILL does not work. We cant even modify the settings.
 
I am not angry, but I am not happy about this. This script will not work anywhere we try it.
 
New Post
9/6/2007 7:52 AM
 
There are really only 2 things you need.
 
1. The latest version of the product. 43.01.08
2. Full trust set for both IIS and the Web Config. (as recommended by DotNetNuke courp to run DNN) We have found that mostly really cheap hosts like GoDaddy have medium trust set.
 
Those two things and you will be good as gold. I am sorry you are not happy. We have many people using our module and while there are two issues, it appears to us that there are only two.
 
1. You need Full trust - and we know this and cannot produce silverlight without it due to how MS have made silverlight work.
2. A problem when IIS does not have Xaml configures. This throws not errors, just gives blank pages. (solution http://www.interactivewebs.com.au/Forums/tabid/160/forumid/6/threadid/246/scope/posts/Default.aspx)
 
Other than that, we have no errors that we know of, and from the sounds of it, your new host does not have Full trust set in IIS.
 
We remain happy to assist you require help outside the above mentioned.
 
New Post
9/7/2007 3:04 AM
 
Our web.config file setting:
 
    <!-- set code access security trust level - this is generally set in the machine.config
    <trust level="Full" originUrl="http://localhost/.*" />
     -->
 
-----------------------------
 
Our Support Request response from our Hosting Company called iHostASP:
 

Hi Christian,

We aren't sure why the script would not be running because by default you should already have Full Trust permission to the IIS and web.config.

 

IHOST, LLC

Customer Support

http://support.ihostasp.net

Local/International: 1.440.377.9913

Toll-free: 1.800.593.0238
 
----------------------------------------------
 
And an attempt to re-add the script to a page shows this:
 
"Currently this module has no settings configured, please visit the area "Configure Module" to load default settings and configuration options."
 
And when we attempt to "Configure Module" we get three boxes, all can be edited, but the first one "Configuration Main Menu", the only selection on it is to select "Back To Module".
 
The other two selections we can modify
 
New Post
9/15/2007 8:13 PM
 
Even though they say that you have full trust in IIS, my feeling is that you do not. Please ask them to verify and perhaps screen capture to confirm.
 
Also get them to check that the Worker Process account has full access to your file system. This is part of full permission trust configuration.
 
 
Previous
 
Next
HomeHomeSupportSupportSilverlight Med...Silverlight Med...A LOT Of Errors After InstallA LOT Of Errors After Install


Recent News

iPhone Apps

Connect to us