Pagination images not visible in IIS 6


09-18-2008, 3:08 AM
Hi,
I am using .Net 1.0 Version of active reports build number 3.0.0.1870.

I am not able to view the pagination images in the Report. It was working as long as the application server was in Windows2000 (IIS 5), but once it was ported to Windows 2003 Server(IIS 6), the pagination images are not visible. Please look the snapshot i have attached

I have the following entry in the web.config :

<compilation defaultLanguage="c#" debug="true">
            <assemblies>
                <add assembly="ActiveReports.HtmlExport, Version=3.0.0.1870, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
            </assemblies>
</compilation>


<httpHandlers>
            <add verb="*" path="*.ArCacheItem" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=3.0.0.1870, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
            <add verb="*" path="*.Rpx" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=3.0.0.1870, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
            <add verb="*" path="*.ActiveReport" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=3.0.0.1870, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
            <add verb="POST,GET,HEAD" path="elmah/view.aspx" type="GotDotNet.Elmah.ErrorLogPageFactory, GotDotNet.Elmah, Version=1.0.5527.0, Culture=neutral, PublicKeyToken=978d5e1bd64b33e5" />
</httpHandlers>


I have added the .ArCacheItem, .rpx and .ActiveReport to the ISAPI application mapping with 'c:\sysroot\microsoft.net\framework\v1.1.4322\aspnet_isapi.dll' and unchecked the 'check the file exist' option.

But still i am not able to view the pagination images and if i try browsing the .ArcaheItem directly by giving
'http://localhost:8888/Forms/Reports/Last.png.ArCacheItem'

I get the error ' Object Reference not found' ( this happens if i configure the ISAPI mapping) else i get 'HTTP Error 404 - File or directory not found.' error.

Thanks in Advance,

Regards,
Bharath


Re: Pagination images not visible in IIS 6


09-18-2008, 6:58 AM

Hello ,

What result do you get with ActiveX type of web viewer control?

Did you try to check 'Run WWW service in IIS 5.0 isolation mode'  option in IIS6 ?

Thanks,

Sergey Romanov.

Re: Pagination images not visible in IIS 6


09-18-2008, 8:02 AM
Hi,

I ran the Example code present in Active report installation. I got the ActiveX type of viewer control properly displayed with all the buttons.

I tried with the 'Run WWW service in IIS 5.0 isolation mode'  option in IIS6, but still i am not able to view the pagination button.

Thanks,
Bharath

Re: Pagination images not visible in IIS 6


09-18-2008, 9:53 AM
Bharath,

When you moved your application to the new server, did you configure the HTTP handlers?

http://www.datadynamics.com/Help/ARNET/ConfiguringtheHTTPHandlers.html

Re: Pagination images not visible in IIS 6


09-19-2008, 1:48 AM
Hi Tim,

Yes I have configured the .ArCacheItem, .ActiveReport and .rpx in the HTTPHandlers for my website (not the default one) as mentioned in the article article already... But i am getting 'Object Reference not set to an instance of an object' error when i open the Last.png.ArCacheItem object from the browser.

Thanks

Re: Pagination images not visible in IIS 6


09-19-2008, 10:11 AM
I tried opening the sample provided by the Active Reports installer. There everything works fine. And one more thing i noticed was that the .ArCacheItem files are missing in the Sample project but they are able to load the images. They show the sampe virtual directory as their path but they are not present there. I found one more file arview2.cab file. Whats the significance of this file. Does this impact the display of the .ArCacheItem? Are there any specific code change that is required?

Please let me know asap.
Thanks in Advance.

-Bharath

Re: Pagination images not visible in IIS 6


09-22-2008, 7:17 AM

Hello ,

arview2.cab contains ActiveX viewer control, that has no effect on toolbar icons of HTML viewer.

Try to replace the reports from subfolder to main folder of your asp.net project for test.

Thanks,

Sergey Romanov.

Re: Pagination images not visible in IIS 6


09-22-2008, 11:17 AM
Hi,
I placed everything(aspx files and rpx files) in the main folder and tried, still it was the same. I found one more thing. If i try to open .rpx file in the internet explorer i am getting 'Object Reference noot set to an instance of an object', this happens for .arcacheitem files also. I did the same http configurations for the ArWebSampleProCs project and there it works fine, the .rpx and .ArCacheItems are visibile when i browse them seperately.

 Any idea why this is happening? Is this issue problem with configuring the website or with the code?
The same code is working fine in Windows 200 server (IIS 5).

-Bharath

Re: Pagination images not visible in IIS 6


09-22-2008, 11:58 AM
Hi,

I am attaching the AR dlls,web.config, aspx file and rpx file that are used for your reference.

-Bharath

Re: Pagination images not visible in IIS 6


09-23-2008, 6:14 AM

Please, change the authentication mode and disable the impersonate identity for check.

Thanks,

Sergey Romanov.

Re: Pagination images not visible in IIS 6


09-23-2008, 7:52 AM
Hi,

Thank you everybody for the support. I have resolved this issue. There was a problem in my application code. There is a check for app.Context.Session.IsNewSession and this object is not always instantiated and it was throwing an exception. I don't how it worked in Windows 2000 or why it is failing in Windows 2003 server but a simple try catch block has solved the issue.

Thanks again,

-Bharath