none
Updating Webforms from version 9 to 10 RRS feed

  • Question

  • Good Day

    I'm having an issue when changing the dll of my webforms from version 9 to 10.

    changed all the versions in the Webconfig and the ReportView aspx page.

    <membership defaultProvider="CustomizedProvider">
          <providers>
            <add name="CustomizedProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="MTNOMS_Prod" applicationName="MTNOMS" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false" requiresQuestionAndAnswer="false" passwordFormat="Clear" enablePasswordRetrieval="true" />
          </providers>
        </membership>
        <roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
          <providers>
            <add name="CustomizedRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="MTNOMS_Prod" applicationName="MTNOMS" />
          </providers>
        </roleManager>
        <compilation debug="true">
          <assemblies>
            <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
            <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Services.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          </assemblies>
          <buildProviders>
            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
          </buildProviders>
        </compilation>
        <!--
        <sessionState mode="StateServer"
              stateConnectionString="tcpip=127.0.0.1:42424"
              cookieless="false"
              timeout="120"/> -->
        <sessionState mode="InProc" cookieless="false" timeout="30" />
        <customErrors mode="Off" defaultRedirect="~/CustomError.aspx" />
        <pages maintainScrollPositionOnPostBack="true" enableEventValidation="false">
          <!--validateRequest="false" enableEventValidation="false"-->
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </controls>
        </pages>
        <httpHandlers>
          <remove path="*.asmx" verb="*" />
          <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add path="ComponentArtScript.axd" verb="*" type="ComponentArt.Web.UI.ScriptHandler,ComponentArt.Web.UI" />
          <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
        </httpHandlers>
        <httpModules>
          <add name="CuteEditor.UploadModule" type="CuteEditor.UploadModule,CuteEditor" />
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </httpModules>
        <httpRuntime executionTimeout="120" maxRequestLength="30480" />
        <trust level="Full" />
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <!--<add name="ComponentArtScript" verb="*" path="ComponentArtScript.axd" type="ComponentArt.Web.UI.ScriptHandler"/>-->
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
        </handlers>
        <modules>
          <remove name="ScriptModule" />
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </modules>

    But as soon as i try getting the paramtersArea in the reportviewer

    public List<ReportParameter> GetClientParameters(ReportViewer viewer)
            {

                Control paramsArea = FindParametersArea(viewer);
                List<ReportParameter> thisParams = new List<ReportParameter>();

                FindParameters(paramsArea, thisParams);
                return thisParams;

            }

            private Control FindParametersArea(ReportViewer viewer)
            {
                foreach (Control child in viewer.Controls)
                {
                    if (child.GetType().Name == "ParametersArea") return child;

                }
                return null;

            }

    I get this error a noscript error as this returns a null.

    but on version 9 codes works perfectly.

    please help.

    Kind Regards

    Phumulani

    Tuesday, March 3, 2015 11:38 AM

Answers

  • Phumulani,

    Sorry but you have posted to a forum that deals exclusively with customizing and programming Microsoft Project, a project management application. I suggest you find a forum that deals with whatever application you are using. If you can't find one, start here:

    https://social.technet.microsoft.com/Forums/en-US/home?category=usingforums

    John

    Tuesday, March 3, 2015 3:19 PM

All replies

  • Phumulani,

    Sorry but you have posted to a forum that deals exclusively with customizing and programming Microsoft Project, a project management application. I suggest you find a forum that deals with whatever application you are using. If you can't find one, start here:

    https://social.technet.microsoft.com/Forums/en-US/home?category=usingforums

    John

    Tuesday, March 3, 2015 3:19 PM
  • I am having the exact error. Were you able to find a fix?
    Monday, March 5, 2018 6:16 PM
  • abcoopoer,

    As I explained to the original poster, this is not the forum for this issue. I suggest you do a search elsewhere.

    John

    Monday, March 5, 2018 6:21 PM