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 ...getting exception accessing custom user profile properties (sometimes)getting exception accessing custom user profile properties (sometimes)
Previous
 
Next
New Post
3/6/2009 6:37 PM
 

Hello all,

I am intermittently getting the errr,
Could not load file or assembly 'DOTNETNUKE' or one of its dependencies. Access is denied.

This error happens when accessing "Manage Profile" function in user administration.  Actually, it seems to happen to any code that attemts to acess custom user profile items.  I have added one custom prorfile item for my application.  I can't see how this is causing a problem, but it must be as my application will also fail if it tries to fetch the same item for the user, yet I have not problems accessing the 'standard profile items'. some oddball interaction that I need to worry about?  Note, this also happened in DNN 5.0, I don't know about earlier versions.

I haveDNN 5.0.1 installed on  web farm (2 X W2003 Web Edition) both servers mount a common file share off our main server.  I have added the 'connect as' user to the "IIS_WPG" group on all the machines.  I have set the proper permisions on the IIS Metabase.  There are no errors in the sytem event log.

To clear the problem, I need to simply re-save   the permissions on:  C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.

Please help!, I'm at a loss on why this happening, but it is a blocking factor in me being able to deploy my application.

 

The exception itself is:

AssemblyVersion: 5.0.1
PortalID: 2
PortalName: xxxxxxxxxx
UserID: 17
UserName: xxxxxxxxx
ActiveTabID: 92
ActiveTabName: UserSettings
RawURL: /UserSettings/tabid/92/UserID/17/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://xxxxxxxxx.yyyyyyyyyy.com/UserSettings/tabid/92/UserID/17/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.1; .NET CLR 3.5.21022)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 56667f92-c23a-4490-a558-c151417abc7d
InnerException: Could not load file or assembly 'DOTNETNUKE' or one of its dependencies. Access is denied.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.RuntimeTypeHandle._GetTypeByName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Could not load file or assembly 'DOTNETNUKE' or one of its dependencies. Access is denied. ---> System.IO.FileLoadException: Could not load file or assembly 'DOTNETNUKE' or one of its dependencies. Access is denied. File name: 'DOTNETNUKE' at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at DotNetNuke.UI.WebControls.EditControlFactory.CreateEditControl(EditorInfo editorInfo) at DotNetNuke.UI.WebControls.FieldEditorControl.BuildEditor(EditorInfo editInfo) at DotNetNuke.UI.WebControls.FieldEditorControl.BuildDiv(EditorInfo editInfo) at DotNetNuke.UI.WebControls.FieldEditorControl.CreateEditor() at DotNetNuke.UI.WebControls.FieldEditorControl.DataBind() at DotNetNuke.UI.WebControls.PropertyEditorControl.AddEditorRow(Table& tbl, String name, IEditorInfoAdapter adapter) at DotNetNuke.UI.WebControls.CollectionEditorControl.AddEditorRow(Table& tbl, Object obj) at DotNetNuke.UI.WebControls.PropertyEditorControl.CreateEditor() at DotNetNuke.UI.WebControls.ProfileEditorControl.CreateEditor() at DotNetNuke.UI.WebControls.PropertyEditorControl.DataBind() at DotNetNuke.Modules.Admin.Users.Profile.DataBind() at DotNetNuke.Modules.Admin.Users.ManageUsers.ShowPanel() at DotNetNuke.Modules.Admin.Users.ManageUsers.cmdProfile_Click(Object sender, EventArgs e) at DotNetNuke.UI.WebControls.CommandButton.OnButtonClick(EventArgs e) at DotNetNuke.UI.WebControls.CommandButton.RaiseClick(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) === Pre-bind state information === LOG: User = NT AUTHORITY\NETWORK SERVICE LOG: DisplayName = DOTNETNUKE (Partial) LOG: Appbase = file://trumsoftsbs/Nuke5Share/ LOG: Initial PrivatePath = \\trumsoftsbs\Nuke5Share\bin Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: \\trumsoftsbs\Nuke5Share\web.config LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/cc2c2013/3febb07a/DOTNETNUKE.DLL. LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/cc2c2013/3febb07a/DOTNETNUKE/DOTNETNUKE.DLL. LOG: Attempting download of new URL file://trumsoftsbs/Nuke5Share/bin/DOTNETNUKE.DLL. ERR: A fatal error occurred when retrieving next codebase for download (hr = 0x80070005). --- End of inner exception stack trace ---
Source:
Server Name: WS2

 
New Post
3/9/2009 10:13 AM
 

Here is an update that may be relevent.

in my initial configuration, I had used one user id for the purpose of connecting to the database (id1) and another id (id2) to be the 'connect as' id and the id that is use to in the IIS worker pool.

I have made a configuration change so that I used id2 (via integrated security) to access the database.  So ID2 is the only id that is used for anything in my installation.  The probem seems to have gone away.

As I noted, I only got this exception when accessing custom user properties, so that's whats made me think the error was a bit of misdirection.  I suspect (but cannot prove) that there is a bug down in the data access layer, where credentials are not being applied properly.  What confuses me a bit on this, is that the problem seems to happen after some time passes.  Initially, things seem ok.

Very strange.

 
New Post
9/10/2009 11:32 AM
 

Geoff -

Did you ever come to a firm resolution on this issue? We are seeing this very thing consistently on our DNN 4.05 installation. I've edited the Security permissions on the windows\ms.net\...\Temporary ASP.NET Files\ folder and on the DOTNETNUKE.DLL itself, but the error is still happening.

Thanks!!

 
New Post
9/11/2009 11:15 PM
 

Yes and no.  I never bothered to chase the error in the source code, it's a pain to reproduce and would come and go.  I changed to the alternate web farm configuration, using DFS and the Broadcast polling provider.  This resolved the issue and improved performance.  However, the broadcast polling provider has been deprecated in the current community edition release.  There are a number of issues with the provider that don't affect me as I use DNN as an application platform, not for general hosting.

Sorry I don't have a better answer for you.

Jeff

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...getting exception accessing custom user profile properties (sometimes)getting exception accessing custom user profile properties (sometimes)


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