Page 1 of 1

Upgrade to 2011 4.1 From 3.5 (httphandler issues)

Posted: Fri Nov 11, 2011 5:53 pm
by 15660698
I've just upgraded to 2011 4.1 from 3.5 and am not able to get anything other than the Red x. I've read every forum post I could find and every tutorial on the subject. I've tried to to see if the demo's would work but I cant even get them to run due to errors in the code before I can even navigate to the examples. I've added the following lines to the web.config:

Code: Select all

 <system.web>
        <httpHandlers>
            <add verb="*" path="TeeChartImgGen.ashx" type="Steema.TeeChart.Web.TeeChartImgGen, TeeChart" />
        </httpHandlers>

        <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            </assemblies>
        </compilation>
        <authentication mode="Forms">
            <forms name=".Retailauth" loginUrl="Login.aspx" protection="All" timeout="30" path="/"/>
        </authentication>
        <authorization>
            <deny users="?"/>
        </authorization>
        <membership>
            <providers>
                <clear/>
                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
            </providers>
        </membership>
        <profile>
            <providers>
                <clear/>
                <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
            </providers>
        </profile>
        <roleManager enabled="false">
            <providers>
                <clear/>
                <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
                <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
            </providers>
        </roleManager>
    </system.web>
    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
        
        
        
    </system.webServer>

Any suggestions on where to go from here? I'm using IIS 7.5

Re: Upgrade to 2011 4.1 From 3.5 (httphandler issues)

Posted: Mon Nov 14, 2011 10:06 am
by 10050769
Hello Mike,

I can not reproduce your problem making a simple project using version 3 and after update it to version 4. Can you please, send us your web project, so we can reproduce your problem here.

Thanks,

Re: Upgrade to 2011 4.1 From 3.5 (httphandler issues)

Posted: Mon Nov 14, 2011 4:38 pm
by 15660698
Okay, I've been able to get it working using both the cache and session TempChart modes. However, compared to the httphandler this is entirely too slow. I can get the httpHandler to work when working in Visual Studio and an port number is used in the URL, however when the sourcecode is place directly in the directory off of wwwroot, I get a red x. I assume this is some sort of Windows 7 issue and not a TeeChart Issue but I am hoping someone else here has delt with this.

Also, I would be willing to explore the File option, but TeeChat generates the links to the temp chart directory such as if they are located off the root of the application. Is there a way to change the location of this directory within code? When you deploy to a clients server, you don't want to be asking to change the registry. I cannot fint anything in the documentation about this.

Thanks,
Mike

Re: Upgrade to 2011 4.1 From 3.5 (httphandler issues)

Posted: Mon Nov 14, 2011 5:06 pm
by 15660698
I added the following to web.config and it is working. I had tried very similar solutions before and I'm not sure why, but this works.

Code: Select all

 <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
        <handlers>
            <add name="HandlerName"
                 path="TeeChartImgGen.ashx" verb="*" type="Steema.TeeChart.Web.TeeChartImgGen, TeeChart"
                 resourceType="Unspecified" />
        </handlers>
    </system.webServer>

Re: Upgrade to 2011 4.1 From 3.5 (httphandler issues)

Posted: Thu Nov 17, 2011 12:20 pm
by 10050769
Hello Mike,

Thanks for your information. I am glad that you can solve your problem.

Thanks,