Microsoft Survey and Admin Tool

Last post 08-18-2003 10:35 AM by PeterLeiter. 10 replies.

Sort Posts:

  • Microsoft Survey and Admin Tool

    08-12-2002, 12:36 PM
    • Participant
      1,340 point Participant
    • uzi
    • Member since 06-24-2002, 10:10 AM
    • Syracuse, NY
    • Posts 268
    Hi,
    I just got the survey tool along with the admin tool up and running. I modified the a bit of the code on the view survey page. When i browse to my url, to view the survey. If i use the survey id from the survey that came with the install. It works. If i use the id of the survey i created in the admin tool. I get this error message. "Index was outside the bounds of the array."

    It does work for this id: BCA3180B-6E66-47F1-9ED1-6ACDFA8C986A (sample survey)
    It doesn't work for this id: AAA88FE3-EE19-4206-B76A-FD3AB14377C2 (survey i created with the admin tool)

    Here is my code from the viewSurvey page i've created.


    viewSurvey.aspx.vb (codebehind)

    Namespace uzi
    Public Class viewSurvey
    Inherits System.Web.UI.Page
    Protected WithEvents SurveyControl1 As MSDN.Web.UI.WebControls.Survey.SurveyControl

    #Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
    'CODEGEN: This method call is required by the Web Form Designer
    'Do not modify it using the code editor.
    InitializeComponent()
    End Sub

    #End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'If Page.IsPostBack = False Then
    SurveyControl1.Key = Request.Params("id")
    'End If
    End Sub

    End Class
    End Namespace



    viewSurvey.aspx

    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="viewSurvey.aspx.vb" Inherits="uzi.viewSurvey"%>
    <%@ Register TagPrefix="uc1" NameSpace="MSDN.Web.UI.WebControls.Survey" Assembly="MSDN.Web.UI.WebControls.Survey"%>
    <%@ Register TagPrefix="uzi" TagName="header" Src="/controls/header.ascx"%>
    <%@ Register TagPrefix="uzi" TagName="footer" Src="/controls/footer.ascx"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>SurveyForm</title>
    <link href="/menu/style.css" type="text/css" rel="stylesheet">
    <link href="/style.css" type="text/css" rel="stylesheet">
    </HEAD>
    <body>
    <form id="Form2" method="post" runat="server">
    <uzi:header id="Header" runat="server" />
    <uc1:surveycontrol id="SurveyControl1" runat="server" />
    </form>
    <uzi:footer id="Footer" runat="server" showBoxes="false" />
    </body>
    </HTML>



    Thanks for looking at this...
    Thanks,
    Oliver
  • Re: Microsoft Survey and Admin Tool

    08-12-2002, 1:53 PM
    • Participant
      1,340 point Participant
    • uzi
    • Member since 06-24-2002, 10:10 AM
    • Syracuse, NY
    • Posts 268
    Here is the Complete error message, not sure if the stack trace will help anyone out. Hopefully it does help a bit more :)

    Index was outside the bounds of the array.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [IndexOutOfRangeException: Index was outside the bounds of the array.]
    MSDN.Web.UI.WebControls.Survey.SurveyControl.BuildSurvey()
    MSDN.Web.UI.WebControls.Survey.SurveyControl.Page_Load(Object sender, EventArgs e)
    System.EventHandler.Invoke(Object sender, EventArgs e) +0
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +29
    System.Web.UI.Control.LoadRecursive() +92
    System.Web.UI.Control.LoadRecursive() +92
    System.Web.UI.Page.ProcessRequestMain() +724


    Thanks,
    Oliver
  • Re: Microsoft Survey and Admin Tool

    08-12-2002, 2:23 PM
    • Member
      5 point Member
    • silaswild
    • Member since 08-12-2002, 2:19 PM
    • Posts 1
    How do we get this tool? TIA
  • Re: Microsoft Survey and Admin Tool

    08-12-2002, 3:32 PM
    • Participant
      1,340 point Participant
    • uzi
    • Member since 06-24-2002, 10:10 AM
    • Syracuse, NY
    • Posts 268
    its on the .net section of msdn
    http://msdn.microsoft.com/library/?url=/library/en-us/dnaspp/html/rolebasesecure.asp

    Thanks,
    Oliver
  • Re: Microsoft Survey and Admin Tool

    08-12-2002, 5:08 PM
    • Participant
      1,340 point Participant
    • uzi
    • Member since 06-24-2002, 10:10 AM
    • Syracuse, NY
    • Posts 268
    Some more info,
    Its really acting weird. I have it now on 2 servers, pulling from seperate databases. Both are doing the same exact thing.
    Except, on one set of servers, its display about every other survey. the even ids i think. (only created 4 surveys)
    On the other set of servers, i created 4 more surveys, this time, only the first survey worked, none of the other 3 did.
    Everything is giving the "Index was outside the bounds of the array."

    Thanks,
    Oliver
  • Re: Microsoft Survey and Admin Tool

    08-13-2002, 11:14 PM
    • Participant
      1,340 point Participant
    • uzi
    • Member since 06-24-2002, 10:10 AM
    • Syracuse, NY
    • Posts 268
    Ok, a little more info. The only time a survey errors out, is when i add a free form text box with the admin tool. Haven't gotten a chance to really look at the code.
    Thanks,
    Oliver
  • Re: Microsoft Survey and Admin Tool

    08-14-2002, 3:18 PM
    • Participant
      1,340 point Participant
    • uzi
    • Member since 06-24-2002, 10:10 AM
    • Syracuse, NY
    • Posts 268
    Ok, now i found what the admin tool is not adding, just have to figure out how to add it.

    When the tool creates the record in the 'Question' table. Everything is correct.
    It doesn't add the correct field into the 'Answer' table. I had to add one record manually to get my form to work.

    QuestionID: 'the questions id'
    Answer: <NULL>
    Sequence: 1

    Now just time to find why the admin tool isn't adding this, or figure out how to change the code myself.

    Thanks,
    Oliver
  • Re: Microsoft Survey and Admin Tool

    08-26-2002, 8:57 PM
    • Member
      40 point Member
    • zachkwod
    • Member since 07-23-2002, 12:09 PM
    • Sacramento, CA
    • Posts 8
    Hi I downloaded the survey admin tool.
    I installed it but when i try to login it always gives me the
    Sorry

    Access is denied.
    error...

    do i have to add anything into the web.config file?
    or set anything up in the survey database?
    Any help would be greatly appreciated..

    Zach
  • Re: Microsoft Survey and Admin Tool

    08-26-2002, 9:23 PM
    • Member
      40 point Member
    • zachkwod
    • Member since 07-23-2002, 12:09 PM
    • Sacramento, CA
    • Posts 8
    nevermind, I didnt set up the SQL SCRIPT and needed to change the ConnectionSting in the web.config file.. works now... DUh

    Thanks anyway
  • Re: Microsoft Survey and Admin Tool

    08-26-2002, 10:15 PM
    • Member
      40 point Member
    • zachkwod
    • Member since 07-23-2002, 12:09 PM
    • Sacramento, CA
    • Posts 8
    well, i have the admin tool working, but when i get the survey id,
    http://localhost?id=74FC3034-A6E4-4894-A206-20129300BC95

    but that doesnt work, and I tried localhost/survey/surveyform.aspx?id=74FC3034-A6E4-4894-A206-20129300BC95

    and that doesnt work any ideas?

    thanks

    Zach
  • Re: Microsoft Survey and Admin Tool

    08-18-2003, 10:30 AM
    • Member
      75 point Member
    • PeterLeiter
    • Member since 08-18-2003, 6:09 AM
    • Posts 15

    I have downloaded both the Microsoft Survey Sample and the Admin Survey Sample.
    Now my stupid question: Is the Admin Survey Sample a complete working survey with some administrative options or just an administration tool which has to be combined with the Survey Sample.
    Everytime I try to start the Admin Tool I get on the default page, I press the enter button and then I'm redirected to the Sorry page ( Access is denied, Try Again).
    My ConnectionString in the web.config file should be o.k.! I have also executed the surveyupdate.sql file, so the database should be also o.k.!

    So what do you think what is the problem ? Is there anything else that has to be configured to get the survey working?

    thanks

    Peter
Page 1 of 1 (11 items)