This user hasn't shared any biographical information
I want to create a Metro style application using C# on Windows 8, I have already installed Windows 8 release preview on my laptop. You can see some screen shots here. Now I need to install the Visual Studio 2012 and I tried to install the express version and I have got this error (version conflict)! The reason is, the latest Visual Studio RTM versions won’t install on Windows 8 Release Preview. So we need to choose the correct version of Visual Studio 2012, So I have chosen the Visual Studio 2012 RC to install on my Windows 8. Okay here are the steps:
Step 1: Download the Visual studio 2012 RC and double click on setup.exe. I have selected Ultimate version.
Step 2: Installation started
Step 3: Setup requires 8.95 GB minimum, click agree and Next
Step 4: It will ask for optional features to install, I have selected all
Step 5: After clicking Install then a window will be opened. That will show the acquiring and applying process..!
Step 6: Wait for few minutes to complete these processes
Step 7: Yes, setup completed successfully and click the LAUNCH button
Step 8: After few minutes below window will ask you to choose the default environment setting and I have chosen the general development setting. Click Start Visual Studio button.
Step 9: Visual studio is loading user settings
Step 10: Yes..Visual Studio is ready to rockz..! Just click the new project and select the language, I have selected C#
Step 11: Choose the Metro Style application and continue your coding..! Okay I will try to post my first Metro Style Application next! 🙂
That’s all guys! Happy programming n metro styling..!
“The type or namespace name ‘Workflow’ does not exist in the namespace ‘Microsoft.TeamFoundation.Build’ (are you missing an assembly reference?)” -TFS 2010
When I try to Deserialize Process Parameters to extract the BuildSettings, I have got the following error message:
“The type or namespace name ‘Workflow’ does not exist in the namespace ‘Microsoft.TeamFoundation.Build’ (are you missing an assembly reference?)”
But I have already added the dll to the project! (You can see the Dlls located at “C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies”)
After spending few minutes on the web I have found the solution from this post! The problem of this error is that, Visual Studio 2010 sets the .NET Framework Version to “.NET Framework 4 Client Profile” in default.
So the solution is to change the Target framework to .NET Framework 4
When you change the target framework, it will ask for the confirmation, just click Yes to continue..!
That’s all, we are done with this error!
Happy TFS programming..! Thanks R./
Posted in Windows 8 on September 27, 2012
Oh yes..! Finally I have installed Windows 8 release preview with dual boot on my laptop! I have faced several issues while installing Windows 8 on separate partition, but the following issue gave me a very bad experience!
“Windows cannot be installed to this hard disk space. The Partition contains one or more dynamic volumes that are not supported for installation”
I have tried my best to keep my previous Windows 7, but I could not convert dynamic volumes to Basic volumes without deleting them. So I have formatted and installed both operating systems from the scratch! 😦 If you face any problem like this just try this and this! 🙂
Okay, here are some nice screen shots from Windows 8 release preview!
1. Dual boot screen, we can choose either 7 Or 8 within 60 secs
“The .Net Framework installed on this machine does not meet the minimum required version: 4.5.50709” Visual Studio 2012
I wanted to develop a metro style application using Visual Studio 2012 on Windows 8 and I have already installed the Windows 8 release preview on my laptop! (Dual boot with Windows 7, you can see some screen shots here :)). I was trying to install the Visual Studio 2012 express edition and I have got the following error message! 🙂
I have spent few minutes on the web and found out there are some versions conflict, so we have to choose the correct version with operating system! ( The latest Visual Studio RTM versions won’t install on Windows 8 Release Preview)
So I need to install either one of the RC versions of Visual Studio OR the 90 day evaluation version of Windows 8 version! I will choose the Microsoft Visual Studio Express 2012 RC for Windows 8!
That’s all guys! Happy Installing..!
Posted in SQL Server on September 22, 2012
I have selected all the features including SSRS and SSIS, and the event log was showing like below.
After spending few minutes on the web, I realized the problem with my performance counters and I wanted to rebuild it on my laptop. Here is the steps to rebuild the performance counters!
Step 1: Open the command prompt (Make sure to Run As Administrator otherwise you will get an error :))
Step 2: Enter the “LODCTR /R” command and hit Enter key
You will be getting the following success message!
That’s all, try to install the SQL Server again, No problem at all!
Accessing the data from the database Or some other external data source and display on a SharePoint site is not a big deal these days. As developers we can create a web part and deploy it on the SharePoint but without writing any code, how we can display? BDC is the way to do so…!
Business Data Catalog
I am going to use very basic steps to create the BDC on my SharePoint 2007. If you want to create from the scratch without using any tools such as Application Definition Designer then you can follow this post.
These are the simple 4 steps I am going to use:
- Create a table and insert some values in SQL Server database
- Create an ADF using Application Definition Designer
- Import the ADF file into the Shared Service Provider(SSP)
- Configure the BDC on SharePoint
CREATE A TABLE AND INSERT SOME VALUES IN SQL SERVER DATABASE
You can see this post to create a sample database and we will retrieve this data using BDC. I have named Database1 and Table1
CREATE AN APPLICATION DEFINITION FILE (ADF) USING APPLICATION DEFINITION DESIGNER (ADD)
You can see this post to create an ADF sample and the file name is ADF_Table1
IMPORT THE ADF FILE INTO THE SHARED SERVICE PROVIDER (SSP)
Go to Central Administration (CA) and click your shared service provider (SSP) (Mine is SharedServices2)
Click Import application definition in the Business Data Catalog section
Click Browse, and select the ADF which we have created in the previous step
Click OK to finish the process!
If you want to manage the security just click the manage permissions and do so, that’s all we are done with the step 3! 🙂
CONFIGURE THE BDC ON SHAREPOINT
The last step is to use the Business Data List Web Part to show our data, go to any site and add a Business Data List Web Part to the page.
Open the tool pane
In the Business Data List task pane, click the browse button
The following Business Data Type Picker popup window will appear, you could see our Application Data File, Select the ADF_Table1_Instance
Click OK and publish the page, you can see the data on the web part!
That’s all guys! Happy BDC ing, we will see next BCS on SharePoint 2010! Ensoy..!!
What is ADF?
This is an XML file that describes your data source, how to connect to it, and the various queries, actions, and filters to display and sort the data. There are many way to create this ADF such as Application Definition Designer (ADD) and BDCMetaMan, I am going to use ADD to create the ADF.
Okay, we will see the steps here:
1. Installing and configuring the “Application Definition Designer” tool.
Please follow the steps in my previous post.
2. Creating the ADF using Application Definition Designer
Step 1: Open the ADD start –> programs –> Application Definition Designer
Step 2: You will be getting the designer and click on “Add LOB System”
Step 3: Then click on Connect to Database, you will be getting this dialog box to select the DB connection
Step 4: Choose connection type and enter connection string (I have created a database sample for this, you can see here)
Connection Type: SQL Server Connection String: “Data Source=<ServerName>;Initial Catalog=Database1;Integrated Security=True”
Step 5: Click Connect button and you will be getting this window
Step 6: Click Add table tab and drag & drop the Database1.dbo.Table1 on the Design Surface
Step 7: Click Ok and then you will prompt to get the name of LOB, enter the name and click OK (I have given ADF_Table1)
Step 8: You will get the screen like this
Please note: We need to do few modifications to complete this task, otherwise we will be getting the following error when we use this ADF on the SharePoint1 😦
“There are no Business Data Types loaded in the Catalog – Business Data Type Picker”
I have a post about this error in my previous article, please check it out.
Step 9: So Expand “FindAll_[Database1].[dbo].[Table1]” node under Methods and click Instances
In the Instances node click “FindAll_[Database1].[dbo].[Table1]_Instance” and you can see the properties of this method.
You can see the “MethodInstanceType” property has “IdEnumerator” method instead of the “Finder”. So just click the drop down list and select the Finder method.
Step 10: That’s all we done with the ADF now, just click the export button and get the file
You can see the ADF (xml) file now 🙂