HomeHomeGetting StartedGetting StartedInstalling DotN...Installing DotN...Could not load file or assembly Could not load file or assembly 'CountryListBox' or one of its dependencies. Access is denied
Previous
 
Next
New Post
5/17/2007 8:47 AM
 

Hi

I have just downloaded the source for DNN 4.5.1 to test against a development environment, and then upgrade my production 4.4.0 build of DNN.  The build is successful, but when I expect from a browser I get:

"Could not load file or assembly 'CountryListBox' or one of its dependencies. Access is denied. "

I then turned on bind logging and got:

=== Pre-bind state information ===
LOG: User = Unknown
LOG: DisplayName = CountryListBox
(Partial)
LOG: Appbase = file:///C:/workarea/projects/DNN/4.5.1/Website/
LOG: Initial PrivatePath = C:\workarea\projects\DNN\4.5.1\Website\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\workarea\projects\DNN\4.5.1\Website\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/dotnetnuke_2/3040c568/816aa8c2/CountryListBox.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/dotnetnuke_2/3040c568/816aa8c2/CountryListBox/CountryListBox.DLL.
LOG: Attempting download of new URL file:///C:/workarea/projects/DNN/4.5.1/Website/bin/CountryListBox.DLL.
LOG: Using application configuration file: C:\workarea\projects\DNN\4.5.1\Website\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).
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

Sadly I cannot use the precompiled binaries, and have to build these files.

I have Googled the problem and as a result, I have deleted the content of the "Temporary ASP.NET" folder, I have added permissions to various folders including the "Temp" directory.  I have become really stuck with this problem, and any help diagnosing the fault would really be useful here. 

Many Thanks in advance

 

Glen

 

 
New Post
5/17/2007 9:56 AM
 

I assume your using VS2005. Without of changing the configuration you can easily solve this problem. First clean your project the compile your DotNetNuke.Library first then DotNetNuke.Syndication. Either you can compile manually the CountryListBox (i think no errors shouldn't  be displayed now) or compile the complete project. 
Tell me if  it was sucessful.

Guy

 
New Post
5/18/2007 6:20 AM
 

Hi Guy

Thanks for your reply.  I followed your instructions and still got the error.  Interestingly when I build DNN as a debug build the error is reported in a web browser.   When I build DNN as a "Release" build I get the error in the VSS 2005 itself and the build fails.  Has anyone got an idea of the way forward.

 

Many Thanks

 

 

Glen

 
New Post
5/18/2007 12:08 PM
 

No, do it first as debug. You must forgotten a little detail - i had this problem on a production server during the upgrade from 4.4.0 to 4.5.1. Try again:  Clear your project, compile each subproject alone (first library, then syndication, WebUtility then CountryListBox then the rest) - the web project itself onlywhen the rest was sucessfull. When error occurs send me the significant output.

I'm sure we'll solve this!

 
New Post
5/23/2007 9:52 AM
 

Hi thanks for that.  Followed your instructions (including cleaning the build).  Then went to build the web site, and got the error

Error 1 Could not load file or assembly 'CountryListBox, Version=1.0.2182.20104, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.  

When I check the project dependencies I noticed that DotNetNuke.Library depends upon CountryListBox, DotNetNuke.Syndication, et al.  Wouldn't this mean by building the library first, that it would have to build CountryListBox first?

If you haven't got any ideas, I think I will start from scratch (and hope it doesn't happen again).

Thanks

 

Glen

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DotN...Installing DotN...Could not load file or assembly Could not load file or assembly 'CountryListBox' or one of its dependencies. Access is denied


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.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.