Archive for ‘VS 2008’

February 27, 2012

ASPxNavigationBar – JavaScript when NavBarItem clicked

following code example explains how to execute a java script function when any an items in a ASPXNavbar is clicked.

<dx:ASPxNavBar ID="nbMenuSPISLeedOwners" runat="server" Width="100%" AllowSelectItem="True"
DataSourceID="SiteMapDataSource1" OnItemDataBound="ASPxNavBar1_ItemDataBound">
<ItemStyle HorizontalAlign="Left" />
<GroupHeaderStyle HorizontalAlign="Center">
</GroupHeaderStyle>
<ClientSideEvents ItemClick="OnItemClick" />
</dx:ASPxNavBar>

<dx:ASPxLoadingPanel ID="loadingPanel" runat="server" Text="Redirecting&amp;hellip; Please wait!"
ClientInstanceName="loadingPanel" BackColor="Pink" >
</dx:ASPxLoadingPanel>

The Javascript should be as follows:

function OnItemClick(s, e) {
 loadingPanel.Show();
 }

April 26, 2011

Dev Express v10.1 Compilation Error Message: CS0012

CS0012: The type ‘DevExpress.Utils.IAssignableCollection’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘DevExpress.Data.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a’.

check your web.conf file whether the said “DevExpress.Data.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a” entry exists or not. if not just add and recompile. Usually when you add any DevExpress controls to your form Visual Stuido automatically adds the entries as above. if you replaced the web.conf file with another due to so many reasons this used to happen.

January 19, 2011

WSCF.blue

This is a Visaul Studio .NET 2008 add in that we can use to generate data contracts of a schema (XSD types). Earlier we were using the XSD2Code generater to generate our contracts but it lacks some features such as ordering, etc. In that case we have to do those modifications manually. Finally the WSCF.blue is a good tool and we don’t have to do anything manually. Using the wizard we can accomplish what we need.

you can download the tool from codeplex.

January 18, 2011

Missing Orchestration Files templates in Visual Studio 2008

I couldn’t find the Orchestration Files template in VS 2008 when i tried to do some testing projects today. It was there and couldn’t understand why it did disappeared suddenly.

without the orchestration templates :

just run the command  using the Visual Studio 2008 command prompt :  devenv /installvstemplates to reinstall your templates for VS 2008.

after running the above command :

January 12, 2011

Cannot create new BizTalk projects in Visual Studio Team System 2008

Suddenly I was unable to create BizTalk projects or even I was  unable to open existing BizTalk projects in my machine. Visual  Studio Team System 2008 started getting strucked when I started to do so.  I checked the event log and there was no events at all something related to VS 2008. But when I googled in some forum posts in MSDN says that when Visual Studio 2008 is repaired or when a Visual Studio 2008 update is installed, the value of the following registry entry is changed from csproj;btproj to csproj:

Location of those registry entries as below:

  • For 32-bit versions of Visual Studio 2008:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{FAE04EC0-301F-11d3-BF4B-00C04F79EFBC}\PossibleProjectExtensions
  • For 64-bit versions of Visual Studio 2008:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\Projects\{FAE04EC0-301F-11d3-BF4B-00C04F79EFBC}\PossibleProjectExtensions

For you to resolve the error just Update Value data in the Edit String dialog box to include the btproj project extension in addition to the csproj. So the finally entry in the value data should be csproj;btproj.

But in my case the registry entry was okay and correct.

So finally decided it may due to some corrupted installation files and just repaired the BizTalk installation. Finally I was able to open all my BizTalk and new BizTalk projects without any hassle anymore. J

so i started blogging for 2011 🙂

March 17, 2010

Consuming a Web Reference in a class library (C#/.NET) – VS 2008

when you tried to add a web reference to a Class Library in VS 2008, by default it will add a Service Reference (WCF). I have seen this option only in VS 2008 and not in VS 2005. If you need to add a Web Reference then at the time of adding a Service Reference, click the Advanced button as depicted below :

image

After that click the Add Web Reference as below:

image

after that you will be prompted with the usual add web reference dialog.

image

March 14, 2010

Setup says VS Integrated Shell 2010 ENU installed when uninstalled, Grrrr!!!

I came across a situation where i had to remove the Team Explorer version 2010 Beta1 from my machine. I have uninstalled it via Uninstall option from the Programs and Features. When i tried to install TFS 2010 RC Team Explorer setup it says “VS Integrated Shell 2010 ENU” exists and have to remove. I did the uninstallation and restarted the machine even. Nothing happened and when i ran the installation it prompts me again saying that “VS Integrated Shell 2010 ENU” already exists. I checked the Programs and Features and it was not there. 😦

I was something like this :

image

finally found the solution.

simply run this command :

msiexec /uninstall {874D5E2B-AACE-303A-B3EC-2563E071473E}

lets we dig little bit deeper in to the above command.

Initially you have to to do is to use msiinv.exe (thanks to Aaron Stebner’s to exposing the tool) tool to see if MSI thinks the integrated shell is installed or not. So from that tool it will lists all the installed programs and under that list you can see this ghost “VS Integrated Shell 2010 shell ENU” still exists in the list.

what you have to do is just note down the Product Code and use the same code to execute the above command.

March 14, 2010

VS2008 Professional connecting to TFS 2010 RC on Windows Server 2008

Assuming that you have already installed VS 2008 professional edition (no problem eventhough you have installed the VS 2008 SP1 because anyhow you are going run it again) in your machine and in your machine TFS 2010 RC is installed and configured successfully.

Please follow the following steps as its :

  1. You have to install Team Explorer 2008 over your VS2008 Professional SP1.
  2. You need to reinstall VS2008SP1 to update team explorer.
  3. After that you have to install Visual Studio Team System 2008 Service Pack 1 Forward Compatibility Update for Team Foundation Server 2010 (Installer) from this link.
  4. When you connect from VS2008, you need to enter the full URL (ex: :/tfs”>https://<MyServer>:<port>/tfs)

image

March 3, 2010

You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5.

When you are trying to install Visual Studio 2008 professional edition on a Windows 2008 R2 suddenly you will be prompted to an error saying “You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5.”



In this case what you have to do is, from the Service Manager install the .NET Framework 3.5.1 Feature as Windows 2008 R2 is integrated with .NET Framework 3.5.


so before installing VS 2008 make sure that you are enabling this feature .NET Framework 3.5.1 Features via the Add Features Wizard in Server Manager.

November 8, 2009

Microsoft JScript runtime error: ‘Sys’ is undefined

After some time back was working in a Development project and was came across an error :

Microsoft JScript runtime error: ‘Sys’ is undefined,

as i went on hunting for the solution for this there are so many answers i was able to find. But the error which was triggerd in my application was due to not specifying httphandlers and httpmodules handlers in web.conf file.

I will try to post the code later as for the moment i couldn’t post html stuffs in blogger.