This project is read-only.

.Net 3.5 to 4.5 Conversion.

Oct 28, 2013 at 9:05 PM
Hi Everyone.

I have upgraded the .net framework of an existing website from 3.5 to 4.5

I am now getting an "PageRequestManagerParserErrorException" on all the previous working exports.

I have tried updating the NPOI.dll to the latest release using the 4.0 dll but a few of the classes are not usable (for instance, I can use see the Sheet Interface but not class).

My questions are as follows:
What could be causing the PageRequestManagerParserErrorException?
Why can't I instantiate the Sheet class but i can use ISheet in the new dll?

Oct 28, 2013 at 10:31 PM
I Figured it out...

The problem wasn't related to the dlls or anything server side. For some reason, calling the __doPostBack on the onclick event embedded on an html control broke it.
 <li runat="server" id="liExport" onclick="__doPostBack('ExportMyStuff', 0);" ClientIDMode="Static">Export Results</li>
I ended up wrapping the onClick call in jquery and everything works fine now.
$(document).on('click','#liExport',function () {
                __doPostBack('ExportMyStuff', 0);