Quantcast
Channel: Christoc's DotNetNuke Module and Theme Development Template
Viewing all 485 articles
Browse latest View live

New Post: LocalizeString is not declared

$
0
0
Looking at my ObjectBrowser I can't find LocalizeString method in DotNetNuke.Services.Localization.
It is an inheritance of ModuleSettingsBase
The problem is that for some reason it is accessible from code behind but not directly by ascx
Any idea to solve?

New Post: get menu item on runtime using C#

$
0
0
Hi,
I am new in DNN and developing modules. I want to get on runtime the selected menu item and display the right form/user control(ascx) .

Say I have the following menu layout.
Menu1 Menu2
SubM11 SubM21
SubM12

Question: how can I detect that the user select Menu1 or SubM2 for example in codebehind using C#. Then I can display the right form/usercontrol (ascx)

I have searched but cannot find an answer.

Regards,

henk

New Post: IIS virtual directory error ...

New Post: Unable to load module.css file

Reviewed: DNN 7 Project Templates V3 for VS2013 (Aug 25, 2014)

$
0
0
Rated 1 Stars (out of 5) - dotnetnuke project template not working on vs 2013, when create project, it not add project

New Post: Installed module and get error unable to load View.ascx

$
0
0
I was having a similar issue with the module icons on my custom modules not showing up. That, in fact, was the problem. Visual studio had marked my DesktopModules folder as an application in IIS. I simply had to remove it from IIS to get them to work.

New Post: Toolbox controls not working with template

$
0
0
I have installed this template, and have a build that compiles, but am unable to drag and drop a control from the toolbox into Settings.ascx or any other file. In design mode, the controls show up with:

Error Creating Control - lblSetting1
Error HRESULT E_FAIL has been returned from a call to a COM component.

I can create a different project without this template (just an ASP.NET Webforms project) and it works fine.

Doesn't work in source or design mode. Any thoughts or fixes are appreciated.

Microsoft Visual Studio Professional 2013
(Same issue on Microsoft Visual Studio 2013 for web)
Windows 7 Professional
IIS
Using the setup instructions for dnndev.me

New Post: Error HRESULT E_FAIL

$
0
0
thank you very much . THE ISSUE IS RESOLVED .
But it gave me an 47 error in the reference

Error 3 The type or namespace name 'DotNetNuke' could not be found (are you missing a using directive or an assembly reference?) D:\ayman\Web Sites\DNN_GBN\DesktopModules\NewsletterSubscription\NewsletterSubscriptionModuleSettingsBase.cs 13 7 NewsletterSubscription




the behind code:
/*
' Copyright (c) 2014 GBNEgypt
' All rights reserved.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
' DEALINGS IN THE SOFTWARE.
'
*/

using DotNetNuke.Entities.Modules;

namespace GBN.Modules.NewsletterSubscription
{
public class NewsletterSubscriptionModuleSettingsBase : ModuleSettingsBase
{
}
}

New Post: Error HRESULT E_FAIL

$
0
0
so sorry .
the error now is

Error 1 The name 'ClientAPI' does not exist in the current context

ClientAPI.AddButtonConfirm(lnkDelete, Localization.GetString("ConfirmDelete", LocalResourceFile));

New Post: Error when NuGet Packages are added to project

$
0
0
I have a class library that I added to the C# compiled template. It requires the Entity Framework and Json.NET NuGet packages.

When I add the packages to the main project and then build in release, it breaks the whole site and I get the following errors right in the url..

"dnndev.me/Default.aspx?tabid=55&error=Could+not+load+file+or+assembly+%27Newtonsoft.Json%2c+Version%3d4.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d30ad4fe6b2a6aeed%27+or+one+of+its+dependencies.+The+located+assembly%27s+manifest+definition+does+not+match+the+assembly+reference.+(Exception+from+HRESULT%3a+0x80131040)&content=0"

Any idea what may be causing this? Do I need to add the packages to the build scripts as I did for the class library? Thanks ahead!

EDIT: I added the dlls for the NugetPackages to the build script, as well as the .dnn file... still get the error.

New Post: Error when NuGet Packages are added to project

$
0
0
As we discussed in www.dnnchat.com this is likely related to a newer version of the newtonsoft DLL being included, and DNN requiring a specific version of that assembly.

New Post: Error when NuGet Packages are added to project

$
0
0

That was it, Chris. I referenced the DNN version of Json.NET instead of through NuGet and it worked. Thanks again for the help!

New Post: Issue in creating package from Release mode with latest release (3.0) of DAL 2 template

