Giter Site home page Giter Site logo

chrishammond / dnntemplates Goto Github PK

View Code? Open in Web Editor NEW
97.0 97.0 38.0 54.9 MB

Christoc's DotNetNuke Extension Development templates for Visual Studio

Home Page: http://www.christoc.com/Products/DNN-Development-Templates

License: Other

C# 52.81% CSS 4.60% JavaScript 3.47% HTML 3.28% Visual Basic .NET 27.16% ASP.NET 8.67%

dnntemplates's Introduction

SpaceX Falcon 9 Launch February 2024

Hi there ๐Ÿ‘‹ I am Chris Hammond

About Me

I live in Wildwood, Missouri and I like to build things. I've got sites all over the internet, but the best place to read more about me is likely over on About Chris Hammond

Other Things

  • ๐Ÿ”ญ Iโ€™m building things, primarily using #Jekyll these days
  • ๐ŸŒฑ Iโ€™m currently working with AU
  • ๐Ÿ“ท I am the photographyer behind RainbowMarks Photography
  • ๐Ÿ“ซ How to reach me: @christoc on Twitter (x)
  • โšก Fun fact: I collect domain names and hobbies....

Past Things

  • DNN is how everything started for me. Okay, maybe not everything, but I am what I am because of that platform and all that it brought me, from technical knowledge, to friends.
  • Netduino was something I dabbled in a bit, over a decade ago now (what?)
  • Cars are still a big part, so not sure why I list them as PAST here.

dnntemplates's People

Contributors

augustkarlstedt avatar chrishammond avatar dependabot[bot] avatar karthikeyanmlp avatar swalker1595 avatar willstrohl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnntemplates's Issues

Some errors on Views about Html helper

I've installed and all work fine, I'm able to debug without problem but I can see some Html helper errors opening view files on VS2015, see the image:
screenshotchrishammondtemplate
In other views there are errors on other html helper but with same error message.
I've tried to add the rerquested reference but it could not be added because already automatically referenced by the build system.
Any idea to fix it?

Multiple MVC Modules on the same page

If you have multiple MVC modules on a page you get an error similar to

[L]Error: TestMVC1026 is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The model item passed into the dictionary is of type 'System.Collections.Generic.List1[Christoc.Modules.TestMVC1026.Models.Item]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable1[Christoc.Modules.TestMVCApril.Models.Item]'. ---> System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List1[Christoc.Modules.TestMVC1026.Models.Item]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable1[Christoc.Modules.TestMVCApril.Models.Item]'. at System.Web.Mvc.ViewDataDictionary1.SetModel(Object value) at System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) at System.Web.Mvc.WebViewPage1.SetViewData(ViewDataDictionary viewData) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at DotNetNuke.Web.Mvc.Framework.ActionResults.DnnViewResult.ExecuteResult(ControllerContext context, TextWriter writer) at DotNetNuke.Web.Mvc.Framework.Modules.ModuleExecutionEngine.ExecuteModuleResult(ModuleRequestResult moduleResult, TextWriter writer) at DotNetNuke.Web.Mvc.MvcHostControl.RenderModule(ModuleRequestResult moduleResult) at DotNetNuke.Web.Mvc.MvcHostControl.OnLoad(EventArgs e) --- End of inner exception stack trace ---

New intellisense issue on MVC module template

Hi Chris,
a lot of intellisense issue are solved with latest 7.1 release but now they have come out of new!

screenshot1

screenshot2

but are you able to see them? or these issues affect only me?
Very thanks for the very fast response!

renaming a project created using the template can't find manifest file

Hi

I have a project I created using the template. I wanted to clone this to modify for a different version.
So I copied the project to a new location and renamed everything. However, when I build I get this error:

Could not find file 'C:\Work\dnndev.me\DesktopModules\qAdsSearchTodos\qAdsSearch.dnn'.

It's looking for the old project name and not the new one for the manifest file.

But I cannot find anywhere that this manifest file is named. I can only guess that it gets compiled into a DLL when the project is first built from the template? But that doesn't seem at all sensible.

Is there any way around this issue? Perhaps edit this line to hard code it in ModulePackage.Targets?

XmlFileName="$(DNNFileName).dnn

Gus

Login link not working

Hi,

Just tried to generate a Skin using these templates in VS2015 for DNN 8.0.3 but it seems like the "login" link:

                <dnn:LOGIN ID="dnnLogin" CssClass="LoginLink" runat="server" LegacyMode="false"/>

