Giter Site home page Giter Site logo

Error compiling about dnntemplates HOT 6 CLOSED

bhattjidotcom avatar bhattjidotcom commented on September 25, 2024
Error compiling

from dnntemplates.

Comments (6)

ChrisHammond avatar ChrisHammond commented on September 25, 2024

What is the path of your module on file system?

from dnntemplates.

bhattjidotcom avatar bhattjidotcom commented on September 25, 2024

Problem solved after updating the Nuget package manager

from dnntemplates.

bhattjidotcom avatar bhattjidotcom commented on September 25, 2024

Tried the SPA Module,

gettting errors

image

Severity Code Description Project File Line Suppression State
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 25 Active
Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 4 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 18 Active
Error CS0012 The type 'AuthorizationFilterAttribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 18 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 19 Active
Error CS0012 The type 'AuthorizationFilterAttribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 19 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 19 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 21 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 23 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 34 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 43 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 50 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 81 Active
Error CS0246 The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?) SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 81 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 82 Active
Error CS0012 The type 'AuthorizationFilterAttribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 82 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 83 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 83 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 98 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 98 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 116 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ItemController.cs 116 Active
Error CS0234 The type or namespace name 'Http' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\ServiceRouteMapper.cs 3 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\UserController.cs 11 Active
Error CS0012 The type 'AuthorizationFilterAttribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\UserController.cs 11 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\UserController.cs 12 Active
Error CS0012 The type 'AuthorizationFilterAttribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\UserController.cs 12 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\UserController.cs 12 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\UserController.cs 13 Active
Error CS0012 The type 'ApiController' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Services\UserController.cs 17 Active
Warning CS7035 The specified version string does not conform to the recommended format - major.minor.build.revision SpaDal2 C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2\Properties\AssemblyInfo.cs 34 Active
Warning Could not resolve this reference. Could not locate the assembly "System.Net.Http.Formatting". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. SpaDal2
Warning Could not resolve this reference. Could not locate the assembly "System.Web.Http". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. SpaDal2
Warning Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. SpaDal2
Warning The referenced component 'System.Net.Http.Formatting' could not be found. SpaDal2
Warning The referenced component 'System.Web.Http' could not be found. SpaDal2
Warning The referenced component 'System.Web.Http.WebHost' could not be found. SpaDal2

from dnntemplates.

ChrisHammond avatar ChrisHammond commented on September 25, 2024

Same question as before though.... What's your path? Looks like your references are all wrong

from dnntemplates.

bhattjidotcom avatar bhattjidotcom commented on September 25, 2024

Path of the Module is

C:\DNN\DnnDev\wwwroot\DesktopModules\MVC\SpaDal2

from dnntemplates.

ChrisHammond avatar ChrisHammond commented on September 25, 2024

The spa module should be one folder higher, all the paths to your reference are wrong because of that

from dnntemplates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.