Asp.Net MVC and Report Viewer Control - asp.net-mvc

I have an Asp.Net MVC page that links out to a Asp.net web form with a report viewer control on it. The web form opens in a new window, and displays a report properly when clicking on the link on my MVC page. However when I close the my broswer window while the report is processing, and try to open it again, the page hangs and eventually gives me a page can not be displayed error.
Thoughts?

Initial thoughts from me are;
1) Not closing objects correctly on errors which might happen when browser windows are closed unexpectadly.
2) Report still running and not allowing another instance. easy to prove. when you get the error, close the window and click the report again. if you get your report then this may be a candidate.
3) Caching issues. try setting IE to refresh on every visit.
I think 1 or 2 are likely as I've seen this before on one of my applications where processing was interuppted.

Related

SSRS "Microsoft.Reporting.WebForms.ReportServerException: The report execution has expired or cannot be found" on Macintosh and IOS devices

We're using the SSRS ReportViewer control on an ASP.NET WebForms site. We keep getting this error:
"Microsoft.Reporting.WebForms.ReportServerException: The report
execution j1ouqgbqxj2x1o550udofz3w has expired or cannot be found"
(the j1ouqgbqxj2x1o550udofz3w value varies).
We are only getting this error from site visitors on Macs, iPads and iPhones using the Safari browser. The vast majority of our visitors users are on Windows machines. We have visitors on Android devices but they don't get the error.
The page in question is using 4 SSRS ReportViewer controls to display reports that each contains one chart (the 4 report controls are shown side-by-side in a 4-column table).
We actually have two pages that display the 4 charts in exactly the same way but with one exception: the page that is getting the error is rendering the table containing the SSRS charts inside a DIV (id="divGraphs") that has is initially styled display:none. The DIV is made visible when the user clicks a link calling the JQuery command $("#divGraphs").slideToggle(500); It's re-hidden when the link is clicked again.
The page that has the initially hidden SSRS controls (the one getting the error) is linked to from the one that has the same controls but isn't getting the error. Visitors using Safari only occasionally get the error (I've tested using an iPad and hit the two pages several times before the error was triggered - and I couldn't determine what, if anything, I did to trigger it).
Any ideas?

Umbraco 7 Content editor randomly hangs when generating thumbnails

Umbraco 7.6.6, running under IIS 8.5 on fully patched Windows Server 2011 R2 Standard, 64bit.
Our content editors notice that often when they create a new article (which has some graphics specified) the system hangs after they try to browse to a different article... or indeed anywhere in the front-end site, too. It only affects them; other users are still able to browse and/or create content.
F12 dev tools shows that browser is pending the result of this type of call:
http://whatever.com/media/1101/thumbnail_pmc-1x2.jpg?width=500&mode=max&animationprocessmode=first
If I try to view that thumbnail without the querystring data, it loads instantly... while the first call is still hanging in it's unresponsive tab:
http://whatever.com/media/1101/thumbnail_pmc-1x2.jpg
DEBUG level Umbraco logs just show this:
2017-10-10 17:02:53,120 [P2816/D6/T57] DEBUG Umbraco.Web.UmbracoModule - Begin request: http://whatever.com/media/1101/thumbnail_pmc-1x2.jpg?width=500&mode=max&animationprocessmode=first.
No errors in the umbraco logs, no errors in IIS logs, nothing in event viewer.
Best I can tell, something is going wonky in the browser. Can anybody please advise on how I can troubleshoot further?
Thanks!

MVC - Why session is lost after browser close?

I'm using the code from that topic's accepted answer ASP.NET MVC RememberMe
But, after log in I reopen the browser and I'm not logged in. Why ?
To make this answer-able:
Make sure the browser you're using isn't setup to delete cache/cookies/session information on close (or at least add an exemption for local testing). also, make sure you're not browsing in privacy/incognito mode as that will delete information on close as well.
For a short-term work-around, you can keep the browser window (at least one tab) open and let visual studio open a new tab with each compilation. That should keep session information between tab views (until you inevitably close the window).

ActiveX cannot screen capture a page that is hosted on the same server

I have an app that takes a screenshot of web pages and creates a resized image. The app is basically loading a web page that calls an ActiveX to load a web page using IE resources and take the screenshot. This app has been running on a Windows Server 2003 without any problems for a couple of years.
But now that I have upgraded the server to Windows Server 2008, the screenshot action is timing out. From tests I can see that it successfully takes a screenshot of any web page hosted on the Internet... except pages hosted on the same server.
Whenever it tries to capture a page loaded on a site hosted on the same server as the app, it times out. ESC is disabled and it seems that all other permissions are ok, ie: it works for remote pages but for home pages.
Any ideas as to what can be causing this and how to fix it?
After further testing I have narrowed down the reason for failure being due to the page being popluated from a MS-SQL database record on the same server as the one taking the screenshot. The same page generated on a remote server captures ok. I have further established that the error is not peculiar to the ACASystems DLL because it also affects another DLL for creating MHT files from web pages. This DLL (Chilkat.MHT) also uses IE to load and assemble the web page on the fly and then saves it as a.mht file.
So the problem is more related to IE assembling web pages from MS-SQL while running ActiveX. But to resolve this enigma?
Maybe a routing issue (DNS/hostfile..) ? Does the page loads on local session with IE ?
There is no solution for this without editing the ActiveX code. Since the DLLs in question are third party resources, such editing is not possible.
After testing 3 different ActiveX that load a web page that either take a screenshot or save as .mht, it was found that they all failed when loading a page that was querying SQL on the same server. After contacting the 3 DLL developers we were informed by all of them that their ActiveX has no impact on MS-SQL.
Unfortunately, our tests tell us otherwise. At this stage we are left guessing however this article about in-process vs out-process execution may be related.
The workaround for us to solve this problem was to assemble the page to be captured from request queries passed to the page rather than populate from SQL queries. This alternate works perfectly.

MVC page content displays twice in same browser window

MVC3 Web site displays (razor ) views normally in most cases but when browsing to some views the complete web page ( header to footer ) is displayed twice in the same browser window one page on top of the other. And then nothing on either page works correctly.
Has anyone seen this strange behavior in MVC3 razor before? What could cause this behavior?
Orgbrat
Use F12 developer tools to debug this. Compare IE/FF/Chrome. I've found some anomalies in IE9/CSS - mostly missing elements or a few elements duplicated. I have never heard of entire pages being duplicated. FF/Chrome didn't show the missing/duplicate element behavior. If you can come up with a small repro in IE9 (that renders correctly in FF/Chrome), send it to me and I'll forward it to the IE team.

Resources