Isn't showing up properly even in an unmodified skin (installed correctly via host). Other stuff seem to work though. Any ideas?

Template probably doesn't work on DNN 8

Hello,

I tried run my project on DNN 8 and I have some errors type:

The type or namespace name '*' does not exist in the namespace 'DotNetNuke'

Where * is for example: entities, UI, Security etc.

I tried it on 7.4.2 and don't have problems with run.
Whether it's my fault or the template is not for Version 8?

====== EDIT
Probably my problem was target framework. I changed it to 4.5 from 4.0. After it can I use this module in 7 version?

====== EDIT 2
Problem still exist but only in *.ascx files, but I can compile module.

The type or namespace name 'DotNetNuke' could not be found (are you missing a using directive or an assembly reference?)

Template doesn't work with Visual Studio 2015

Hello again,
I'm sorry that I write again in the same case, but quickly closed the my topic. I have problem with run DNN template on Visual Studio 2015. (dnn7 and dnn8)

I get the message from VS:

The type or namespace name 'DotNetNuke' could nt be found...

This error display on all *.ascx files (not ascx.cs). I can compile project, I can install but Intellisense still show me red color errors.

Configuration app looks ok, I tried add/remove dotnetnuke references, tried change .NET Framework target. Always the same. I tried run project with VS 2013 and all looks ok. Problem is with old projects and new from template or it may be a problem with the configuration of the server?

My problem is similar to this: http://forums.ext.net/showthread.php?60405-CLOSED-Ext-Net-and-a-DotNetNuke-Module-Solution

using dojo AMD in SPA development

I am building a Map module using esri js api, which is built on dojo js framework (AMD), I get error : multidefine since the dojo loader is unable to load jQuery and KO libs, which are already loaded into the DNN page's script tags.
Can you please let me know how I can work with AMD library and dojo loader with the SPA template

MSBuild.Community.Tasks.XmlRead task could not be loaded from the assembly

I have the newest version installed (1.4.0.128) and I've modified the MSBuild.Community.Tasks.targets MSBuildCommunityTasksLib property to point to the correct folder, but I still get the following error when I try to build the project:

The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly
C:\inetpub\wwwroot\dnndev.me\DesktopModules\Statlant_DNN_Module\packages\MSBuildTasks.1.4.0.128\tools\MSBuild.Community.Tasks.dll.
Could not load file or assembly 'file:///C:\inetpub\wwwroot\dnndev.me\DesktopModules\Statlant_DNN_Module\packages\MSBuildTasks.1.4.0.128\tools\MSBuild.Community.Tasks.dll'
or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are
available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Am I missing something, or have I done something incorrectly?

Adding additional DLLs to be included during installation

I tried to following this guide: https://www.chrishammond.com/Blog/itemid/2053/including-additional-dllrsquos-in-an-msbuild-scr but was unsuccessful in packaging the additional DLLs for installation.

I added two lines to the ModulePackage.targets file:

    <Copy SourceFiles="$(MSBuildDnnBinPath)\$(AssemblyName).dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
    <Copy SourceFiles="$(MSBuildDnnBinPath)\Microsoft.SharePoint.Client.dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
    <Copy SourceFiles="$(MSBuildDnnBinPath)\Microsoft.SharePoint.Client.Runtime.dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>

And the following lines to my .dnn file:

    <assembly>
      <name>Microsoft.SharePoint.Client.dll</name>
    </assembly>
    <assembly>
      <name>Microsoft.SharePoint.Client.Runtime.dll</name>
    </assembly>

However the install.zip file does not contain either DLL.

Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)

I created a DNN module using the template V5, I deleted all things in the module which needed Database, I need to create a grid view depending on Stored procedure, so, I deleted all files but skipped the following before start coding
91

When I build it and install it no problems, But when I add the module to the page the module doesn't appears on the page, I saw the following error from Event Viewer

AbsoluteURL:
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:345e0e42-0a77-4ba7-b367-5b0af2b8f84a
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:p8RIg/GOUntOzmRWQ/by2A==
Message:Lock obtain timed out: NativeFSLock@C:\inetpub\wwwroot\moheportal_uptodate\App_Data\Search\write.lock
StackTrace:
at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, IndexDeletionPolicy deletionPolicy, Int32 maxFieldLength, IndexingChain indexingChain, IndexCommit commit)
at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, MaxFieldLength mfl)
at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.get_Writer()
at DotNetNuke.Services.Search.Internals.LuceneControllerImpl.Delete(Query query)
at DotNetNuke.Services.Search.Internals.InternalSearchControllerImpl.DeleteSearchDocumentInternal(SearchDocument searchDocument, Boolean autoCommit)
at DotNetNuke.Services.Search.SearchEngine.DeleteRemovedObjects()
at DotNetNuke.Services.Search.SearchEngineScheduler.DoWork()
InnerMessage:
InnerStackTrace:
Source:Lucene.Net
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name: cid-mah

Creates IIS virtual directories

When doing the initial build, this created virtual directories in IIS for my application in my Desktop Modules folder. I was getting an error when trying to run my site until I removed those virtual directories. Then everything worked splendidly.

image

image

Allow a different default namespace for skins vs modules.

I would like to have a different default root namespace when using the theme template vs using the module template. For example, when creating a new module, Iโ€™d like the namespace to be: Walker.Dnn.Modules. When creating a theme I would like the default root namespace to be Walker.Dnn.Skins.

Do you know of anyway that we can detect the template type in the Project Setup Wizard?

Will not install on VS 2017

VS 2017 Community is installed on this PC but the template installer does not think so:

23/03/2017 08:36:30 - Searching for applicable products...
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio Premium 2012
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio Professional 2012
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio 2012 Shell (Integrated)
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio Professional 2013
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio 2013 Shell (Integrated)
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio Enterprise 2015
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio Professional 2015
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio Community 2015
23/03/2017 08:36:32 - Found installed product - Microsoft Visual Studio 2015 Shell (Integrated)
23/03/2017 08:36:32 - Found installed product - Global Location
23/03/2017 08:36:32 - Found installed product - ssms
23/03/2017 08:36:32 - Found installed product - ssms
23/03/2017 08:36:32 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
at VSIXInstaller.App.InitializeInstall()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

Can't drop from toolbox

Hi! I've been using your DNN templates for a while. They are awesome, I must say. Lately, I've been having an issue with both the 2017 and 2019 templates with new projects that are created (existing projects do not seem to have this issue). And the issue persists on two separate computers using these templates. The issue: Once I create the DNN project module template, I can't drag any items from my toolbox to the design or source tabs. Its the strangest thing Ive ever seen. All of the controls (with the exception of the HTML controls) refuse to drop on to the page. And its only with these templates. Have you seen this before? i tried repairing VS with no luck. Im baffled.

Intellisense issue on MVC module template

Your template is great and work fine, I'm able to install execute and debug the source code but opening .cshtml files I receive a lot of intellisense errors due to the fact in the first line the @model is not recognized.
screenshot

What could be the reason? how could I do to fix?
Very thanks!

The controller for path '/DNN/Default.aspx' was not found or does not implement IController.

I'm running DNN 9.3.2 and have received the following error when attempting to browse a page in my DNN site that contains a custom module:
The controller for path '/DNN/Default.aspx' was not found or does not implement IController.
System.Web.HttpException: The controller for path '/DNN/Default.aspx' was not found or does not implement IController. at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at DotNetNuke.Web.Mvc.Framework.Modules.ModuleApplication.ExecuteRequest(ModuleRequestContext context) at DotNetNuke.Web.Mvc.MvcHostControl.ExecuteModule() --- End of inner exception stack trace ---

My local IIS is pointed to c:\dnndev.me and the new module is located in DesktopModules\MVC. I use Visual Studio 2019 Professional to develop, build and package the module.

How do I resolve this error?

Error: Tasklist is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Type

hi
i installed dnn 8.0.2 and christoctemplate and works visual 2015
but when debug and check show this error

please help me

thanks

Error: Tasklist is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Type 'ASP._Page_DesktopModules_MVC_Tasklist_Views__ViewStart_cshtml' does not inherit from 'System.Web.WebPages.StartPage'. ---> System.Web.HttpException: Type 'ASP._Page_DesktopModules_MVC_Tasklist_Views__ViewStart_cshtml' does not inherit from 'System.Web.WebPages.StartPage'. at System.Web.UI.Util.CheckAssignableType(Type baseType, Type type) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) at System.Web.WebPages.BuildManagerWrapper.CreateInstanceOfType[T](String virtualPath) at System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType[T](String virtualPath) at System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, IVirtualPathFactory virtualPathFactory, String appDomainAppVirtualPath, String fileName, IEnumerable1 supportedExtensions) at System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, String fileName, IEnumerable1 supportedExtensions) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at DotNetNuke.Web.Mvc.Framework.ActionResults.DnnViewResult.ExecuteResult(ControllerContext context, TextWriter writer) at DotNetNuke.Web.Mvc.MvcHostControl.RenderModule(ModuleRequestResult moduleResult) at DotNetNuke.Web.Mvc.MvcHostControl.OnLoad(EventArgs e) --- End of inner exception stack trace ---

