Asp.net - Updating DotNetNuke Module From Another App

Aug 25, 2009

I have several DNN modules that I wish to update silently, using the portal's built-in module upgrade facilities called from a separate application, in this case a Windows service. I was able to make it all work with version 4.3 of the portal by modifying the DNN source in key areas to allow DotNetNuke.dll to function outside of a web application. I'm now trying to do the same thing with the 4.9.0 source code and I'm having problems.

Everything works fine until DNN tries to read from the database. I have my Windows service project, the DNN library project, and several other related projects loaded in one VS solution (the additional projects are the same ones that are in the main solution file provided with the DNN source). I call PaInstaller.Install in my service to update each module. Execution gets to reflection.vb and then it tries to create a DotNetNuke.Data.SqlDataProvider object based on the type name. It raises an exception when calling System.Web.Compilation.BuildManager.GetType. The exception says:

Could not load type 'DotNetNuke.Data.SqlDataProvider' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I read this to mean it simply couldn't locate the DotNetNuke.SqlDataProvider.dll assembly. What's strange is that assembly is in the Bin folder for the DNN library project, and I also have it in the folder where my Windows service is running. The actual SqlDataProvider project is also loaded in the solution. I can't for the life of me understand why the runtime environment can't locate the assembly.

Has anyone tried something like this before, or know what could cause an assembly not to be found while stepping through the DNN source? Am I better off using something other than BuildManager.GetType to get an instance of the SQL provider type?

View 1 Replies


ADVERTISEMENT

Create A Simple Dotnetnuke Module Without DAL?

Jun 25, 2010

I want to create a new module in DNN (VB) ... that;

1. does not use DAL or DAL+

2. has only one view.ascx control

3. It has to be a compiled module

I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.

View 1 Replies

Custom Class In DotNetNuke Module?

Mar 21, 2011

I know this can be done as there are other modules out there that have this, but I'm just not getting it to work.

I have created a custom module for a DotNetNuke site. I want to be able to create a class object within the module to hold the information about that object. I can create the object and everything complies. But when I go to use the object in the code-behind it states that the object is not defined. I'm not really sure where to go from here.

This is the beginning of the View.ascx.vb :

Namespace Modules.VacationForms
Public MustInherit Class View
Inherits PortalModuleBase

[Code].....

I'm really not sure why this is not working. I did download another module code to compare and as far as I can tell everything is the same.

View 2 Replies

Access A CheckBoxList Control In A DotNetNuke Module?

Mar 17, 2010

I have a dynamically created CheckBoxList in a DotNetNuke module I'm building. When DNN creates the page, it prepends the control name with the moduleID and moduleName.

So, when I have "AddLicenseCheckBoxList" on the page, it becomes:

