Login Skip Navigation LinksWilsonWebPortal > Forums Search
Download WebPortal Download WebPortal
Download and start using the full WebPortal completely free, including the source for the basic modules so you can see how to create your own if the included modules aren't enough.

PayPal Subscribe
Get It All for $50 USD:
WebPortal, ORMapper,
Source Code, All Updates
PayPal

User Login User Login
Log In
 
 
Reset Password

Wilson WebPortal Forums Wilson WebPortal Forums : Bugs & Issues : WebPortal Setup Issue

Date Post
8/1/2006 2:48:56 PM Paul,

I have setup the WebPortal based on your Readme.txt document distributed with the zip file.  I am using Aspnix for web hosting.  I uploaded the WebRoot directory after configuring and setting up the DB on my host.  I can connect fine to the db with the built tables from MS SQL Management Studio.

When I browse my site at www.stillriversoftware.com, I get the following:

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request failed.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase) +176
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +318
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement,

Any ideas what might be causing this?

Thank you,
    Rob Bazinet

8/1/2006 6:21:42 PM Hi Rob:

You need the reflection permission due to the ORMapper.  Some hosts automatically enable this, while some do not.  Its not technically part of medium trust, but many that start with medium trust do add this permission since its a common requirement and since its not much of a real security risk.  Microsoft was at one time even talking about adding a hosting trust that would have included this by default, but for some reason that plan never got implemented.  So talk to your host -- I assume they have to at least allow it on your machine, even if you have to also do something to enable it for your app.

Thanks, Paul Wilson
8/1/2006 6:45:11 PM Paul,

Thank you for the reply.  My host is ASPnix and they won't give me that permission.  I just asked their support group and got an all out "no".  No real explanation.

-Rob
8/1/2006 6:50:26 PM Hi Rob:

Sorry about that.  There are quite a few libraries that require reflection, not to mention a lot of reasons you might want to use it yourself, so that's very short-sighted.  I sometimes hear of people with problems with WebHost4Life's support, just as I do with every other host, but they do seem to always be willing to work with people, not to mention that most things are easy to do on your own with their control panel, so maybe you should consider a move.  Its always a pain to move things already setup, so I understand if that's not doable, but I orginally moved to WebHost4Life when me previous host dragged their feet getting ASP.NET up and running -- I couldn't afford to wait indefinitely, no matter how hard it was to move.

Good luck, Paul Wilson
8/1/2006 7:49:45 PM Paul,

Thanks.  I have had bits of issues with these guys @ ASPnix and I agree a switch is in order.  I just signed up with WebHosting4Life and will give them a try.  I chatted with their help people first to verify what I needed to do was doable and they agreed.

I used your referrer ID, so you should get a credit or something.

-Rob