Thursday, 30 April 2009

JScript Debugger in Internet Explorer 8

Internet Explorer 8 comes with in built JScript debugger. It has familiar Visual Studio feel and features like call stacks, watches, locals and immediate window.
The follwing example show you how to debug javaScrpt in Developer Tools.
1. Open the debugger by pressing SHIFT+F12, or click the developer tools icon in the command bar or by clicking (Tools -> Developer Tools)





2. After launching the Developer Tools, switch to the script tab.

3. Breakpoint the javasript line by pressing F9.

4. click on start Debugging button


5. Refresh the page. Debugging window will highlight (break) on the breakpoint script.

You can find more about Developer Tools here.

Monday, 20 April 2009

Error installing CRM 4.0 and reporting services on SQL Server 2005 Workgroup Edition

While making a new insallation of CRM 4.0 recently, If you encountered the following error:

Setup requires SQL Server Reporting Services 2005 Hotfix for role creation on SQL Reporting Service SP2 Workgroup edition at the specified Reporting Services Report Server http://crmserver/reportserver

You can request the hotfix from the following link.
http://support.microsoft.com/kb/936305

CRM - Metadata Browser

You can view information about the entities and entity relationships through the Metadata browser.
click an icon in the Definition column, you will see a view of all the attributes in the selected entity.

URL Format is:
http://crmserver[port]//sdk/list.aspx

Thursday, 14 February 2008

Error in VSTS 2008 caused by installing GAX & GAT

Could not load file or assembly 'Microsoft.VisualStudio.TemplateWizardInterface,Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of itsdependencies. The located assembly's manifest definition does not match theassembly reference. (Exception from HRESEULT: 0x80131040)

This is due to some assembly redirects that are added to the devenv.exe.config file by installing the GAX (Guidance Automation Extensions).

Here is the fix, and it's an easy one:
1) Navigate to: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE in Windows Explorer
2) Load devenv.exe.config in your favorite text editor.
3) Find this string: "Microsoft.VisualStudio.TemplateWizardInterface"
4) Comment out the element so it looks like this:

5) Restart Visual Studio 2008. All fixed!

Wednesday, 13 February 2008

WebForm_PostBackOptions is undefine

Recentily I have migrated one of web project to Visual Studio 2008(ASP.Net 2.0) from Visual Studio 2003(ASP.Net 1.1) . After converting the application I was getting javascript error WebForm_PostBackOptions is undefine .

If custom HttpModule is written in your application then you have to check for the relativePath of the request in PreRequestHandlerExecute delegate. If the relativePath contains WebResource.axd then just return.

string relativePath=HttpUtils.GetRelativePath(application.Request.ApplicationPath, application.Request.Path);

if ("/webresource.axd".Equals(relativePath.ToLower()))
{
return;
}