Cannot find the DNN 8 VB Template for 2015

Sorry to put this here, but after two months of trying to find this on and off, by myself I give up. Whenever I download the template vsix files, I get DNN 7 and 8 DAL2 for CSHARP, but only DNN 7 DAL2 for VB.

Can someone please point me to the DNN 8 DAL2 VB vsix template? When attempting to use the current version (yes I just updated yet again) for a DNN 8 VB project, I get all kinds of errors with incompatibility with DNN libraries. In other words template lib != dnn 8 libs.

I see that on the dnn forums someone else has asked this question, but rec'd a standard reply/non-reply, assuming that the DNN 8 vb template is in the releases, and I don't see it anywhere.

Please help...

Skin Objects

Do you know if there's a way to create skin objects with an MVC module?

DNN8 MVC Template Issue

Trying to create an VMC module for DDN8 but getting this error:


Microsoft Visual Studio

Unable to copy the file 'Settings.Designer.cs' from the project template to the project. Cannot find file "C:\Users\AhmadSalem\AppData\Local\Temp\ahgscyrw.vvi\Temp\App_LocalResources\Settings.Designer.cs".

The Web server xx could not be found.

I've set up a fairly new (originally DNN v8.x, upgraded to DNN 9.1) instance of DNN that runs fine locally at http://dnndev.me/. I even moved the physical directory to c:/websites/dnndev.me in case that helped. It didn't. I've reread the old & current install instructions a few times.

I still get this error repeatedly - though the new DAL2 MVC module directory is created and populated:
5-19-2017 at 11 47 05 am

The only issues I can think of:

  • I'm running Windows 10 Pro and enabled the native IIS. (Is this the same as IIS Express?)
  • I'm running Visual Stuidio 2017 Enterprise Edition. There was an old note mentioning the VSIX files might only run on Visual Studio Express? I've uninstalled and reinstalled the VSIX files from within Visual Studio - i.e., NOT using the ones from this GitHub repository.

What else can I look for or try?

Thanks!

MVC Intellisense Issues

Hello @ChrisHammond, I had a question. I am wondering why the razor intellisense only works when you have the vs solution within the dnn desktop modules folder. I have all the same references added to my project. I am not a fan of adding the solution right within the dnn folder structure. I like to structure my projects differently as I have many modules for many different customers, etc. Plus I like using the nuget package for dnn so I can build against different versions. If anyone has ideas that would be great!

Thanks

image

image

theme structure.

Hello guys!

I am trying to use this perfect templates to create my own theme, but I can't understand what is bootstrapNav and how can I customize xml manifest file.

Does someone have answers on my questions?

Thank you)

SPA settings issue

