|
|
 | |  |
 | |  |
 | |  |
 | |  |
 | |  |
 |
|
|
 |
Joined: 1/10/2007
Posts: 0
|
|
|
Hi,
I just purchased your Report Charts & Report Grid. I'm running DNN 4.03 on a hosted solution. I installed Report Charts and received no errors. I then placed a module on a page....np here either...just needed to set it up. Went to settings and tested the connection...got an OK. Tested my SQL query...stated it returned 6 rows....correct! Clicked update and received the following error within the module....
System.Security.SecurityException: That assembly
does not allow partially trusted callers. at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm,
PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh,
SecurityAction action, Object demand, IPermission permThatFailed) at
ZedGraph.Web.ZedGraphWeb.CreateGraph(Stream OutputStream, ImageFormat Format,
Boolean bShowTransparency) at ZedGraph.Web.ZedGraphWeb.Render(HtmlTextWriter
output) The action that failed was: LinkDemand The Zone of the assembly that
failed was: MyComputer
Apparently some sort of permissions keeping ZedGraph from running....any ideas!!
Thanks,
rcs
|
|
|
|
 |  |
|
|
 |
Joined: 11/2/2006
Posts: 0
|
|
|
Hi! Actually this is a nasty problem. We received just two people reports and both of them they not reported the solution. It's something related to the Medium Trust security settings of IIS.
Here at dnaxp.net we did install many times DotNetNuke to ensure maximum compatibility with every version and only once we observed that behaviour. In the end we've repeated the installation and the problem was solved.
Can you please post if the installation was provided by the provider or done by yourself? Actually it's quite hard to reach you with any help, can you please post the provider name?
Best Regards, D.
|
|
|
|
 |  |
|
|
 |
Joined: 11/2/2006
Posts: 0
|
|
|
Hi! I just notice a new update for ZedGraphWeb. It's marked 5.0.4 and the release notes states: [UPD] Add zedgraph signing to ZedGraph.Web dll This should allow a better compatibility with Medium Trust environments. You can try to replace the binaries copying over the new ZedGraph to the bin directory. Download the 5.0.4 version from here: http://sourceforge.net/project/showfiles.php?group_id=114675 Best Regards, D.
|
|
|
|
 |  |
|
|
 |
Joined: 11/2/2006
Posts: 0
|
|
|
I'm sorry I was inexact. It's not enough to replace the dll...
The good news is that I've posted on Snowcovered, under section Patch & Hotfixes, version 1.6.3 of ReportChart, compiled against ZedGraph 5.0.4.
Let me know if it helps! Regards, D.
|
|
|
|
 |  |
|
|
 |
Joined: 1/10/2007
Posts: 0
|
|
|
Hi D,
Thanks for the quick response. I downloaded the patch and updated my site however it still isn't working. I've contacted the host to see if anything can be changed with 3rd party modules and permissions. Unfortunately, they haven't been very responsive....previously, I had a different issue and their response was...they don't support 3rd party modules on DNN...even though they host and promote DNN sites....here is the error received if it helps.
Error: Report Chart
is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException:
That assembly does not allow partially trusted callers. --->
System.Security.SecurityException: That assembly does not allow partially
trusted callers. at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm,
PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh,
SecurityAction action, Object demand, IPermission permThatFailed) at
ASP.desktopmodules_reportchart_viewreportchart_ascx.__BuildControlZedGraphWeb1()
at
ASP.desktopmodules_reportchart_viewreportchart_ascx.__BuildControlTree(desktopmodules_reportchart_viewreportchart_ascx
__ctrl) at
ASP.desktopmodules_reportchart_viewreportchart_ascx.FrameworkInitialize() at
System.Web.UI.UserControl.InitializeAsUserControlInternal() at
System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory,
VirtualPath virtualPath, Type t, Object[] parameters) at
System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at
System.Web.UI.TemplateControl.LoadControl(String virtualPath) at
DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule,
PortalSettings PortalSettings) The action that failed was: LinkDemand The Zone
of the assembly that failed was: MyComputer --- End of inner exception stack
trace ---
If I get a response from my host, I'll post it here for others....if you come up with a way around these permission settings, please let me know!
Thanks,
rcs
|
|
|
|
 |  |
