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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:59:29+00:00 2026-05-21T09:59:29+00:00

I have some general questions about web.config and how it works regarding assembly reference.

  • 0

I have some general questions about web.config and how it works regarding assembly reference. I’ve been playing around with the new Razor view engine and had some trouble getting it up and running.

My problem started with a general

The type or namespace name ‘XXXXX’
does not exist in the namespace
‘XXXXX’ (are you missing an assembly
reference?)

Now I figured this was just a simple Add Reference to the project and I’d be on my way. But even after I added a reference to the missing assembly, my project kept breaking.

I found the solution, and I had to add an assembly reference within the web.config. Once I did this everything worked fine.

First, I want to understand why it took adding a reference to web.config to fix this problem. Why wasn’t a project reference just good enough?

Second, when it comes to adding references in web.config, I would like to understand the syntax. When I see markup like this

<add assembly="System.Web.WebPages" />

it seems very clear to me that I’m adding an assembly named System.Web.WebPages. But the full syntax in my web.config is

<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

Version seems self explanatory, but what is culture and PublicKeyToken used for? Are they required? What happens if I don’t know either of them, can I just put anything in?

  • 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-21T09:59:30+00:00Added an answer on May 21, 2026 at 9:59 am

    Answering your first question:

    There’s another SO question here with a useful answer:

    What is difference between web.config assemblies element and project file Reference element

    Essentially it is to do with differences between Web Projects and non-web projects in Visual Studio (as I understand it).

    Answering your second question:

    This took quite a bit of digging around but here you go:

    Culture – most assemblies should be culture neutral (assuming this is set in the application). However if you do have culture sensitive assemblies then this is where you specify the culture of the assembly.

    PublicKeyToken – this is the public key from the public/private key pair that was used to sign the assembly. Having this enables .NET to verify that the assembly it is loading is the correct one.

    More useful information here:

    http://en.wikipedia.org/wiki/.NET_assembly

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

Sidebar

Related Questions

I understand that some countries have laws regarding website accessibility. In general, what are
I have some questions about using MySQLi queries, and related memory management. Suppose I
I am still learning to use MVVM and Prism and have some general questions:
I have some questions about building reports in Report builder 3.0 OR SQL Server
I have some questions about the concept of static polymporhism I somethimes hear about;
I have some code that generates image of a pie chart. It's a general
I have to give a general note to some huge Java project for which
I've done some research into server push with javascript and have found the general
I have some ASP.NET web services which all share a common helper class they
I'm thinking about trying MongoDB to use for storing our stats but have some

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.