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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:22:12+00:00 2026-06-07T18:22:12+00:00

i am getting error when building an ASP.net web-site: Identifier ‘__ASP’ is not CLS-compliant

  • 0

i am getting error when building an ASP.net web-site:

Identifier ‘__ASP’ is not CLS-compliant

Nowhere in my code is there the identifier __ASP.

i know why __ASP is not CLS-compliant (it starts with an _). What i need to figure out who is emitting it, and how either:

  • change it to not start with an underscore, or
  • make it private

i could also stop marking the assembly as CLSCompliant – but i’m not gonna

The warning does not list any useful file:

4d48b87d\63ccbbb9\App_Code.x0tl4q2v.49.cs line 15

Which is, obviously, not a file i created. How can i identify where this __ASP identifier is, and remove it, or make it private?


i’m not the only person experiencing __ASP problems:

  • Removing the “warning CS3008: Identifier ‘__ASP’ is not CLS-compliant” warning
  • warning CS3008: Identifier ‘__ASP’ is not CLS-compliant
  • 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-07T18:22:14+00:00Added an answer on June 7, 2026 at 6:22 pm

    The “__ASP” files are created by the runtime ASP.NET compiler that converts *.aspx, *.ascx, *.master files into .NET classes that derive from your CodeBehind classes (or in MVC, from your ViewPage classes). The compiler build system also compiles your App_Code files at runtime (as opposed to compiling them from within the IDE).

    However, you shouldn’t get CLS-compliancy messages in ASP.NET applications unless you’ve added the [CLSCompliant] attribute to your assembly somewhere. Do you have an AssemblyInfo.cs file, if so, where is it?

    EDIT:

    I just saw that you said your assembly is marked as CLSCompliant. Well, that’s your problem. You need to remove it because ASP.NET’s batch-compiled files are not compliant: they don’t need to be. Terminal assemblies (i.e. those not referenced by other assemblies, usually because they are the “application” assemblies) do not need to be CLSCompliant.

    Why do you say you’re “not gonna” remove the attribute? It isn’t inappropriate to not have it.

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

Sidebar

Related Questions

when I build Asp.net MVC Application in TFS Server. I am getting this error
i am getting weird python bus error when building a web app. http://pastie.org/714569 i
Building a simple asp.net web app just to test things out (will obviously refactor
I am building a class library, and I am getting an error and I
I am learning Spring and building a sample app. I am getting the error:
I have done simple java app for blackberry, while building am getting following error.
I am building mono (2.6.3) on Ubuntu 9.10 I am getting the following error:
I am getting following error while building my vc++ project (Using visual studio 2010)
When building my C++ program, I'm getting the error message undefined reference to 'vtable...
I'm getting this error when building a setup project for an outlook 2007 addin

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.