VS2010. Dropdownlist Autopostback works in IDE, not when deployed - asp.net

I have a VS2010 RC ASP.NET web page,when a user changes the drop down selection on an auto postback dropdown, it refreshes a small grid and a few labels in various places on the page.
I know wrapping a whole page in a big UpdatePanel control will cause horror from many of you, but that's what I did. I really didn't want a full page refresh and I didn't know how to update a table on the client side using Javascript and I figured it would be a big change. Suggestions for avoiding this are welcomed, but my main desire is to understand teh error I am getting.
When I do the auto postbacks in the IDE, everything works fine, but if I deploy the code (IIS 5.5 on XP), the second auto postback works but the seconds one gives me his error. Ajax is one big nasty blackbox to me.
Can someone help, please?
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; MS-RTC EA 2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E)
Timestamp: Sun, 28 Mar 2010 17:23:23 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 796
Char: 13
Code: 0
URI: http://localhost/BESI/ScriptResource.axd?d=3HKc1zGdeSk2WM7LpI9tTpMQUN7bCfQaPKi6MHy3P9dace9kFGR5G-jymRLHm0uxZ0SqWlVSWl9vAWK5JiPemjSRfdtUq34Dd5fQ3FoIbiyQ-hcum21C-j06-c0YF7hE0&t=5f011aa5
Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 796
Char: 13
Code: 0
URI: http://localhost/BESI/ScriptResource.axd?d=3HKc1zGdeSk2WM7LpI9tTpMQUN7bCfQaPKi6MHy3P9dace9kFGR5G-jymRLHm0uxZ0SqWlVSWl9vAWK5JiPemjSRfdtUq34Dd5fQ3FoIbiyQ-hcum21C-j06-c0YF7hE0&t=5f011aa5
Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 796
Char: 13
Code: 0
URI: http://localhost/BESI/ScriptResource.axd?d=3HKc1zGdeSk2WM7LpI9tTpMQUN7bCfQaPKi6MHy3P9dace9kFGR5G-jymRLHm0uxZ0SqWlVSWl9vAWK5JiPemjSRfdtUq34Dd5fQ3FoIbiyQ-hcum21C-j06-c0YF7hE0&t=5f011aa5

Do you have the 4.0 framework installed on your deploy box? And in IIS in your web application, set as the website's framework?

I think I figured it out. It was a lucky friggin' guess. I believe the code worked before I upgraded to VS2010 RC.
The UpdatePanel UpdateMode property is set to "Conditional". I do this:
UpdatePanel1.Update()
DropDownList1.Focus()
When I set focus to the dropdown before I called the Update method, it seemed to work.
Is there a replacement for the ScriptManager? I thought I saw somewhere that this is no longer needed in 2010

Related

CRM 2013 - Inconsistent javascript issue crash the web client and user needs to reopen

We are using CRM 2013 on premise version and almost 600 users are using it. We have some inconsistent JavaScript issue (following is the log for same) which happens to users in a day or two. When this issue occurs user can not work in system and they have to open new instance of CRM.
Does anybody knows about this error?
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Unable to get property 'location' of undefined or null reference</Message>
<Line>1</Line>
<URL>/_static/_common/scripts/main.js?ver=1676323357</URL>
<PageURL>/main.aspx#313155368</PageURL>
<Function>anonymous($p0,$p1,$p2){this.$3_3.get_currentIFrame()&&Mscrm.PerformanceTracing.write("Unload",this.$3_3.get_currentIFrame().src);this.$H_3=$p0.toString();this.$26_3();this.$1A_3();this.$1J_3();if($p0.get_isLocalServer())$p0.get_query()["pagemode"]="iframe</Function>
<CallStack>
<Function>anonymous($p0,$p1,$p2){this.$3_3.get_currentIFrame()&&Mscrm.PerformanceTracing.write("Unload",this.$3_3.get_currentIFrame().src);this.$H_3=$p0.toString();this.$26_3();this.$1A_3();this.$1J_3();if($p0.get_isLocalServer())$p0.get_query()["pagemode"]="iframe";addPassiveAuthParameters($p0);var$v_0=$p0.toString();if(IsNull($p2))$p2=false;var$v_1=this.$18_3($p0,$p2);if($v_1){if(this.$2z_3()){window.location.reload();return}this.$2d_3();this.$1s_3();Mscrm.PerformanceTracing.write("Navigate",$v_0);!Mscrm.Utilities.isIE()&&this.raiseEvent(Mscrm.ScriptEvents.UpdateTopLocation,null);this.$3_3.get_currentIFrame().contentWindow.location.replace($v_0)}else{this.$10_3();var$v_2=this.get_contentWindow().Sys.Application.findComponent("crmPageManager");if($v_2){!Mscrm.Utilities.isIE()&&$v_2.raiseEvent(Mscrm.ScriptEvents.UpdateTopLocation,null);var$v_3={};$v_3["sourceUri"]=Mscrm.Utilities.getContentUrl(null);$v_2.raiseEvent(Mscrm.ScriptEvents.IFrameReactivated,$v_3)}}window.self.InnerIFrameSrcChangeTimestamp=(newDate).getTime();this.title=$p1;if(window.LOCID_UI_DIR==="RTL"&&$p0.toString().indexOf("PersonalWall")>=0&&window.UseTabletExperience)this.$3_3.get_currentIFrame().style.position="RELATIVE"}</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1366x768</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2015-04-20T15:41:12</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{E8BBA7AE-A552-DE11-B475-001E0B4882E2}</OrgID>
<UserID>{614837CD-448B-DE11-A5E1-005056970D6C}</UserID>
<CRMVersion>6.1.2.112</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>
I would ensure you are on at least Microsoft Dynamics CRM 2013 SP1 as that takes care of many of the JavaScript issues like the ones you are seeing above. You can download that from http://www.microsoft.com/en-us/download/details.aspx?id=43109. In addition to that there is an Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 that is available as well at https://support.microsoft.com/en-us/kb/2953252 .
In addition to that, you can typically ignore/hide these script errors by changing a system setting as described here to either send these error reports to Microsoft always or to never send them to Microsoft. This has worked for me in environments where I was receiving similar JavaScript errors that were internal to the CRM platform code vs. custom JavaScript code errors.
"1.Navigate to Settings >> Administration >> Privacy Preferences
2.Click on Error Reporting and check the box for “Specify the Web application error notification preferences on behalf of users“ and choose either of below options:
Automatically send an error report to Microsoft without asking the user for permission
Never Send an error report to Microsoft
Above steps will be applied Organization wide.
"
If these steps do not work, then it would probably be a good scenario to log a support case with the Microsoft Dynamics CRM Support team given the impact to your organization to have them dig in and as needed to work with the product team to figure out the root cause of this problem.

Mediaelements.js Unspecified error

Im using mediaelements.js on a wordpress site with an MP4 video.
In IE9/Firefox/Chrome it works fine.
But in IE 7/8 when clicking on play u get the following error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; CMNTDF; BRI/1; InfoPath.3; .NET4.0C; BOIE9;ENGB)
Timestamp: Thu, 10 Jan 2013 13:34:50 UTC
Message: Unspecified error.
Line: 49
Char: 5
Code: 0
URI: http://website.local/page/independence/
I have even tried using the wordpress plugin they provide and get the same result.
anyone else had an issue like this?
Thanks
As of WordPress 3.6, mediaelements.js is included in WordPress and videos can be embedded using the Post Editor as outlined at http://codex.wordpress.org/Embeds. It has been a month or two since I last looked, but I believe they stopped developing the wordpress plugin when it was decided it would be included in WP 3.6.
To answer you particular error specifically, can you provide either a snippet or URL to the page?

System administration information missing in CME after Tridion installation

We are done with installation of SDL Tridion (migration from 5.3 to 2011SP1)
The tridion installation went smoothly.
However while accessing CMS from browser we are facing some issues.
Not able to access any Administration item (users, groups etc) . We got error in ribb"Invalid URI: cme:accmng" while accessing any tridion administration item. The publications are showing content properly.
We reinstalled tridion and now the issue remains with new JS error on page:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR
3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E) Timestamp: Wed, 17 Oct 2012 14:35:40 UTC
Message: Error: The remote server returned an error: (404) Not Found.
Line: 17 Char: 3650 Code: 0 URI:
http://[Serverurl]/WebUI/Editors/CME/Views/Dashboard/Dashboard_v6.1.0.55920.2_.aspx?mode=js
Did we miss something?
3 - Also the tridion MTSUser, should it be a local Administrators on server? Can we change this user post installation (like for running Tridion com+ services)?
4- Since we have migrated, we have all the existing tridion administrators present in database. With which user should we log in, when we access tridion for first time? will any existing tridion Administrator do?
Thanks.
That's a lot of questions Huston. I'll answer where I can.
1+3 - Given that you do see the Publications, but not the System administration items, I'd check what account is specified in the Tridion COM+ application.
2 - For your second problem, check the actual content of that URL. Typically it contains an error 500 response that your browser is now trying to parse as JavaScript.
4 - Since your users already existed before the migration, you should be able to log on with any of them.
It looks like your problems might all be caused by the same cause: which is hiding behind #2 or #3.
Many thanks for your valuable inputs.
This error was because the default tridion user (MTSuser) did not have access to Database.
Even after giving access, we had to reinstall tridion to resolve the issue.
Thanks again.

Focus error in IE8 when not focusing

I upgraded my site from .NET 2.0 to .NET 4.0 a few weeks ago, including an upgrade of my ajax toolkit. Tested with IE9, FF, and Chrome, and it all worked fine.
I now noticed that 3 of my pages no longer load properly in IE8. I get:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729; BRI/2; InfoPath.3; AskTbORJ/5.13.1.18107; BO1IE8_v1;ENUS) Timestamp: Wed, 11 Jan 2012
16:32:11 UTC
Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
All 3 pages contain ajax tab controls with more than 10 tabs and not much else. The message says it's a focus problem, but I'm not setting the focus anywhere. They were working before the upgrade, and since then I haven't changed anything more complex than ForeColor on my error messages. I have other pages with ajax tab controls that are working perfectly.
I've been googling all day, but nothing I've seen seems to work.
EDIT: I've narrowed down the problem somewhat. Error shows when there are nested tab controls.
Looks like it's a problem with the November release of the AJAX Control Toolkit
http://ajaxcontroltoolkit.codeplex.com/workitem/27053

Peculiar ASP.NET Error Message

This is displayed as a client message ("Error on page.") in the status bar. I think at this point, the app is using some kind of AJAX callback in response to a login button.
Trying to deploy on a new Windows Server 2008 testbed (runs fine in debugger and has been deployed on Windows Server 2003, but we're trying to upgrade our testbed and production images for future installations.)
Where do I go next to track down the root cause?
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; MDDR; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; AskTbARS/5.11.3.15590)
Timestamp: Tue, 22 Mar 2011 18:24:57 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
Line: 5
Char: 62099
Code: 0
URI: http://XXX.XXX.XXX.XXX/ScriptResource.axd?d=h-4WZuFBCcT-1QOz27ZRxMnCrM1dJDc_fETsNUPAfsPgng_3pAoC80eScNiAc9AAVaTQPonQz7cMCVz6SHzZIJ0Tvj-YmVHBRaokQGWQIKRz7KO0y6B7UKgccbT4YFzWqhNPS7kUsVnHQX2F9zBJAK9qeEI1&t=40fa519
Just a shot in the dark, but it might be that the ASP.NET AJAX resources aren't loaded on the new server. I vaguely remember having the same issue a year or so ago and, IIRC, I had to load the .NET Framework 2.0 AJAX libraries on the server.
This is just a guess. Maybe it's being run on IIS7 now, and the configuration is different for IIS7. If you are just trying to get it working, in IIS7 server settings, trying switching your application pool to from Integrated Mode to Classic Mode.

Resources