Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Answers to Common Module Development Errors
Previous Previous
 
Next Next
New Post 1/23/2007 5:16 AM
User is offline Michael Washington
2369 posts
Adefwebserver.com
5th Ranked








Answers to Common Module Development Errors 
Modified By Michael Washington  on 9/6/2007 8:02:09 AM)

Error:

DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for 'MyModule.DataProvider' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MyModule.DataProvider' threw an exception. --->

Answer:

This is caused by upgrading your module from DNN3 to DNN4. In your dataprovider, Change:

CType(Framework.Reflection.CreateObject("data", "MyModule", "MyModule.dll"), DataProvider)

To:

CType(Framework.Reflection.CreateObject("data", "MyModule", ""), DataProvider)

 Error:

The module works fine when logged in as an administrator, but when a normal user uses it they do not get the post back click event or the page doesn't refresh.

Answer:

The module has caching enabled. Set the caching to 0 and click the update link in the module configuration settings for the module.

Error:

'ExecuteSQL' is not a member of ... 

Answer:

Use DotNetNuke.Data.DataProvider.Instance().ExecuteSQL...

 

Error:

Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Answer:

Caused when using SQL Server express. In the web.config, change:

 <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />

to:

 <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=False" providerName="System.Data.SqlClient" />
   

 

Error:

Exception has been thrown by the target of an invocation ... 

Answer:

If you have code that calls the database, ensure that a value is being returned fron the databse. Otherwise you will get this error.

Error:

The PopupControlExtender places the popup in the wrong place when the page is scrolled

Answer:

 

 

When the page scrolls, the popup control will lose position unless you place the items in a panel and give it a CssClass class like:

 

 

< asp:Panel ID="pnlUsers" runat="server" Height="50px" Width="125px" CssClass="PanelExtender" >

Then you give that .css class a  position of relative like:

< style >
.PanelExtender
{
    position: relative;
}
< /style >



Michael Washington
* ADefWebserver.com
* DNN Module Developer's Guide
* IWEB - DNN Web Services
* Silverlight and DotNetNuke
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Answers to Common Module Development Errors
 


Forum Policy

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.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke® logo are registered trademarks of DotNetNuke Corporation
Hosted by MaximumASP