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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Medium Trust CASMedium Trust CAS
Previous
 
Next
New Post
7/3/2008 1:09 PM
 

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 5:03 PM
Accepted Answer 

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


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/3/2008 6:55 PM
 

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 7:05 PM
 

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


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/3/2008 8:02 PM
 

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
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Medium Trust CASMedium Trust CAS


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