<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Custom Modules</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Developing custom modules for DotNetNuke.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: DotNetNuke.ModuleLoadException</title><link>http://forums.asp.net/thread/1196127.aspx</link><pubDate>Mon, 13 Feb 2006 06:32:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1196127</guid><dc:creator>lilon</dc:creator><author>lilon</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1196127.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1196127</wfw:commentRss><description>&lt;p&gt;Just an update to let you know that I got rid of the problem, although I have no idea why or how. I had in my ascx an asp:panel, which I only declared in the code behind, and didnt even use it yet for anything. Once I took this panel out everything started working well,&lt;/p&gt;
&lt;p&gt;Not much help I am afarid...&lt;/p&gt;</description></item><item><title>Re: DotNetNuke.ModuleLoadException</title><link>http://forums.asp.net/thread/1195038.aspx</link><pubDate>Sat, 11 Feb 2006 06:38:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1195038</guid><dc:creator>lilon</dc:creator><author>lilon</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1195038.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1195038</wfw:commentRss><description>I am getting an NullReferenceException; Object reference not set to an instant of an object. &lt;br /&gt;The log viewer shows the origin of the problem in line 272 of PortalModuleBase which is exactly what you guys were refering to : If Not Request.Cookies("_Tab_Admin_Preview.... in the IsEditable().&lt;br /&gt;&lt;br /&gt;My only sin is that I put a runat="server" and "id=tblTop" in a user control (ascx) I am developing for my module. I also of course declare the table as an HtmlTable in the code behind, but before I even make any use of it in the code the user control throws the exception and crashes. I only have to delete the runat="server" for the error to dissappear. I have a similar user control with an identical table which works without a hitch.&lt;br /&gt;&lt;br /&gt;Any ideas why it does it, and how to solve it. I realy need this table as a htmlTable on the server.&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;</description></item><item><title>Re: DotNetNuke.ModuleLoadException</title><link>http://forums.asp.net/thread/1193178.aspx</link><pubDate>Thu, 09 Feb 2006 14:58:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1193178</guid><dc:creator>pwbriggs23</dc:creator><author>pwbriggs23</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1193178.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1193178</wfw:commentRss><description>&lt;p&gt;I have that EXACT issue. Did you ever find the issue? I don't know if the Response object is getting destroyed or there are issues in the module with&amp;nbsp;viewstates. &lt;/p&gt;
&lt;p&gt;I get the same error, can anyone help?&lt;/p&gt;</description></item><item><title>Re: DotNetNuke.ModuleLoadException</title><link>http://forums.asp.net/thread/1141056.aspx</link><pubDate>Tue, 13 Dec 2005 21:14:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1141056</guid><dc:creator>fredcouples</dc:creator><author>fredcouples</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1141056.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1141056</wfw:commentRss><description>&lt;p&gt;Sorry to say that I haven't solved the problem.&lt;/p&gt;
&lt;p&gt;I do however think that I'm closer to the what the problem is. In PortalModuleBase in the method IsEditable the following code fails:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;font color=#0000ff size=2&gt;If&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;Not&lt;/font&gt;&lt;font size=2&gt; Request.Cookies(&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;"_Tab_Admin_Preview"&lt;/font&gt;&lt;font size=2&gt; &amp;amp; PortalId.ToString) &lt;/font&gt;&lt;font color=#0000ff size=2&gt;Is&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;Nothing&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;Then&lt;/font&gt;&lt;font size=2&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;blnPreview = &lt;font color=#0000ff size=2&gt;Boolean&lt;/font&gt;&lt;font size=2&gt;.Parse(Request.Cookies(&lt;/font&gt;&lt;font color=#ff0000 size=2&gt;"_Tab_Admin_Preview"&lt;/font&gt;&lt;font size=2&gt; &amp;amp; PortalId.ToString).Value)
&lt;p&gt;&lt;font color=#0000ff size=2&gt;End&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;If&lt;/font&gt;
&lt;p&gt;The problem is the Request object throws the exception when is used. Just before the execution of the first line I use the Command Wíndow to check the value of the Request object - it shows a NullReferenceException.&lt;/p&gt;
&lt;p&gt;Hope others can add more to the solution. I get this error from time to time when I play around with the system.&lt;/p&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>DotNetNuke.ModuleLoadException</title><link>http://forums.asp.net/thread/1137272.aspx</link><pubDate>Fri, 09 Dec 2005 14:52:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1137272</guid><dc:creator>agammehta</dc:creator><author>agammehta</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1137272.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=1137272</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I 've created a new custom module which has bunch of fields elements in it (I'm using c#). I went and added DotNetNuke.dll in my reference and than compiled&amp;nbsp; my project. This project is stored under desktop modules folder.&amp;nbsp; But whenever I try to include it in contentpane I get the following error.&lt;/p&gt;
&lt;p&gt;&lt;span class=NormalRed id=_ctl0__ctl11_lblHeading&gt;&lt;font color=#ff0000&gt;Error loading module&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;span class=Normal id=_ctl0__ctl11_lblMessage&gt;&lt;font color=#ff0000&gt;DotNetNuke.ModuleLoadException: Unhandled Error Adding Module to TopLeftContent ---&amp;gt; System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Skin.InjectModule(Control objPane, ModuleSettings ModuleSettings, PortalSettings PortalSettings) in C:\Inetpub\wwwroot\CHAT_DNN\admin\Skins\Skin.vb:line 574 --- End of inner exception stack trace&lt;/font&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=Normal&gt;I did follow all the steps as documented but still returns same error.&amp;nbsp; I would really appreciated if, some one can point me in right direction.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=Normal&gt;Thanks for your help.&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>