Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Urgent: Custom User Control ErrorUrgent: Custom User Control Error
Previous
 
Next
New Post
4/18/2006 4:10 AM
 

I have started creating a custom user control. I’ve also created module to test the custom control. I’m pre-compiling the project in order to create the PA and deploy the custom control.

 

When I deploy my module using the custom user control it gives me the following error. “MinMax persistance type of cookie requires a ModuleId

 

When I remove the custom user control from the module it works perfectly well.

 

When I use the “DNNDebug Script” by Speerio it shows me following error when using my custom user control.

 

Currently I’m testing my user control with only a label.

 

Any help will greatly appreciated.

Server Error in '/DNN402_LocalTestPortal' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Source Error:

 

Line 15: <hr />

Line 16: &nbsp;<br />

Line 17: <uc2:attachments ID="Attachments1" runat="server" />


Source File: /DNN402_LocalTestPortal/DesktopModules/TestAttachments/ViewTestAttachments.ascx    Line: 17

Assembly Load Trace: The following information can be helpful to determine why the assembly 'App_global.asax, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' could not be loaded.

 

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
New Post
4/18/2006 5:21 AM
 

Hmm, funny... I get the same error when executing some of the Atlas Toolkit controls!

Can you explain a bit how does your control look like? how do you load it? is it a dnn control?

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
4/18/2006 7:17 PM
 

My plan is to create a custom attachments control that could be used with any module item.

 

Since this is my first user control in DNN 4 I wanted to start it really simple. Currently my user control has only one label and this is the code.

 

<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits=" YourCompany.UI.UserControls.attachments" CodeFile="attachments.ascx.vb" %>

<asp:Label ID="Label1" runat="server" Text="This is my attachments user control"></asp:Label>

 

This is the pre-compiled file

 

<%@ control language="vb" autoeventwireup="false" explicit="True" inherits=" YourCompany.UI.UserControls.attachments, App_Web_attachments.ascx.c118b531" %>

<asp:Label ID="Label1" runat="server" Text="This is my attachments user control"></asp:Label>

 

This is how I use the user control in my module.

 

<%@ Control language="vb" Inherits="YourCompany.Modules.TestAttachments.ViewTestAttachments" CodeFile="ViewTestAttachments.ascx.vb" AutoEventWireup="false" Explicit="True" %>

<%@ Register Src="~/controls/Attachments/attachments.ascx" TagName="attachments"

    TagPrefix="uc2" %>

<%@ Register Src="~/controls/address.ascx" TagName="address" TagPrefix="uc1" %>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

<asp:Button ID="Button1" runat="server" Text="Button" /><br />

<br />

<asp:ListBox ID="ListBox1" runat="server" Width="217px"></asp:ListBox>

<br />

<br />

<hr />

<br />

<uc1:address ID="Address1" runat="server" />

<br />

<hr />

&nbsp;<br />

<uc2:attachments ID="Attachments1" runat="server" />

 

 
New Post
5/5/2006 4:23 AM
 

Can you verify that the DotNetNuke.dll is in place? (in the bin)

Usually (well in the 3.x versions of DNN) it broke with "Global.asax..." errors when the main dll was not there.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Urgent: Custom User Control ErrorUrgent: Custom User Control Error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out