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 ...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 10: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 11: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 8: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 2: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 11: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 DNN ...Installing DNN ...Could not load file or assembly Could not load file or assembly 'CountryListBox' or one of its dependencies. Access is denied


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