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 >