Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Install It!  Medium Trust CAS
Previous Previous
 
Next Next
New Post 7/3/2008 10:09 AM
Resolved
User is offline Matthew Copeland
8 posts
10th Ranked


Medium Trust CAS 

Hi All,

Windows Server 2k3

SQL Server 2005 Express (Hardened: Local connections only, Windows Authentication Only)

I managed to get a DNN installation with a hardened SQL installation finished with the help of this forum, but I have run into a problem. I had Medium Trust CAS turned on in the web.config, and when I clicked on the link to go to the site for the first time, it pegged the CPU and kept it there for 10 minutes. I closed IE explorer, commented out the Medium Trust CAS, and everything worked like a champ.

I am using 4.8.4. and the default DOtNetNuke template.

According to the CAS documentation i just need to enable the config entry and I should be good to go. It does not allow the use of SA with a blank password, however as stated above i am using windows auth. It also does not allow non local  web service calls. I imagine if either of these occurred in the default template, they would produce a security exception - not peg the CPU.

Is there a known problem with Medium Trust CAS and 4.8.4?

Is anyone else experiencing this?

Thanks,

Matthew

 
New Post 7/3/2008 2:03 PM
Accepted Answer 
User is offline cathal connolly
2638 posts
www.cathal.co.uk
5th Ranked










Re: Medium Trust CAS 

dotnetnuke works fine in medium trust, however i suspect your problem is ajax. MS Ajax doesn't work in medium trust, so sites that use it either need to be running in full trust (and then can use the ajax dll's in the bin folder), or else you need to install ms ajax (http://www.asp.net/AJAX/downloads/) -this will place it in the GAC meaning it can now work in medium trust. Note: if you install the 3.5 version of ajax you'll have to update the version numbers in the web.config of the ajax components.

Cathal

 
New Post 7/3/2008 3:55 PM
User is offline Matthew Copeland
8 posts
10th Ranked


Re: Medium Trust CAS 

Wow... straight from the authoritative mouth

Everything works great. Now i need to remove SQL and some other componenets mentioned in your document Cathal and I should have a hardened DNN installation.

I do have one more question, in all the install resources i have seen, the only file system permissions being set are on the physical directory tied to the virtual directory. I ran into two errors while browsing and playing as the HOST user which required i set full control permissions for NETWORK SERVICE to:

Windows\Temp

WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

Did I do something wrong, or is this to be expected?

Thanks,

Matthew

 
New Post 7/3/2008 4:05 PM
User is offline cathal connolly
2638 posts
www.cathal.co.uk
5th Ranked










Re: Medium Trust CAS 

no, you didn't do anything wrong, i'm not sure why those permissions aren't there already as they should be there by default. Your windows/temp folder is used by the .net xmlserializer to create temporary assemblies, so when you install .net it checks for the location of the %TEMP% folder and grants the required permissions (theres some notes on this and a few tools to help debug why it might not be working @ http://dotnetdebug.net/2005/07/26/xmlserializer-and-the-notorious-filenotfoundexception/ )

The 2nd folder is even more mysterious as it's the folder where asp.net creates and compiles all it's assemblies i.e. all the pages in the site etc. I'm surprised your site works at all if those permissions aren't set.

It may be worth going to dos, changing to the folder where .net 2.0 is installed (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 probably) and running

aspnet_regiis -i

to remap the 2.0 extensions and reset the permissions.

On occasion I've seen odd errors like this and they've come from non-standard builds eg. machine's made by ghosted images etc., where the user GUID's can act a bit funny after the machine's been SYSPREP'ed - is this a clean build machine or has it come from an image deploy?

Cathal

 
New Post 7/3/2008 5:02 PM
User is offline Matthew Copeland
8 posts
10th Ranked


Re: Medium Trust CAS 

Actually I had just removed Active DIrectory, created a new admin account, logged in, tried to browse to the site and got the error for the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 path. I was unclear above, and you are right, the site was not working at all.

The windows temp directory error I got when I went to Host Settings.

Everything is squared away now and I really appreciate the help Cathal.

Regards,

Matthew


 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Install It!  Medium Trust CAS
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net
$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP