Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6146549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:57:55+00:00 2026-05-23T18:57:55+00:00

Setup: I am using MVC 3, EF 4.1, Visual Studio 2010 SP1 with Power

  • 0

Setup:

I am using MVC 3, EF 4.1, Visual Studio 2010 SP1 with Power Tools updated to latest version.

With the above installations, I don’t need the NuGet packages that were required previously. Everything is RTM.

The project has been upgraded from MVC 2 to MVC 3. I initially tried the upgrade tool, but that gave me grief, so I did it manually as per the instructions in the MVC 3 Read Me file.

Problem:

When trying to use the new scaffolding of controllers and views for CRUD functionality (against Code First DbContext), the scaffolding fails with the error:

Could not load file or assembly 'file:///C:\[PATH TO MY APP]\bin\Lanap.BotDetect.dll'
     or one of its dependencies. Operation is not supported. 
    (Exception from HRESULT: 0x80131515)

Question:

Lanap.BotDetect is a Captcha control. It works fine and is there, I use it in other pages no problems, the solution compiles, etc, etc. So there is no problem with this dll.

However, this error is stopping me using the new scaffolding capabilities.

I can’t see what it has to do with the scaffolding of a new controller and its views, so there must be some configuration that is wrong.

Any suggestions as to where I can look? Googling has drawn a blank.


EDIT 1:

I am trying to see the failed assembly binding using Fusion Log as suggested in a comment. No failed binding showing (but that might be my fault) but the question remains:

Why would MvcScaffolding NEED to load the Captcha .dll at all? It is just scaffolding a controller, and nothing in the T4 says anything about this .dll

(NOTE: I haven’t edited the scaffolding T4 code)

EDIT 2:

I tried removing the reference to Lanap.BotDetect, and the error changed to not being able to open the config file that has the connection strings (I shunt the connection strings out to a db.config string, just gives me less visual pain when looking at a config file).

I am giving up on scaffolding on this app. It works in clean, new apps, but not this one where there is a lot of pre existing code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:57:55+00:00Added an answer on May 23, 2026 at 6:57 pm

    So I know that you have moved on but I ran into the same problem and just found the solution. It turns out the error is due to the assembly not being trusted i.e. you downloaded it from the internet.

    You can right click the .dll and unblock it to fix the problem. For info on how to unblock see the following

    http://blogs.msdn.com/b/brada/archive/2009/12/11/visual-studio-project-sample-loading-error-assembly-could-not-be-loaded-and-will-be-ignored-could-not-load-file-or-assembly-or-one-of-its-dependencies-operation-is-not-supported-exception-from-hresult-0x80131515.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using Visual Studio 2010 and have created a 'ASP.NET MVC 3 Web
I have created a setup project using Visual Studio 2008. After the application is
I have created a custom dialog for Visual Studio Setup Project using the steps
I am using a regular Visual Studio Setup Project to deploy my ASP.NET application.
I have a small tabbed navigation setup using CSS. When hovering over the tabs
I'm trying to setup Spring using Hibernate and JPA, but when trying to persist
I am building a Setup Package using VS2008. This is a regular setup package
I've setup a static website on GAE using hints found elsewhere, but can't figure
i'm using vs installer to build a setup package for my vb6 app. and
The setup of my Windows Mobile app is created using VS2008. It contains a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.