Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Webpermission failure DNN322Webpermission failure DNN322
Previous
 
Next
New Post
7/23/2006 6:48 AM
 

Hi all,

I installed the Weather module for DNN 3.2.2 from Oliver Hine (http://www.oliverhine.com/?tabid=615). I followed the instructions from Oliver Hine and also signed up for a free account at Weather.com (http://registration.weather.com/registration/xmloap/step1). and got a PartnerID and LicenceKey emailed to me.

The Weather module from Oliver Hine seems to works fine when i install and use it on localhost. When i install this module on my hosted portal then i get a Webpermission failure after setting up the Weather module, providing the PartnerID and LicenceKey and then saving the changes. The next error is thrown onto the screen:

DotNetNuke.Services.Exceptions.ModuleLoadException: Request for the permission of type System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. ---> System.Security.SecurityException: Request for the permission of type System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. at System.Security.CodeAccessSecurityEngine.CheckHelper (PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken) at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride) at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) at System.Security.CodeAccessPermission.Demand() at System.Net.HttpRequestCreator.Create(Uri Uri) at System.Net.WebRequest.Create (Uri requestUri, Boolean useUriBase) at System.Net.WebRequest.Create(String requestUriString) at DotNetNuke.Common.Globals.GetExternalRequest(String Address) at OliverHine.Weather.WeatherUserControl.GetWeatherXML(String sLocationToBind, Int32 iLengthToDisplay, String sDisplayUnit) at OliverHine.Weather.WeatherUserControl.BindWeather(String Location) --- End of inner exception stack trace ---

The Portal Logging shows the next log entry:

ModuleId: 811
ModuleDefId: 154
FriendlyName: Weather
ModuleControlSource: DesktopModules/Weather/Weather.ascx
AssemblyVersion: 03.02.02
Method: N/A - Reflection Permission required
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 2
PortalName: Test
UserID: 1
UserName: host
ActiveTabID: 394
ActiveTabName : Weather
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: <Supressed>
ExceptionGUID: 509c1d78-1a20-4f30-9737-ffb9ff3e1a2b
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider , DotNetNuke.SqlDataProvider
InnerException: Request for the permission of type System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException : Request for the permission of type System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. ---> System.Security.SecurityException: Request for the permission of type System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken) at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride) at System.Security.CodeAccessSecurityEngine.Check (CodeAccessPermission cap, StackCrawlMark& stackMark) at System.Security.CodeAccessPermission.Demand() at System.Net.HttpRequestCreator.Create(Uri Uri) at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase) at System.Net.WebRequest.Create(String requestUriString) at DotNetNuke.Common.Globals.GetExternalRequest(String Address) at OliverHine.Weather.WeatherUserControl.GetWeatherXML(String sLocationToBind, Int32 iLengthToDisplay, String sDisplayUnit) at OliverHine.Weather.WeatherUserControl.BindWeather(String Location) --- End of inner exception stack trace ---
StackTrace:
Source:
Server Naam: <Supressed>

(I'm not sure if the similair problem i still have with the News Feed module is related to the same Webpermission failure. The error message show in the News Feed module is a custom message that points out that my Proxy Settings must be setup correctly. My provider doesn't use a Proxy.)

I'm running DNN3.2.2, MSSQLServerProvider, .NET Framework 1.1.4322.2300. The Portal is a parent portal installed in the root of my domain and is in the Dutch Language (The Netherlands). My hosting provider has provided me with Plesk 7.5.6 for administrating my domain. My domain is in a shared hosting environment.

On the DotNetNuke forum this thread (http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/postid/5387/Default.aspx) describes a possible solution.

My hosting provider has the trust level setup in his machine.config as folows:
<trust level="Medium" originUrl="http://localhost/.*" />

I have tried different setup for the trust level in web.config (high and full), but with no succes. After every try i did reset my domain via Plesk control by switching my domain off/on (I'm not sure if this resets IIS) and refreshed the browser. The trust level in my web.config is setup as folows:
<trust level="High" originUrl="http://localhost/.*" />  

Unfortunately the following screen is the only response i get out of my DNN portal in all trust level cases, except when i comment out the trust tag (original situation):

 Server Error in '/' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: ?

Source Error:

 
Line 195:        <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 196:        <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 197:        <add assembly="*" />
Line 198:      </assemblies>
Line 199:    </compilation>


Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 197


Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

 

I have no clue what this means. This is not even the page where the weather module is placed on.
My provider did let me know that changing the trust level in machine.config, to a higher level than Medium trust, is not an option for him in a shared hosting environment.
 

It looks like i've missed some crusial information in the threads i found about "trust level".
Any help on this issue would be appreciated very much.

Zit

 
New Post
7/24/2006 11:49 AM
 

couple of things:

* after changing the trustlevel in web.config, you must recycle the application pool

* you might need to run your application in its own application pool, i'm not sure, but i think IIS does not allow different trust levels in the same application pool

Cheers,

Erik


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
7/24/2006 11:52 AM
 
I've seen this error before and generally it seems to be caused by having the Indexer service running.  Disable it and you should be fine.
 
New Post
7/25/2006 1:01 PM
 

Thanks for your reply.

Do you know how i can recycle the applicationpool in a shared hosting environment, where i don't have direct access to IIS? I only have access to my domain through Plesk v7.5.6 (There is a disable/enable switch for the whole domain, i already tried that but the error remains).

Any information on that would be appreciated very much.

Later,

Zit.

 
New Post
7/25/2006 1:19 PM
 

Hi Mr. MobileNow,

I'm running a shared hosting plan and not in the position to manipulate services, if that is what you are reffering to. I'll ask my provider to try this to make sure that this Indexer service is not the cause of these Webpermission errors. Thanks for replying.

Chau,

Zit.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Webpermission failure DNN322Webpermission failure DNN322


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out