You are hereCommunity > Forums
Register   |  Login
 DotNetNuke Forums
Minimize
 
  Forum  General DotNetN...  Extend It! ( Pr...  Urgent: Custom User Control Error
Previous Previous
 
Next Next
New Post 4/18/2006 1:10 AM
User is offline Kusal Gunatilake
8 posts
10th Ranked




Urgent: Custom User Control Error 

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 2:21 AM
User is offline Vladan Strigo
505 posts
Vladan.Strigo.NET
8th Ranked




Re: Urgent: Custom User Control Error 

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 4:17 PM
User is offline Kusal Gunatilake
8 posts
10th Ranked




Re: Urgent: Custom User Control Error 

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 1:23 AM
User is offline Vladan Strigo
505 posts
Vladan.Strigo.NET
8th Ranked




Re: Urgent: Custom User Control Error 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Urgent: Custom User Control Error
 Forum Policy
Minimize

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 Need Help?
Minimize
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 Ads
Minimize
WebHostForAsp.net
 Sponsors
Minimize