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

  • SEARCH
  • Home
  • 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 9236351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:16:17+00:00 2026-06-18T07:16:17+00:00

I published my MVC 4 Razor application in IIS and I get this error

  • 0

I published my MVC 4 Razor application in IIS and I get this error when I browse the application.

"Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The system cannot find the file specified."

I’ve tried changing “false” to “true” in the Copy Local option from the MVC dll properties.

System.Web.Abstractions,
System.Web.Routing,
System.Web.MVC,
System.Web.Helpers,
System.Web.Razor

I’ve Uninstalled Nuget Packages related to DotNetOpenAuth.

I’ve used “Add Deployable Dependencies” choosing ASP.NET Web Pages with Razor syntax.

My Application is a typical MVC 4 project with 4 more Library Projects.

My IIS Configuration is the common. DefaultAppPool. Integrated Mode.

And When I Publish I choose FileSystem and the Target Location.

Hope somebody can help me as I’ve been dealing with this problem for some days.

EDIT

To Resolve this I had to delete the Microsoft.Web.WebPages.OnAuth dll generated in the Bin folder of the Published Files.

“DotNetOnAuth is an open source library that bring OpenID, OAuth, and ICard capabilities to the Microsoft .NET Framework.”

It seems that the library kept growing but .NET Framework is still referencing to the old 4.0.0.0 Version.

In my case deleting it solved the issue since I’m not using it.

But I don’t know what others should do if they are using the library. Maybe changing the referenced assembly version would solve it.

  • 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-06-18T07:16:18+00:00Added an answer on June 18, 2026 at 7:16 am

    Glad you solved it.

    I’ve seen this happen when deploying an MVC application as bin deploy. and selecting ASP .NET Webpages with Razor syntax in the Add deployable dependencies dialog box. This causes VS to add the references to Oauth.

    Usually, deleting the generated deployable bin folder and the App’s bin folder, and then cleaning and rebuilding the solution will fix the problem.

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

Sidebar

Related Questions

i have published asp.net mvc application on iis 6 on the server(windows server 2003)
When I published the asp.net mvc 3 application from visual studio 2010 to IIS
This is not an MVC topic. I have an ASP.NET Application which performs URL
The MvcApplication.Error event in my MVC application will not fire. I have the following
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I have a strange problem with my MVC 1.0 application that I published on
I just applied one account from asphostcentral then upload published asp.net mvc application on
I have published my MVC project to an an IIS 6 server. Running under
I have this ASP.NET MVC application that I now want to separate out the
I have an Asp.Net MVC application using Forms Authentication that is published to the

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.