Well you should reinstall the Crystal Report run time on the server again to re register the class object.
I know what the error code is from c++ programming, and it means you have to elevate your permission level, but I find it strange that you should have to do that.
So I guess if your running on IIS6, then network service has to have permission on the webform, and for IIS7+, the application pool identity. Mayne the program writes temp files that need permission to write or modify.
Hey the thing is I know exactly when and where to use them it just seems that all through my code there are 100's of try catch blocks and I read very conflicting articles on wether or not this is best coding practice.
Although everyone have their own opinion but the main important thing is user should not experience unexpected behavior. if there is something going wrong you need to catch and that could be possible through try..catch and logging the messages.
so resolving errors are more important then best practice... keep coding...
I understand that with tools like Codeit.right and The Visual Studio Analysis that Try Catch(s) are to be used sparingly and to catch only certain types of errors. You should try to wirte tests into the code in order to narrow the parameters of the code so that you will be able to report back to users problems. Hiding errors in Try / Catch in not the proper use of the machanic.
Hope this sheds some light on the use.. Try running the code by removing all the Try/Catch and if there is a better way like a If/Then that can cover the error then it is so much better.. in Addition Try/Catch are generally slower.
Last Visit: 31-Dec-99 18:00 Last Update: 20-Apr-14 12:45