Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error adding simple moduleError adding simple module
Previous
 
Next
New Post
9/20/2007 10:23 PM
 

Hi all

I added a simple module contains a label and button that changes the text

I added through the add module definitions as per directions in the book DNN 4

I get this error after adding the module:

Error: ModOne is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.YourCompany_GetModOnes' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.YourCompany_GetModOnes' doesn't exist. at System.Data.SqlClient.SqlCommand.DeriveParameters() at System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at YourCompany.Modules.ModOne.SqlDataProvider.GetModOnes(Int32 ModuleId) in D:\DNNLocal\Dnn456\App_Code\ModOne\SqlDataProvider.vb:line 130 at YourCompany.Modules.ModOne.ModOneController.GetModOnes(Int32 ModuleId) in D:\DNNLocal\Dnn456\App_Code\ModOne\ModOneController.vb:line 59 at YourCompany.Modules.ModOne.ViewModOne.Page_Load(Object sender, EventArgs e) in D:\DNNLocal\Dnn456\DesktopModules\ModOne\ViewModOne.ascx.vb:line 70 --- End of inner exception stack trace ---

Any help?

Thanks

 
New Post
9/20/2007 11:49 PM
 

In the pageload of your module you have a method most likely calling the module controller that is calling GetModOnes. In the sqldataprovider for the module you probably call a stored procedure, that you haven't added to the Database.

You have a few options, create a stored proc, or just comment out the calls in the pageload.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error adding simple moduleError adding simple module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out