TylerJPresley
TylerJPresley

Reputation: 489

Problem with DevExpress and just my machine

I can navigate to the class in intellisense in the CS. I know it's there. Just can't figure out why I'm getting this error. The project works fine on other peoples computers.

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'DevExpress.Web.ASPxClasses.StylesBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a'.

Source Error:

Line 224: 
Line 225: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 226: private void @__BuildControl__control2(DevExpress.Web.ASPxGridView.GridViewStyles @__ctrl) {
Line 227: 
Line 228: #line 33 "E:\...\page.aspx"


Source File: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\94947553\afb27c33\App_Web_pagemanager.aspx.8f36609.6x9twr-m.0.cs    Line: 226

Upvotes: 1

Views: 1413

Answers (2)

Scott Wylie
Scott Wylie

Reputation: 4735

Do you have this assembly reference in your project? And if you do is it the right version? or do you have Specific Version = True (if you don't have the exact version).

Compiler Error Message: CS0012: The type 'DevExpress.Web.ASPxClasses.StylesBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a'.

If you have have the reference and Specific Version = False it should work.

Upvotes: 1

Buh Buh
Buh Buh

Reputation: 7546

You sound like you might be in a situation I was in earlier this year, so I will tell you what worked for me:

Right click on your project in Solution Explorer and click on the Application tab. Check that your target framework is ".NET Framework 4" (or 3.5 etc.).

If it is targeting ".NET Framework 4 Client Profile" and the DevExpress assembily makes use of features not available to the cliet profile, then you find that your reference is ignored.

enter image description here

Upvotes: 0

Related Questions