Thanks for your work Chris.
I recently found an issue in the SPA module template within the Settings.html file. Specifically, the JS script embedded in that page, which initializes the Quick Settings save/cancel button click events, is being wrapped in an IIFE causing the click handlers not to be wired correctly. (At least that's my diagnosis). The correction I made was to change the script in Settings.html to align with how those functions are being kicked off in View.html and Edit.html. Namely, making this function fire when the complete DOM has loaded vs. when the parser encounters the script. The group over at GitHub DNNSoftware, have done the same:

https://github.com/dnnsoftware/DNN.Templates/blob/master/src/DnnSpaModule/Settings.html

Installer package created from template fails to install

Great templates! But I'm having a problem getting it to package dependency assemblies. The module .dnn file lists all of the assemblies my module needs in the component/assemblies section, but they are not being included in the install.zip. Do I need to modify the templates themselves so that dependencies are packaged, or have I missed a configuration elsewhere?

Are we going to wait for DNN 8 support

Hello Chris,
First at all thanks on all great stuff you made in past years.
I know that You are in different flows now.

Are you planning any soon to upgrade Your templates to support developing modules in DNN 8
using MVC framework ?

Intellisense Issue in MVC Templates

When using the DnnHtmlHelper Expressions, Visual Studio throws the exception:

"The type 'Expression<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."

For example:

@Html.TextBoxFor(m => Model.DisplayTime)

Although a reference to System.Core already exist in the project.

As a work around, I copied the System.Core.dll into the DNNPlatform /bin/ folder. Is there a better way of handling this?

Cannot migrate project file in Visual Studio 2015 Community

When trying to create a new project using the DAL2 SPA Module template, I receive this error:

screenshot 2016-07-01 11 40 42

The project does not open, but exists in the correct location and can be opened.

The project then refuses to build, with the following output:

1>  Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "6.0.0.0" [] to Version "7.0.0.0" [C:\websites\dnndev.me\bin\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /></dependentAssembly></assemblyBinding>
1>C:\websites\dnndev.me\DesktopModules\SPATime\Properties\AssemblyInfo.cs(34,32,34,44): warning CS7035: The specified version string does not conform to the recommended format - major.minor.build.revision
1>  SPATime -> C:\websites\dnndev.me\bin\SPATime.dll
1>C:\websites\dnndev.me\DesktopModules\SPATime\BuildScripts\ModulePackage.Targets(9,5): error MSB4062: The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly C:\websites\dnndev.me\DesktopModules\SPATime\BuildScripts\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file:///C:\websites\dnndev.me\DesktopModules\SPATime\BuildScripts\MSBuild.Community.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm following the tutorial here: https://youtu.be/dpiOs_EL-OY

I have Visual Studio 2015 Community Edition, running on Windows 10 Home. My DNN installation is running fine at dnndev.me with the recommended folder location of C:\websites\dnndev.me

MVC Template doesn't install with Visual Studio 2015 Express

While installing the Template we getting following Error message.

Installation Failed: This extension is not installable on any currently installed products.

Supported Products :
Microsoft.VisualStudio.Community
Version : [14.0,15.0)

Searching for applicable products...
Found installed product - Microsoft Visual Studio Express 2013 for Web
Found installed product - Microsoft Visual Studio Express 2015 for Web
Found installed product - Global Location
Found installed product - ssms
VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
at VSIXInstaller.App.InitializeInstall()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

Module references physical path at development & not the virtual path

Hi All

I have created a MVC Module using Christoc's latest templates. It all works fine, but the there is one very big issue (may be a bug)

It has cached the physical path where I had first time created the Module, and keeps referencing that path even if I install the module anywhere :(

I had created the Module at C:\WebSites\DnnDev\wwwroot\DesktopModules\MVC\MvcXYZ

and installed at http://dnn9.dnndev.me/Testimonial/MvcXYZ (physical folder at C:\WebSites\DNN9\wwwroot\DesktopModules\MVC\MvcXYZ)

Now, when I run the App, it looks for the files (all .cshtml and .resx file) at C:\WebSites\DnnDev\wwwroot\DesktopModules\MVC\MvcXYZ and not at ~/DesktopModules/MVC/MvcXYZ :(

What could be the issue? How to solve this? Please help

Latest version of MSBUILDTASK cause error at compilation

Hello,
I just installed your template for VS2017.
I create a new module.
I can compile perfectly
In csproj, the end the file:

  <PropertyGroup>
    <Extension>zip</Extension>
    <DNNFileName>DNNModuleTest</DNNFileName>
    <PackageName>DNNModuleTest</PackageName>
  </PropertyGroup>
  <Import Project="BuildScripts\ModulePackage.Targets" />
  <Target Name="AfterBuild" DependsOnTargets="PackageModule">
  </Target>
</Project>

in package.config, the following line:
<package id="MSBuildTasks" version="1.5.0.235" targetFramework="net45" developmentDependency="true" />

Then, I execute the command in package.console:
update-package MSBuildTasks -reinstall to force the right target

MSBuildTasks remains the same version but the target is: "net451"
now the package.config contains:
<package id="MSBuildTasks" version="1.5.0.235" targetFramework="net451" developmentDependency="true" />

now, the csproj has been modified to become:

 <PropertyGroup>
    <Extension>zip</Extension>
    <DNNFileName>DNNModuleTest</DNNFileName>
    <PackageName>DNNModuleTest</PackageName>
  </PropertyGroup>
  <Import Project="BuildScripts\ModulePackage.Targets" />
  <Target Name="AfterBuild" DependsOnTargets="PackageModule">
  </Target>
  <Import Project="..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets" Condition="Exists('..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" />
  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
    <PropertyGroup>
      <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
    </PropertyGroup>
    <Error Condition="!Exists('..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets'))" />
  </Target>
</Project>

When I compile then, I got following error:

Severity	Code	Description	Project	File	Line	Suppression State
Error		The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly q:\Websites\Modules\CNoteV1\DNNModuleTest\BuildScripts\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file:///q:\Websites\Modules\CNoteV1\DNNModuleTest\BuildScripts\MSBuild.Community.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.	DNNModuleTest	

I check the MSBuild.Community.Tasks.Targets file in BuildScript folder and the MSBuildTasks package folder, and there are not identical:

the one from package:
msbuildtask_01

The one from module project:
msbuildtask_02

The content lines are different too inside the <usingtask, not all files exist in the 2 files.

I tried to copy the one new one inside the project but the error persists.

I spent long hours reading forum articles and trying everything and finally the only way to compile is to remove manually the lines inside the .csproj to revert as the original template.

It could be great in future version of the template to support latest version of dependency nuget package.

Thanks in advance and thanks for your support
-Vince

SPA module template and (standard) Module settings

I used SPA template to create new module and it was created and build fine.
But when enter the settings of the module there are only standard tabs: module settings, permissions and page settings. But template project contains the 'Settings.html'.
Manifest also contains it. If I change in manifest 'Settings' to 'QuickSettings' it works but how to make standard settings?

DAL2 MVC Template not working

I have tried the latest versions of MVC templates on VS2017 Community and VS2015 Pro both giving me these errors when I place the module into a page:

Error: DNNModule1 is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Attempt by method 'Christoc.Modules.DNNModule1.Controllers.ItemController.Index()' to access method 'System.Web.Mvc.Controller.View(System.Object)' failed. ---> System.MethodAccessException: Attempt by method 'Christoc.Modules.DNNModule1.Controllers.ItemController.Index()' to access method 'System.Web.Mvc.Controller.View(System.Object)' failed. at Christoc.Modules.DNNModule1.Controllers.ItemController.Index() in C:\websites\dnndev.me\dnn8\DesktopModules\MVC\DNNModule1\Controllers\ItemController.cs:line 84 at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.b__12() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at DotNetNuke.Web.Mvc.Framework.Modules.ModuleApplication.ExecuteRequest(ModuleRequestContext context) at DotNetNuke.Web.Mvc.MvcHostControl.ExecuteModule() --- End of inner exception stack trace ---

and:

An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Modules.ModuleInstanceContext.LoadActions(HttpRequest request) at DotNetNuke.UI.Modules.ModuleInstanceContext.get_Actions() at DotNetNuke.UI.Containers.ActionBase.OnLoad(EventArgs e) --- End of inner exception stack trace ---

Am I missing something, I've already spent 4 days trying to figure this out.
TIA

2019 VSIX

Where is the DNN C# module file for 2019 from the latest VSIX? I do not see the compiled c# module for 2019..only 2017.

qq

Still getting warnings when using spa template...

Hey Chris:

I had thought the issue might have something to do with the 8.00RC version of DNN I was using, so I went and made a clean install of 8.0.3.

However, I still get these warnings. I really hate working with any errors or warnings, and I would normally just fix this myself, but I can't find anything on the web that addresses what appears to be going on.

  1. The specified version string does not conform to the recommended format. I have zero clue why I am getting this, since the default format you have appears correct, but this is two separate version of dnn now and same message. Any ideas?
  2. I am getting a 'found conflict between separate versions of the same dependent assembly' warning, which needs to be addressed, or nothing will work. Here's the specific error:

Severity Code Description Project File Line Suppression State
Warning Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:

I have no clue here either, since I am using the spa template and have done nothing. The JSON dll is version 7.0, as the above message states, and I can find no other version around, so I don't know how to fix this. Do I have an old version of the template? I know the whole spa 8 thing is really recent, but it's exactly how I want to build modules, since it uses as little of microsoft propietary stuff as possible (and after 25+ years of using Microsoft, I am finally smart enough to not lock myself in to things like 'asp code', etc.., that will just be changed at some point in the future. At least with html/javascript/web api/and c# I know those will be supported years from now...)

Thanks for any help/comments...

I also have a question I can't find answered anywhere. In a previous version of your tutorials, you recommended putting the 'services' folder off the desktop modules. Now, I see you embed it inside a module folder. How does one go about setting the web service up? Do I need to create a web application still? I can't find anything on this at all...kinda hard to get started if I can't get the service going...Is this now handled by DNN 8 or something? Is that why it isn't mentioned at all?

Oh, and just to be clear, I am using the DNN 8 SPA module template, DNN 8.0.3, and created the module project in the desktopmodules/ folder. Am using latest IIS and the website shows up fine...just need to fix the above issues somehow...

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.