Using the Plugin Profiler - plugins

Hi every one and sorry for my poor English.
Im' trying to use the plugin profiler in Dynamics CRM 2011 but I can't really success to use it.
First, when i try to Profile an asynchronous plugin i'm not able to Download the error Log file (fine with synchronous, th message dialog pop and i can click on the link button to download it)
Is that possible to use Plugin profiler on asynchronous plugin ?? If yes, how i download the error log file ? I know asynchronous plugin are not executed at the same place, that probably why i d'ont have the dialog message but i can see the task have been executed in the "Parameters" "systems task" in the CRM itself. The status of the task is waiting. I can see in the error details something like the error log but i'm not able to download it.
Second, with synchronous plugin it work fine. I'm able to download the error log file and put it in the plugin registration debug tool. But when I attach my process and run the start execution my plugin stop at this line wich work fine when the plugin execute itself normally :
IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
//This line i got null references exception
serviceFactory.GetType().GetProperty("ProxyTypesAssembly").SetValue(serviceFactory, typeof(Account).Assembly, null);
I got a null reference exception. This line needed to use early bound in plugin. (If i remove this line i got some error during the plugin execution : "Unable to cast object of type 'Microsoft.Xrm.Sdk.Entity' to type '....'."
After doing some test it's the property he can't get with the Plugin Profiler :
//Null
var myProperty = serviceFactory.GetType().GetProperty("ProxyTypesAssembly");
I got null reference for the property with Plugin Profiler but during a normal execution of the plugin this work fine. Any ideas ??
Thx a lot !

For async plugin you have to select another Profile storage. You need "Persist to Entity" option, not the "Exception". That is step 6 from this link
Hope that helps.

Related

How to Get error message from DB and display it in QGIS Plugin?

I am trying to create a Custom QGIS plugin where i connect the Db and execute the queries from a selected file. what I need is to display the usual error message which gets displayed in the DB while any error is raised during the connection and execution.
Please let me know any ways to get the traceback message and display it plugin, I have also referred to the scripts of the DB manager plugin also. but it seems difficult for me to get exactly how they did it.
From this link, try this one:
try:
#your code here
except QgsProviderConnectionException as e:
raise DbError(e)

Error You called write() but provided no data to be written - on shopware plugin activation

i get the error
Error You called write() but provided no data to be written
when i will activate an plugin on shopware, anybody has the same problem and have an tip for me?
This error message is thrown in the snippet manager and means that the plugin, you are trying to install, is trying do load a snippet-file (like main.ini) which has no data in it. You could either remove the file or fill it with snippets.

Handling pop ups using selenium with perl

I want a solution for the following scenario:
In a page I am uploading an xml and while clicking on the upload button I am going to recieve an pop up for confirmation (I am able to detect this), after this again I am recieving an pop up which I am not able to detect (The page is still getting loaded in the browser ). Kindly help me to sort this out .
I have tried with many solutions for this like: get window ids,titles .
Thanks
You can you use -
$sel->get_confirmation()
This retrieves the message of a JavaScript confirmation dialog generated duringthe previous action. By default, the confirm function will return true, having the same effectas manually clicking OK. This can be changed by prior execution of thechooseCancelOnNextConfirmation command. If an confirmation is generatedbut you do not get/verify it, the next Selenium action will fail.
NOTE: under Selenium, JavaScript confirmations will NOT pop up a visibledialog.
NOTE: Selenium does NOT support JavaScript confirmations that aregenerated in a page's onload() event handler. In this case a visibledialog WILL be generated and Selenium will hang until you manually clickOK.
Returns the message of the most recent JavaScript confirmation dialog.
You should always refer to WWW::Selenium - Perl Client while working with perl and RC.
I have found what is the problem #amey ...I am tring to upload an file which is not actually not permitted due to some security issues with firefox... There was actually an work around for this
http://cakebaker.42dh.com/2006/03/29/file-upload-with-selenium/
.....Which will not work with latest Selenium RC with Firefox since firefox have removed the support for enablePrivilege
https://support.mozilla.org/en-US/questions/944433.
So it is a mandate to shift to WEBDRIVER it seems.............
http://git.erp5.org/gitweb/erp5.git/commitdiff/06898bbfae4f238b7e79ce05048646529216064e
Thanks for your support....
my solution was using the function:
$driver->execute_script("Events.invokeEvent('UserDetailPage:UserDetailScreen:UserDetailToolbarButtonSet:UserDetailToolbarButtons_DeleteUserButton_act', true);");
analyzing what the javascript code does when the Accept button was pressed. and executing that code in the function.

crystal reports project deployment

I'm trying to deploy my crystal reports windows application project on clients computer.
the problem is I can't to load reports.
I installed CRRuntime_32bit_13_0_1 on client computer to solve the problem
but I encounter another error which appears when I try to load any of reports, the error is :
unhandled exception has occurred in your application, if you click continue, the application will ignore this error and attempt to continue. if you click quit, the application will close immediately,
when I click Continue button, my report loads without any data loaded.
what is the solution? the error detail is :
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
It sounds like the path to the data source is incorrect I would recommend ensuring that the path not only exists but has the right permissions.
thanks a lot,
I used manual addressing in assigning report file for my reportDocument.load() method
when program loads on client computer, address goes invalid.
the problem solved!
instad of using reportDocument and manual addressing I make new object from each report file (which haves .cs class) and assing it to crystalreportwiewer.reportsource:
Rad.ExecuteForms.Forms.Reports.CrystalReport1 noticeMainReport = new Reports.CrystalReport1();
noticeMainReport.SetDataSource(Main);
noticeMainReport.VerifyDatabase();
crystalReportViewer1.ReportSource = noticeMainReport;

Weird Error from Xcode Debugger

I am using SQL lite database in my iPhone app. I have a refresh button on my Home screen and upon click of then refresh button I parse data from my web service and store the results into a SQL lite database. When I click on refresh button repeatedly I get an error. The error occurs after a variable number of clicks/refreshes each time. The error is:
Failed to load debugging library at:
/Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/PBGDBIntrospectionSupport.A.dylib
Custom data formatters are disabled.
Error message was: 0xe00805 "dlopen(/Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/PBGDBIntrospectionSupport.A.dylib, 10): image not found"`
After this error, my app crashes and when I logged the error it gives me an error "Unable to open database"
Please help me to resolve this error.
Thanks
Sandy
It would appear that the debugger is having a problem loading the data formatters that create the displays for various datatypes in the debugger window's variable display panel. If you've added any customer formatters, you should remove them.
Try running the program without the debugger and see if you get a crash. If so, the problem is in the app. If not, it's most likely in Xcode itself. I would test a dummy project and see if you get the same error.
It's possible there is hellish recursion somewhere in your code. I have seen that bring the debugger down but not with this error message.