CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 5/24/2005 3:37:25 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 8 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Keith6437
Asp.Net User
Error adding user control to custom module5/24/2005 3:37:25 PM

0/0

I am using DNN 3.0.12 and I have a custom module that has been working fine.  I have already added many user controls to it from the Module Definitions menu of the host menu, clicking edit module definitions and then clicking Add control.  Everything worked fine.

I just tried adding a new user control, LogonInfo.ascx, to a custom module.  I enter the control key, title information, and the source for the control and then I try to upload/add it to my custom module.  When I do this I get the following error message:

An error has occured.

DotNetNuke.Services.Exceptions.PageLoadException: A potentially dangerous Request.QueryString value was detected from the client (error="...:cboIcon="")."). ---> System.Web.HttpRequestValidationException: A potentially dangerous Request.QueryString value was detected from the client (error="...:cboIcon="")."). at System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) at System.Web.HttpRequest.get_QueryString() at System.Web.UI.Page.GetCollectionBasedOnMethod() at System.Web.UI.Page.DeterminePostBackMode() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---

Has anybody seen this error when trying to add user controls to a custom module? 

Like I said, I have added at least 7 other user controls module and everything worked fine.  I also double checked the user control  page directive <@Page ... codebehind= ... inherits= ...> and it all looks like my other user controls.  The code behind the user controls also declares the namespace of my custom module project and looks like my other code behind stuff.  Everything appears fine. 

But something is amiss in Missouri!

Thanks

lucast
Asp.Net User
Re: Error adding user control to custom module5/24/2005 5:53:48 PM

0/0

My guess is that you do not have the following in your web.config file:

<pages validateRequest="false" enableViewStateMac="true" />

In version 1.1 of the .Net Framework this feature was added to check for potentially unsafe inputs. the validateRequest="false" turns this back off and back to the way version 1.0 of the framework handled this.

HTH


Tom Lucas

Keith6437
Asp.Net User
Re: Error adding user control to custom module5/24/2005 6:05:25 PM

0/0

Great!  That fixed the problem.

I just changed this setting last week during some testing and forgot to set it back.

Thanks, you have saved me a couple days of work or having to try to manually add the control to the database.

 

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro .NET 2.0 Windows Forms and Custom Controls in C#: From Professional to Expert Authors: Matthew MacDonald, Pages: 1037, Published: 2005
Pro .NET 2.0 Windows Forms and Custom Controls in VB 2005 Authors: Matthew MacDonald, Pages: 1036, Published: 2006
Access 2007 VBA Programmer's Reference Authors: Teresa Hennig, Robert G. Cooper, Rob Cooper, Geoffrey L. Griffith, Armen Stein, Pages: 1110, Published: 2007
Borland C++ Builder 6 Developer's Guide Authors: Bob Swart, Jarrod Hollingworth, Mark Cashman, Paul Gustavson, Pages: 1097, Published: 2003
Building Embedded Linux Systems: Concepts, Techniques, Tricks, and Traps Authors: Karim Yaghmour, Pages: 391, Published: 2003
Visual Basic 2005 Programmer's Reference Authors: Rod Stephens, Pages: 1022, Published: 2005
Professional ASP.NET 2.0 Server Control and Component Development Authors: Shahram Khosravi, Pages: 1186, Published: 2006
Beginning DotNetNuke Skinning and Design: Skinning and Desing Authors: Andrew Hay, Nina Meiers, Shaun Walker, Pages: 432, Published: 2007
The Software Catalog: Microcomputers, Winter, 1990 Authors: Menu International Software, Pages: 0, Published: 1990
Managing Linux Systems with Webmin: System Administration and Module Development Authors: Jamie Cameron, Pages: 816, Published: 2003

Web:
Error adding user control to custom module - ASP.NET Forums Re: Error adding user control to custom module. 05-24-2005, 1:53 PM ... Re: Error adding user control to custom module. 05-24-2005, 2:05 PM ...
Gallery - Unhandled Error Adding Module to ContentPane - Gallery ... Control.OnInit(EventArgs e) at System.Web.UI.UserControl. .... is a leader in the DNN community offering high quality modules, custom module development, ...
OneChicagoPlace.com: Add a simple custom C# web user control ... Jan 5, 2007 ... Add a simple custom C# web user control module to DotNetNuke ... You receive error 401.1 when you browse a Web site. ...
SugarCRM Forums - "Access Denied (Error 40)" to custom module Reload this Page "Access Denied (Error 40)" to custom module .... Create a role with access to that module Add some user to that role. ...
Building Custom Modules Create DB scripts for quick drop/add during development. May want to create scripts for sample ... Building Custom Modules Modules & User Control Basics ...
A forgotten post : Registring a Custom Module with Sitefinity ... Custom module 101 Over the last week or so I’ve received several comments asking how to .... Now I don’t see any controls when I press “Add new contact” ...
Using HTTP Modules and Handlers to Create Pluggable ASP.NET Components User Controls and custom, compiled server controls for user interface elements and .... To add this error logging functionality to another ASP. ...
Error with custom ascx form > Forums > DNNDev.com UserControl". Trying to display it with the FormView module. ... ModuleLoadException: Unhandled Error Adding Module to ContentPane ...
Handling custom 403 and 404 error pages in Drupal - Blog - Web ... Feb 28, 2008 ... This issue means that a user without “access content” permissions cannot access 403 ... Now, on the Custom Error module’s config page at ...
CodeProject: Creating a DotNetNuke® Module - For Absolute ... How to create a DotNetNuke® module using Visual Studio Express - for DotNetNuke version 4.; Author: defwebserver; Section: Custom Controls; Chapter: Web ...

Videos:
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...




Search This Site:










creating and using an object between pages

security issue for stored documents

my pws kit working nicely.

popup window-like in asp.net?

happy halloween *free skin*

updating module setting takes ages

controls, <register namespace="dll.mycontrol" assembly = "swapyourvacationhome"> in vs2005

removing numbers from the end of a string

upload jpeg, gif to webserver

moving labels and text boxes anywhere i want to using vs2008express

adding/opening projects to and from team foundation server?

signin cssclass??

error unrecognized attribute 'requirepermission' ... web.config 6

help with menu control and sitemap please?

visual web developer 2005: "page cannot be displayed"

windows authentication breaks debug?

convert asp to asp.net 2.0

globally adding attributes to buttons

i configured a new application but now i have lost my code

resx files

remember me doesn't always work

extending search function question

so did sp1 actually fix anything in vs 2005? more issues with imagebutton in a panel...

suggestions on tools,. 3rd party, etc. for equipment scheduling application

dnn 3.1 upgrade trouble

i broke it....

web service user name and password protection

how do you change dbo to another user

treeview + style

magicspacer curiosity...

 
All Times Are GMT