• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

CS0246 The type or namespace name 'DotNetNuke' could not be found

You are not authorized to post a reply.
Sort:
Page 1 of 212 > >>


New Member


Posts:5
New Member

    Hi. I'm trying to create new theme for DNN. I'm totally new to DNN and I was following these instructions: https://christoc.com/Tutorials/All-Tutorials/aid/8

    However when I pressed "build" it gave me error:

    Error    CS0246    The type or namespace name 'DotNetNuke' could not be found (are you missing a using directive or an assembly reference?)    ProjectName    C:\Websites\...\PopupSkin.ascx.cs    14    Active

    What am I doing wrong and how to fix it?

    P.S. DNN extension is installed in Visual Studio, I switched mode from debug to release. I'm using Windows 10, Visual Studio 2019, DNN 9.4.1. Full path to DNN website is "C:\Websites\first_dnn_website\dnndev.me".



    Veteran Member


    Posts:325
    Veteran Member

      You probably need to add a reference to the DotNetNuke.dll found in your installation's bin folder.
      Joe Craig
      DNN MVP
      Patapsco Research Group


      Basic Member


      Posts:27
      Basic Member

        My instructions are pretty specific about the paths to use. If you diverge from those paths, then references start to get funky
        Christoc.com Software Solutions
        DNN since before it was DNN!
        Open Source Projects and Tutorials since 2003


        New Member


        Posts:5
        New Member

          I tried to move it to "C:\Websites\dnndev.me" and update Visual Studio, but it didn't help.



          New Member


          Posts:5
          New Member

            Posted By Joe Craig on 13 Nov 2019 12:50 PM
            You probably need to add a reference to the DotNetNuke.dll found in your installation's bin folder.

            Didn't help.

             

             

            You are not authorized to post a reply.
            Page 1 of 212 > >>

            These Forums are dedicated to discussion of DNN Platform.

            For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

            1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
            2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
            3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
            4. No Flaming or Trolling.
            5. No Profanity, Racism, or Prejudice.
            6. Site Moderators have the final word on approving / removing a thread or post or comment.
            7. English language posting only, please.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved