web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Best practice compilation with C#

(0) ShareShare
ReportReport
Posted on by

Hello,

I have C# integrated with Dynamics AX.

When compiling best practice (level 4),

I see a message:

CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

That's happens, even the C# project is compiled.

In C# project, I am working with .net framework 4.0.

In AX, the System.Web reference declared as:

System.Web, Version 2.0.0.0, culture = natural, pubickeytoken=b03f5f711d50a3a

 

What may be the reason I cannot compile with best-practice (level 4 compilation)?

 

Thanks :)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    you'll need the Microsoft ASP.NET Web Optimization Framework.

    also helpful: remove all references to assemblies in the project and re-create them.

  • Community Member Profile Picture
    on at

    Is it OK i use framework 4, and what is asp.net web optimization framework, and what shall I do to use it?

    Thanks :)

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    .net 4 is ok. you can download this additional framework from aspnetoptimization.codeplex.com/.../118350

  • Community Member Profile Picture
    on at

    In the link there is no download available.

    I have installed MVC4, and that's why I think there is the asp.net web optimization.

    I have looked in google: asp.net web optimization framework, found power-shell to install (www.nuget.org/.../Microsoft.AspNet.Web.Optimization), but it's new to me, and I am not using power-shell.

    Thanks :)

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    you need to install .net 4.5 and the nuget package manager first, then follow

    www.codeproject.com/.../ASP-NET-Web-Optimization-Framework

    nuget:

    docs.nuget.org/.../installing-nuget

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans