CRM 2011 Rollup 12 Javascript errors - crm

We recently upgraded to rollup 12 and we are now experiencing JavaScript errors being thrown whenever a grid related ribbon is presented containing ribbon customization the dialog message is stating a "Syntax Error" on line ~60 million of an internal CRM resource. This seems to only happen with customized ribbons (customized using the Ribbon workbench).
Has anyone else experienced this? If so, any tips for resolution?

After quite a bit of debugging we found that the issue was caused by the customized ribbon. We had a button we added to the ribbon that was calling into a javascript library. What was left off was the $webresource directive.
Hopefully this helps someone, the errors thrown for this do not help debug the root cause.
Web Resources for Microsoft Dynamics CRM

We had a custom button (created via ribbon workbench) with an enable rule that used JavaScript.
It worked correctly in the web client but would throw errors in Outlook.
This was because Outlook was refreshing the ribbon and not providing the Xrm.Page.ui object.
In the end we had to wrap all our enable rules with a check to see if it was defined.
e.g.
if(Xrm.Page.ui !== undefined) {
//Do some work
}

Related

visual studio 2015 could not find any controls on the page in code

I just inherited a project from a former colleague which was written in Visual Studio 2015 Community.
I am using 2015 Professional.
After I open his project, I see lots of errors reporting:
Severity Code Description Project File Line Suppression State
Error BC30451 'GridView_COMPANYINFO' is not declared. It may be
inaccessible due to its protection
level. CorporateActions C:\TTDAS\HJ\Projects\CorporateActions_Product\RecoveryTool_20160330\Demo_HoldingsList.aspx.vb 187 Active
In code file, I also see this, no control is found in the dropdownlist:
His project is in UAT now so I know there shouldn't be code issue in it.
I kind of recall I had similar issue in VS2005 but in most cases the issue just disappeared without any change.
Can someone share me any idea on how to fix this?
This is really driving people nut.
Any clue is highly appreciated. Thank you in advance.
I did lots of googling and many accepted solutions actually scared me away by asking people to remove and reinstall VS, the issue was fixed quite simple:
For each page that has the error reported, add any control for example, a button, and then double click the button to go to code behind, by double clicking the button, VS will be able to find out the button in the code behind, more importantly, all the missing controls on the same page are automatically identified again. Once I did this on all the reported pages, the project is up and running again, all I need to do is to remove the extra buttons.
I hope this is helpful.

Visual Studio 2013 ruins CSS in Debug

Couldn't find answer to this question, and as this happened 2nd time, decided that it would be wise to write this here.
Problem: While debugging ASP.NET website, some CSS is rendering wrong. Or not rendering at all.
Edit: It seems, that the same problem also somehow caused following problem - in debug GridTelerik.SelectedItems was shown as null, when it really should contain values.
Reason: Browser Link, that by default is enabled (Description what it is)
Solution: Just disable it:

Wordpress Page Builder Style Loading Error

I'm having an issue with SiteOrigin's pagebuilder plugin. I have made an entire website using this plugin (therefore I'd prefer to keep using it) but all of a sudden I can no longer add styles (such as backgrounds and pictures behind the widget) to the visual editor widget within rows that I am working on. All I see is just a constant loading screen. This only happens when using the visual editor widget, as on SiteOrigin itself I can edit rows fine, I just can't use the visual editor anymore.
Here's what it's supposed to look like:
http://imgur.com/OwUiDmD
Here's what mine looks like:
http://imgur.com/pLO5Bpk
Depending on the row I am using neither may load.
Here is a list of the plugins I am using:
Black Studio
TinyMCE Widget
Contact Form 7
Easy Google Fonts
Lightbox Plus Colorbox
Page Builder by SiteOrigin
SiteOrigin Widgets Bundle
Spacer Title Remover
I have deleted both siteorigin plugins as well as the visual editor plugin on my build and reinstalled them to no avail. Is this a common problem? Does anyone have any idea on how to fix it?
Many Thanks,
JDB
EDIT: Per Omer's advice, I have found the error using Chrome's Javascript Debugger.
http://www.website.com/wp-admin/admin-ajax.php?_panelsnonce=3bf1af34d8 503 (Service Temporarily Unavailable)
http://www.website.com/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,quicktags,plupload,editor&ver=4.3.1
Not sure where to go from here... any ideas?
Thanks
JDB
Haven't used this plugin before, but it looks like it uses ajax to fetch data, and an error in javascript is avoiding the page to load properly. To check if this is the case, inspect your page with chrome developer tools and on the right side look for javascript errors (console). Once you know which file is responsible for the error then you will have to fix that error and everything will start working fine.

How to debug Backbone/Marionette

I am working on a task on asp.net and am idle on one aspx page, where it helps to increase/decrease the calendar cell, I just wanted to know the value of a variable by debugging so that , i will know what to change am new to marionette and need some help to get those values so that i can go ahead with this issue, am attaching the script.
i even searched many sites to debug the backbone, got chrome plugin to debug but of no help.
Add <%debugger%> at the top of your template. It will break an attached JavaScript debugger (such as Chrome's Dev Tools), when Underscore begins to populate the template.

Inner Active add Api with QML

I am trying to get the inner active add Api to work with QML. I have found this Nokia example: http://projects.developer.nokia.com/fifteenpuzzle on how to do it. I plan to just use the add widget they use in my own app but when I compile the app it gives this error: "'KErrNone' was not declared in this scope" on anything excpet Symbian and once it runs on Symbian the add area is just black and after a while I get this error: "AdBannerWidget::onNetworkError = "Error downloading http://cdn1.inner-active.mobi/mnt/InnerActive/Resources/USAGC/eng_pic.gif - server replied: Not Found"".
Please help I have no idea what could be causing this, it's probably something stupid but I really need help.
I also get a error while trying to design the qml because of it not being able to "import Analytics 1.0"
I do have a inner active account and I have tried it using my own tag they generated for me but it still doesn't work.
My name is Nirit and I'm a support manager at inneractive.
we just released our new Beta QML open-sourced project, it is now available on your Dashboard (the SDKs tab).
Please download the .zip file and take the time to read through our clear and concise documentation.
If you have any questions or comments, please don't hesitate to contact me.
Nirit (nirit#inner-active.com).
For the black widget and network error, I bet you have to register first with inneractive to get an actual account.
"KErrNone" seems indeed symbian only. Might be that the project is just no meant to compiled on desktop as such. You maybe would have to #ifdef Q_OS_SYMBIAN some parts of it.

Resources