yasser777 / nettiers

Automatically exported from code.google.com/p/nettiers
0 stars 0 forks source link

EntLib5 Exception Handling #391

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As discussed in the forums, there are issues surrounding changes within EntLib5 
and exception handling.

Attached is a small patch which follows the suggested Microsoft changes.

Original issue reported on code.google.com by james.pa...@gmail.com on 5 Jul 2011 at 4:18

Attachments:

GoogleCodeExporter commented 9 years ago
Jeff what do you think about this patch? I think it has the possibility to have 
side effects that we don't know about due to re-throwing the error instead of 
returning the bool value. James did you run into any side effects? What kind of 
scenario are you using this change in?

-Blake

Original comment by bniemyjski on 5 Jul 2011 at 4:31

GoogleCodeExporter commented 9 years ago
I have been using this in production for several months with 250k users without 
problems.  I did have problems when not using this though.  Just wanted to 
share my experience.

Original comment by james.pa...@gmail.com on 5 Jul 2011 at 4:37

GoogleCodeExporter commented 9 years ago
PS: Using it with ASP.NET with all the users.

Original comment by james.pa...@gmail.com on 5 Jul 2011 at 4:38

GoogleCodeExporter commented 9 years ago
What kind of issues specifically where you experiencing (stack trace or app 
crashing etc...), so we can further investigate this. 

How can we reproduce this behavior and verify ( I know messing with entlib 
config..) but I want to know scenarios you ran into specifically (E.G., loaded 
500+ users and the app tanked) :D.

Original comment by bniemyjski on 5 Jul 2011 at 4:40

GoogleCodeExporter commented 9 years ago
Can somone post the link to the forum discussion so I an have some context on 
why the change and what the problem was.

Original comment by jmhin...@gmail.com on 5 Jul 2011 at 7:04

GoogleCodeExporter commented 9 years ago
http://entlib.codeplex.com/discussions/229116

Original comment by james.pa...@gmail.com on 6 Jul 2011 at 7:58

GoogleCodeExporter commented 9 years ago

Original comment by james.pa...@gmail.com on 6 Jul 2011 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago
For me the problem occurred even at development time.  Just creating an ASP.NET 
website and using the entities/services in the code behind.  I was not using 
the generated web project.  The problem I had was seen by others in the link 
above and also discussed on the codesmith forum.

I've resubmitted the patch as I the first wasn't complete due to losing the 
original patch file and having to recode it.  I ended up missing a using 
statement.  Re-added it and it compiles fine again.

Original comment by james.pa...@gmail.com on 6 Jul 2011 at 9:18