$
0
0
The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly C:\inetpub\wwwroot\DesktopModules\DNNModule1\packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file:///C:\inetpub\wwwroot\DesktopModules\DNNModule1\packages\MSBuildTasks.1.4.0.74\tools\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. DNNModule1

New Post: Issue in creating package from Release mode with latest release (3.0) of DAL 2 template

Created Unassigned: Multiple Views Development [11887]

$
0
0
Hi there, i just wanted to know if there's any example out there for Multiple Views Development with Christoc's DNN Template.

For example, if i need more than the standard view.ascx, edit.ascx and settings.ascx.

Regards.

Closed Unassigned: Multiple Views Development [11887]

$
0
0
Hi there, i just wanted to know if there's any example out there for Multiple Views Development with Christoc's DNN Template.

For example, if i need more than the standard view.ascx, edit.ascx and settings.ascx.

Regards.
Comments: This is not an issue, but a "discussion" you can visit for one approach to multiple views https://dnnsimplearticle.codeplex.com/

Reviewed: DNN 7 Project Templates V3 for VS2013 (Oct 11, 2014)

$
0
0
Rated 4 Stars (out of 5) - Are the zip file downloads going to be available for version 3.0? Sadly, you will need full version of Visual Studio 2013 to rebuild customized version , those using VS 2013 Express will be stuck with default templates.

New Post: errors with v3 and ms build tasks 1.4.0.74

$
0
0
environment:
  • VS 2013
  • Christoctemplate V3.0
  • Installed MSBuildTasks 1.4.0.74 (that ‘s what NuGet Package Manager shows)
First error:
In the file MSBuild.Community.Tasks.Targets this line :
<MSBuildCommunityTasksLib>$(SolutionDir)\packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib>
resulted in a double escape in front of packages – I had to change that line to this:
<MSBuildCommunityTasksLib>$(SolutionDir)packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib>
Second error:
Build in release mode on a project with no files open:
Error   1   The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly \\server\d%24\myDNN\DesktopModules\DNNModule4\packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file://\\server\d%24\myDNN\DesktopModules\DNNModule4\packages\MSBuildTasks.1.4.0.74\tools\MSBuild.Community.Tasks.dll' or one of its dependencies. The network name cannot be found. 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.    DNNModule4
Since I could see the dll was in the right place, I then looked for the XmlRead task, it seems to be defined in BuildScripts\ModulePackage.targets so I open that file. And found that if I leave that file open in VS and rebuild the project then the error message changes:
Warning 1   The element 'Target' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'XmlRead' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Task, AL, AspNetCompiler, AssignCulture, AssignProjectConfiguration, AssignTargetPath, AxImp, CallTarget, CombinePath, ConvertToAbsolutePath, Copy, CreateCSharpManifestResourceName, CreateItem, CreateProperty, CreateVisualBasicManifestResourceName, Csc, Delete, Error, Exec, FindAppConfigFile, FindInList, FindUnderPath, FormatUrl, FormatVersion, GenerateApplicationManifest, GenerateBootstrapper, GenerateDeploymentManifest, GenerateResource, GenerateTrustInfo, GetAssemblyIdentity, GetFrameworkPath, GetFrameworkSdkPath, GetReferenceAssemblyPaths, LC, MakeDir, Message, Move, MSBuild, ReadLinesFromFile, RegisterAssembly, RemoveDir, RemoveDuplicates, RequiresFramework35SP1Assembly, ResolveAssemblyReference, ResolveComReference, ResolveKeySource, ResolveManifestFiles, ResolveNativeReference, ResolveNonMSBuildProjectOutput, SGen, SignFile, TlbImp, Touch, UnregisterAssembly, UpdateManifest, Vbc, VCBuild, Warning, WriteCodeFragment, WriteLinesToFile, XslTransformation, CodeAnalysis, CL, Link, BSCMake, CPPClean, Get....   \\sddnnd-01\h$\AB\ABdarpaDotMil\DesktopModules\DNNModule4\BuildScripts\ModulePackage.targets    10  5   DNNModule4

Error   2   The "XmlRead" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\MSBuild\12.0\bin" directory.    DNNModule4
So could the warning about the invalid child element be the reason for the error?


-- Allen

New Post: errors with v3 and ms build tasks 1.4.0.74

$
0
0
Turns out the reason for the XmlRead task failing was a permissions issue. I need to run Visual Studio as an administrator for the release build tasks to work.

The obvious question is why do these build tasks need administrative privileges to run?

-- Allen

New Post: errors with v3 and ms build tasks 1.4.0.74

$
0
0
yeah, in order to do most things in Visual Studio with a local IIS you have to be running as Administrator.
Viewing all 485 articles
Browse latest View live




Latest Images