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 9222717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:53:59+00:00 2026-06-18T03:53:59+00:00

Possible Duplicate: Why can’t it find my BasicAuthenticationModule? I’m trying to create my own

  • 0

Possible Duplicate:
Why can’t it find my BasicAuthenticationModule?

I’m trying to create my own implementation of a basic-authentication.

I have BasicAuthenticationModule.cs stored in my solution\Modules and its namespace is:

namespace Web_API.Modules
{
    public class BasicAuthenticationModule : IHttpModule

Ive added it to my web.config as such:

  <system.webServer>
    <modules>
      <add name="MyBasicAuthenticationModule" type="Web_API.Modules.BasicAuthenticationModule, BasicAuthenticationModule" />

I get the following error when running this:

Server Error in '/' Application.

Could not load file or assembly 'BasicAuthenticationModule' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'BasicAuthenticationModule' or one of its dependencies. The system cannot find the file specified.

What am I doing wrong here?

  • 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-18T03:54:00+00:00Added an answer on June 18, 2026 at 3:54 am

    You seem to have specified wrong assembly name for your module. When you write:

    type="Web_API.Modules.BasicAuthenticationModule, BasicAuthenticationModule"
    

    this means to load a class called BasicAuthenticationModule inside an Web_API.Modules namespace within an assembly called BasicAuthenticationModule. Is the project in which you defined this class called BasicAuthenticationModule? I guess not. That’s why ASP.NET cannot load your module. You should specify the correct assembly name in which this module is defined.

    For example if your ASP.NET MVC application is called MvcAPplication1 the definition might look like this:

    type="Web_API.Modules.BasicAuthenticationModule, MvcApplication1"
    

    The format of the type attribute is like this:

    type="Namespace.ClassName, AssemblyName"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Where can I find facial detection software, algorithms, etc? Does anyone have
Possible Duplicate: GCC linker can’t find standard library? I am trying to mess with
Possible Duplicate: Operator[][] overload I've looked on the internet but can't find a definitive
Possible Duplicate: Best way to find Browser type & version? In HTML/JavaScript, How can
Possible Duplicate: Can I scroll a ScrollView programmatically in Android? I have a chat
Possible Duplicate: Can Read-Only Properties be Implemented in Pure JavaScript? I have an Object
Possible Duplicate: How can I find the method that called the current method? I'd
Possible Duplicate: Where can I find a Java decompiler? Hi, how to get the
Possible Duplicate: How can I find duplicate entries and delete the oldest ones in
Possible Duplicate: Eclipse can’t find the JDK or JRE I installed Eclipse Juno 64bit,

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.