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