"dnn_ctr949_addRateGroup_AddLicenseCheckBoxList" depending on what the ModuleID and page name is (in this instance it's 949 and addRateGroup respectively). Now, I don't know what the name of the page or moduleID will be when this module is finished, so I need to make sure I am accessing the control my whateer name DNN gives it, and getElementById or getElementByName do not work even when using '<%= %>'.

So what I need to do is use Javascript or some VB to retrieve the checked values of the dynamically created CheckBoxList so that I can run an update on the database with those selected values. [code]...

View 2 Replies

DotNetNuke Module Page Load Fires Twice

Jul 11, 2011

My module's Page_Load event is firing twice for each "actual" load. On the initial load both loads' Page.IsPostBack property is false.I've renamed Page_Load to Module_Load to verify the name wasn't an issue. I've made sure the method isn't handling both Me.Load and MyBase.Load, which has been the case in the past.The only thing I'm doing out of the ordinary is that my module is inheriting from an intermediate base class. Could this be the culprit? [code]I had an Image without an ImageUrl. Presumably this is set by my CollapsiblePanelExtender but rendered with a blank src.

View 1 Replies

Public Module Updating Form Object?

Dec 1, 2009

I'm working on a project for my VB class at school. I am creating a form with several inputs and it calculates the total amount owed for a car sale. I have a text box for input of the TRADE IN VALUE of a car. the program is looking for a numeric input. If there is no trade in, how can i get this box to default to 0.00 so it doesnt error the program?

View 2 Replies

Best Wiki For Dotnetnuke

Sep 30, 2009

I've tried the wiki that comes with DotNetNuke and we don't like it at all. Can anyone suggest a better wiki that we could use with DNN 5?

View 3 Replies

.net - Localization Of A DotNetNuke Website?

Apr 13, 2009

I am working on a website in dnn. I want to change the language of website or particular page. So I download the language package for spanish(es-es),chinese(zh-cn) and install them from host. Next when I changed the language of browser then the website language didn't change. Working on dnn 5.0.

how I can use language packages in dnn website.

View 5 Replies

C# - Get The Portal's Current Login URL In DotNetNuke?

Aug 7, 2009

In the context of a DNN module, what's a good generic way to find out what the URL to the login functionality is?

View 2 Replies

C# - Print To DotNetNuke Event Log/Viewer?

Jan 11, 2010

For debugging purposes, how can I print to the event log/viewer in DotNetNuke, using VB.NET or C#?

View 3 Replies

Custom Code Into The Standard DotNetNuke Login?

Jun 18, 2009

Where can I find the function that handles the login for DNN? I would like to add custom features to the login and I don't see the function in Login. ascx.vb (unless I missed it).There is a tag and a tag that forms the login. I figure one of these has the actual "Login" button, but I cannot seem to figure out where they're coming from.[code]

View 2 Replies

DotNetNuke - Incorporate Custom ASP.NET Files Into A DNN Site?

Feb 6, 2010

How do I incorporate my custom ASP.NET/VB.NET stuff into a DNN site? Long Version: I'm learning about DotNetNuke. I haven't done much yet, but I'm spending a while analyzing the software, hoping to be able to use it for a very large upcoming project.

[Code]...

View 2 Replies

Create Folder Programmatically In DotNetNuke And Assign Permission To It?

Feb 7, 2011

I have created a folder in DotNetNuke programmatically on the root portal directory. I just want to assign permissions to it only one time, for example I want to make it read only for authenticated users. Any advice on how to accomplish this using C# or VB.NEt?

View 1 Replies

DotNetNuke, Check What Language The User Is Currently Viewing The Webpage In

Mar 29, 2010

How would I be able to check what language the user is currently viewing my DotNetNuke webpage in?

If I'm only giving the options of english (canadian) and french (canadian), how would I check?

I've tried looking into currentculture, but haven't found anything yet.

View 2 Replies

Declare A Connectionstring In A Module And Call That Module

Aug 16, 2010

how we can declare a connectionstring in a module and call that module

View 1 Replies

[VS 2010] Call A Module Into Another Module?

Apr 27, 2012

I have a VB.Net interface that communicates with an Access 2k3 Database using this module:

Module MOD_ENGINE
'Declare Database connections controls
Dim con As New OleDb.OleDbConnection
Dim dbProvider, dbSource As String

[code]....

I want to call EngineConnect procedure from MOD_ENGINE module into popCboBox module so I can ignate the engine!

View 3 Replies

Updating Child Collection Of POCO (adding/updating/deleting) In Entity Framework 4.1?

Jan 25, 2012

I have a webpage with a form that is used to edit some object. This object contains a Collection of other objects defined like this: Public Overridable Property Employees As List(Of Employee)

On a form I can delete an employee, add a new one or modify existing one. When I click save new values are sent to the server. On a server I check if the user exists. If exists then I modify its values, if it does not exist then I add it. All employees that exist on the server and were not sent are marked as deleted (State changed to EntityState.Deleted). I try to use the following code (dbCollection = database entities, newCollection = collection sent from the form):

[Code]...

This code does not work, because changing to EntityState.Deleted removes the object from collection, and for each loop breaks, since the collection is modified...I know that I can overcome this problem by using a for loop or adding objects to delete to some other list first, but I hope maybe there is a pattern that would make my code nicer.

View 1 Replies

How To Use Module

Oct 15, 2011

I would like to know how to use module, why we need to use module and when to use module. I've tried to use module but some of my textboxes, labels and other controls didn't recognize by the module i've created.

View 5 Replies

Way To Use A Module

Dec 8, 2009

How do I use a module?

View 3 Replies

Asp.net Mvc - Create Module Like In C# On .Net 3.5?

Jul 23, 2009

I need to use some feature of VB.net that is Module for my Asp.net MVC project. But I found that C# can't handle Module like VB.net does. VB.Net - Globalization Project

[Code]...

View 5 Replies

Class - Use A .net Module?

Jan 12, 2011

Some of my co-workers make extensive use of the VB.net concept of Modules. Unfortunately, I just don't 'get it'. I see no benefit in using modules over shared classes. When would it be preferable to use a module?

View 2 Replies

Get Form Name In Other Module?

Jun 18, 2012

I have a connection module in which I have written the open and close database connection.... if database connection is an error it will return false else if success it will return true the function of the modules will be called from the form code....

what I need is if the connection is an error the module should also get the form name which returned the error...is it possible???

check my below code....

DBConnection.module
Imports System.Data.SqlClient
Module DBConnection

[Code].....

now what I need is if the functions Open_DB_Connection() or Close_DB_Connection() returns error it should prompt the form name....

View 4 Replies

Getting The Current Module Name?

Jun 4, 2009

I want the current module name for Verbose Logging. Tried using DeclaringType.Name and it returned the Class name, not the Subroutine name. Ideally, I would like the class/module and subroutine/function name.

View 11 Replies

How To Create A Module

Jan 27, 2010

How do i create a new module like the one i was told to create in [URL]? If you don't know, how do i create a Global Variable?

View 4 Replies

How To Restart Module

Feb 14, 2011

My applicaiton has several forms with textboxes. I need to make Save settings button and Load settings button. I have module that stores a lot of variables. Saving these variables was easy. Now i want to load these settings. In each form_load event is written code, which fill textboxes with variables from module file, also some forms create databases which are defined in module file..

View 2 Replies

How To Use Module In Asp Mvc View

Apr 19, 2011

The module containts of a bunch of string properties like: [code]how do you acces this module in your view ? If Page.User.IsInRole("Beheer diensten") Then..The goal is to prevent typo's all around the application and if someone for some unknown reason wants to change the description of a role we don't have to check every if.

View 1 Replies

Me.InvokeRequired In A Module?

Jun 28, 2010

I am using the under given code in a module and I am getting an error ['Me' is not valid within a Module]

[code]...

View 12 Replies

Meaning Of New In Module?

May 18, 2009

What is the meaning of having constructors (sub New) in a module, and why must they have no arguments?

View 4 Replies

Module Private To Everything But One?

Aug 22, 2010

I have a "Main" module that is sort of the "brain" or "top level" of my project. Basically, I think there are routines that it only should be allowed to call. Some of these routines are in other modules, so I don't know how to make them hidden to everything except the Main module. If the routine is ublic, anything can call it; if it is private then the Main module can't see it. Also the other modules are big enough that I don't feel it would be a good idea to stuff them completely inside my main module. How can I achieve this "private except in one place" functionality?

View 2 Replies

Specified Module Cannot Be Found

May 16, 2012

I Have this dll OBIDISC4NET.dll i added it to the reference

Imports OBID
class reads
Public Sub run()
Dim back As Int32
Dim fedm As New FedmIscReader

when i run the program and call the run function im getting error "The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

it only happens when i put "new" without it im not getting any errors it looks like it generates error when i create the instance.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved