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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyNot able to submit answers to the survey moduleNot able to submit answers to the survey module
Previous
 
Next
New Post
5/17/2008 7:18 AM
 

hi all , thanks in advance .........

i am a new developer and i built my survey module with the help of Module development guide , the first problem that i had was that my DNN_survey.dnn was not autodetected as it was stated it in the guide therefore i created the module manually , i created the module definition and all controls .......

The module is working and i am able to write questions and theie corresponding options ....but when i submit an answer i get an error like this ......

Error: Survey is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The stored procedure 'dbo.AddSurveyResult_cookie' doesn't exist. ---> System.InvalidOperationException: The stored procedure 'dbo.AddSurveyResult_cookie' 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.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Survey.SqlDataProvider.AddSurveyResult_cookie(Int32 SurveyOptionId, Int32 UserId) at DotNetNuke.Modules.Survey.SurveyOptionController.AddSurveyResult_cookie(SurveyOptionInfo objSurveyOption, Int32 UserID) at DotNetNuke.Modules.Survey.Survey.cmdSubmit_Click(Object sender, EventArgs e) --- End of inner exception stack trace  

Please let me know what this error is all about and what can i do to get rid of it ........also if u can give me some tips for developing module

 
New Post
5/17/2008 12:55 PM
 

Hmm I'm trying to figure out why it wants "AddSurveyResult_cookie" ? Did you use the tutorial at:

Survey Module Tutorial (C# and VB) ?

That one is based on an earlier version of the Survey module. If you used code from a later version of the Survey module you simply need to run all the .sql scripts to make sure you create the database tables and stored procedures needed.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/17/2008 5:49 PM
 

thanks Michael , i ran all the scripts and it worked.............mike can i have one more question , 

When one's developing a module , is it necessary to create sql scripts , what purpose do they really fulfill ................if they are just to build the database tables and procedures , cant they be achieved directly by creating tables and stored procedure in Sql Server  

 
New Post
5/17/2008 7:32 PM
 

pankaj_upadhyay05 wrote

thanks Michael , i ran all the scripts and it worked.............mike can i have one more question , 

When one's developing a module , is it necessary to create sql scripts , what purpose do they really fulfill ................if they are just to build the database tables and procedures , cant they be achieved directly by creating tables and stored procedure in Sql Server  

The purpose of the database .sql scripts is to create the necessary database tables and stored procedures when the module is installed.

So you don't need them for development but you do need them if you export the module package and try to install it on another DotNetNuke installation.

 

 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyNot able to submit answers to the survey moduleNot able to submit answers to the survey 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