|
|
 |
Joined: 11/2/2006
Posts: 0
|
|
|
Hi! It's kinda sad the reply you've got! Expecially after all the DNN core group work to create more trust on 3rd part modules.
Actually we would like to help you further so, we will verify that ZedGraph is able to run on Medium Trust environments. We'll keep you informed. Kind Regards, D.
|
|
|
|
 |  |
|
|
 |
Joined: 1/10/2007
Posts: 0
|
|
|
Hi D, Thanks for the support. I have done some research on this particular problem. Here is what I found which may help you in developing for a Medium Trust environment, since most hosting companies are requiring this. My host will move my site to a Full Trust environment, however, they don't recommend it due to higher security risks....anyway, this is what I found to help resolve medium trust issues... Known Issues
- Pathing - EDITED
- This by far is the most common issue that is completely within the
control of the developer. Due to the new CAS FileIO permissions, if you
pass in a complete file path (e.g. c:\inetpub\yourdomain.com) it will
try to check your users security permissions on every step of the path.
The main problem is that your user does not have permissions outside of
\yourdomain.com\ folder. So the check will fail and produce a .NET
Error. To solve this, you need to make use of virtual paths. The root
of your site would be "\" while a directory of "test" marked as a
application starting point would have the value of "\test\" as its
root. By using virtual paths, you eliminate the CAS check on the full
path.
- Allow Partially Trusted Callers - To be
compliant with Medium Trust, 3rd party assmeblies should be marked with
the Allow Partially Trusted Callers attribute. If you are having an
issue with a third party component, please verify the assembly is
marked with it.
- Cryptography - Under medium trust,
the engineers at MS have decided in their infinite wisdom that you can
Decrypt things, but not encrypt them. This is mostly related to your
Config file. It is a known issue that you cannot encrypt sections of
your config file, e.g. ConnectionStrings, on the shared server. You can
however encrypt it locally and then decrypt it on the server.
Hope that helps and thanks for your continued support!
rcs
|
|
|
|
 |  |
|
|
 |
Joined: 11/2/2006
Posts: 0
|
|
|
Hi! Thanks for your support in providing us with informations. Followings some notes:
The binary which is causing the problem is "ZedGraph.Web.dll". The error happens when the web control wants to load the "ZedGraph.dll" residing in the same folder (/bin). Unfortunately this component is not produced directly by us. But we've found that the binary should work with no problem under medium trust security (if i'm not wrong, it implements Partially Trusted Callers). I believe this host too runs on Medium Trust Security (webhost4life). We've just forwarded the request to the help desk and we'll keep you informed.
Regards, D.
|
|
|
|
 |  |
|
|
 |
Joined: 11/2/2006
Posts: 0
|
|
|
Hi! Just got an update from our hosting. Webhost4life runs on a custom trust security. They also offer to install medium and full trust security for a site. We'll do some testing on IIS but it will require some time. Meanwhile, if you believe is necessary, we offer to you the possibility to ask for a refund according to Snowcovered policies, due to the impossibility of using our products. Best Regards, D.
|
|
|
|
 |  |
|
|
 |
Joined: 1/10/2007
Posts: 0
|
|
|
Hi,
Thanks for the refund offer. We have asked our host to move our site over to a full trust environment. No more permission errors. We use it for development purposes only, giving the client the ability to login and see where we are on their projects. I have since, added a test chart and played with the settings....I have to say very nice, easy user interface, easy to understand and looks great. I'm sure getting it to work in a medium trust environment will mean more sales and less support issues....hopefully. I look forward to continued use and future enhancements.
Thanks for your support.
rcs
|
|
|
|
|  |
 | |  |
 | |  |
 | |  |
|
|
| |
|
|
|
 |

Full compatibility of ReportGrid & ReportChart with all releases of DNN from 4.0.2 to 5.4.4
The help desk support is always available to help you! Contact us!
Only $64.95 Offer expires on 12/31/2010
|
|
 |
|
|
|
|