Activity overview
Latest activity by memeDeveloper
ExceptionReporting.Report(ex) Missing Local Var/Stack Trace
Hi,
I am trying to report exceptions to smart assembly. I have a method in my application which is called whenever an exception occur. I want to add error reporting in that method. I have used this...
Hi Jessica,
I am doing what you are saying but still I am getting the same error. The name I used is the one that what I enter in SSMS for "Server name" to connect to the SQL server (which is also the computer name). Then I give the instance name. Still I am getting that error. / comments
Hi Jessica,
I am doing what you are saying but still I am getting the same error. The name I used is the one that what I enter in SSMS for "Server name" to connect to the SQL server (which is also ...
Thanks for the reply. Actually this is what I am tried , by database name I mean the SQL Server Name which I think what you mean by Computer Name. So I tried it like this SQL_Server_Name\Instance_Name and this gives the same error. I am using SQL Server 2008 and windows authentication. Do I have to set anything else manually in SmartAssembly.settings ? / comments
Thanks for the reply. Actually this is what I am tried , by database name I mean the SQL Server Name which I think what you mean by Computer Name. So I tried it like this SQL_Server_Name\Instance_N...
I just noticed that Smart Assembly created its own instance in the database and it is not using the instance we specifically created for it! It created an instance called SmartAssembly. Did this happen because we specified the database name only with no instance. How can we specify our instance without getting the error "Could not connect to SQL server". Now in options if I use the instance name created automatically by smart assembly I still get the same error message? / comments
I just noticed that Smart Assembly created its own instance in the database and it is not using the instance we specifically created for it! It created an instance called SmartAssembly. Did this ha...
Hi Simon,
thank you for your patience and replies. I was just able to build the project with merging all assemblies with no OOM exception , I have closed all the other applications on my system to achieve that, it happened once only. Anyway, merging all didn't solve all these dependencies, types errors I only get when I use merge. Is there any other way to make ExceptionReporting.Report work without merging that sepcific assembly (this is what started the merge option and honestly I think merging assemblies can cause lots of failures in my solution).
If not, all I am trying to do is report handled exceptions (exceptions which has a try/catch) I was thinking if there is a way to call the OnReportException method in the UnhandledExceptionHandlerWithAdvancedUI class (which takes care of unhandeld exceptions). because it is working for unhandled exceptions without the need of merge. I noticed that there is a method UnhandledExceptionHandler.ReportException(Exception e, int methodID, object[] objects) , is it possible to use that and what are the method id and the object parameters?
I guess I am trying to make reporting handled exceptions take the same path as unhandled exceptions using the Unhandled Exception Handler because it is working without the need of a merge.
Can you suggest anything regarding that ? / comments
Hi Simon,
thank you for your patience and replies. I was just able to build the project with merging all assemblies with no OOM exception , I have closed all the other applications on my system to ...
SQL Server 2008, does smart assembly create the tables automatically once I link it to the correct sql database ? What tables should I be seeing can you give me some names so that I can check that? I only see system tables, system view and all other system stuff , nothing SA related. / comments
SQL Server 2008, does smart assembly create the tables automatically once I link it to the correct sql database ? What tables should I be seeing can you give me some names so that I can check that?...
All of these problems came from me trying to do error reporting for handled exceptions.
Let me give you a background, I was trying to report errors (handled or unhandled) for some of them I need to show the dialog box and for others just report silently in the background. So I got this reply ( http://www.red-gate.com/MessageBoard/vi ... hp?t=15425 ) and it worked, I just modified the OnReportException method as mentioned. Then came the problem of handled exceptions and that they are reported using ExceptionReporting.Report which calls the dialog box (and I needed it to be in the background for some which I am not sure if it can be done because I don't know if ExceptionReporting.Report call goes to the OnReportException method where I am doingthe silent reporting ). Then the problem of ExceptionReporting.Report came and you know the rest.
Sorry for the long description but I thought you should the details. / comments
All of these problems came from me trying to do error reporting for handled exceptions.
Let me give you a background, I was trying to report errors (handled or unhandled) for some of them I need to...
Hi Simon,
My solution is around 1 GB in size and I am merging around 35 assemblies and embedding 24 assemblies. I have automated error reporing, assembly embedding and merging turned on. Does smart assembly have any input size limitation ?
When I was embedding all of them , no issues or errros were there except for the ExceptionReporting. Report error message so I took your advice and merged the assembly that has the handled exception it was getting built sometimes and giving that exception other times. It fixed the ExceptionReporting. Report but cause the spring errors I told you about that had to do with types not found etc. So I thought I will merge all the assemblies that has to do with the application (excluding third party tools which I am embedding) but I was not successful because of the memroy exceptipon.
Thanks / comments
Hi Simon,
My solution is around 1 GB in size and I am merging around 35 assemblies and embedding 24 assemblies. I have automated error reporing, assembly embedding and merging turned on. Does smart...
One more thing , I did a search of the old assembly name as you told, which is the second string in the error "a.b.c" and it all appears as a "using" statement or a namespace. I am using spring as well and these errors has to do with it. / comments
One more thing , I did a search of the old assembly name as you told, which is the second string in the error "a.b.c" and it all appears as a "using" statement or a namespace. I am using spring as ...
Hi Simon,
Thanks for your reply. Yes I think you are correct. I actually copied the physical files of the assemblies that got merged into the smart assembly poject folder and these errors are not there anymore which means that merging them cause these errors and all these error are spring related. I am not sure what should I do about it in code.
Now I am facing anotehr SA exception when I try to megre more assemblies, while the project is building in smart assembly I get the "OutofMemory" exception and it doesn't succeed. It reaches 98% sometime and it fails. I looked at the task manager and how much memory is Smart Assembly is using while the build project and it reaches 1,286,988K but still the systems memory is only around 48%.
I am using Smart Assembl7 6.7.0.239 on Windows 7 64bit operating system.
Please let me know if you have anyway to fix this memory exception because I am being diverted by all these Smart Assembly erros from my main tasks.
Thanks / comments
Hi Simon,
Thanks for your reply. Yes I think you are correct. I actually copied the physical files of the assemblies that got merged into the smart assembly poject folder and these errors are not t...