TF255507: The security identifier (SID) for the following SQL Server login conflicts with a specified domain or workgroup account
Posted by Rajanihanth in SQL Server, TFS, TFS 2010, TFS 2012 on March 4, 2013
When I was configuring the TFS 2010 after completing the installation, I have got the following error message!
This is the brief error message and you can see the details results and solution here
"TF255507: The security identifier (SID) for the following SQL Server login conflicts with a specified domain or workgroup account"
Basically the workgroup account I have choosen to host the TFS databases ( SP2010\STEPBISTEPSQL) is SP2010\Administrator but the original SQL server login account is WIN-5DWGQLQJNRV\Administrator so both conflicting!
To solve this issue, we need to rename the conflicts login and we will see the steps below!
Solution 1: Open the command prompt and type the following command and then hit Enter key!
“sqlcmd -E -S “””
Actually this command is altering the login id with the correct account.
Solution 2: Add the account using the SQL server UI! Open the SQL server and select the Security–>Logins, you could see the conflict login id, just remove this id.
Right click on the logins and then select the New Login..
You will get the following window, enter the Login name and hit OK
That’s all, we are good to go! Here is the renamed login screen!
Thanks,
R./
Installing Visual Studio Team Foundation Server 2010-Basic Configuration Step By Step
Posted by Rajanihanth in .Net, TFS, TFS 2010 on March 3, 2013
Installing Visual Studio Team Foundation Server 2010 (TFS 2010) is pretty simple, there are few types of installation available in TFS 2010/2012, they are:
- Basic
- Standard Single Server
- Advanced
- Advanced-Tier only
In this installation, I am going to choose the basic installation right now (TFS 2010) and I will post the advanced installation (in TFS 2012) later! 🙂
1. Double click the Setup.exe OR tfs_server.exe in your installation media!
2. You will get the following screen after few seconds, click Next
3. Select the license term and click Next
4. Select the necessary features and installation path then click install button.
5. Installation in progress
6. Few minutes later, you will get the following Success screen! 🙂
Select the Launch TFS Configuration Tool check box, and then click Configure button! I will post other screens tomorrow! 🙂
The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.
Posted by Rajanihanth in .Net, ASP.Net, Tech Tips-.Net, VB.Net on February 3, 2013
I have got the following error when I was developing a gridview editing on a webpage last week. This is most common issue, even I have faced several times earlier. But I want to keep this solution for beginners!
Here is the full error message:
"Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request"
My 1st suggestion is just check the cache! Meaning..clear your browser cache and refresh it and see whether it is working? if not continue with one of the following solutions!
1. Enable ViewState is false
Find the control which is giving problem in the page and then disable the ViewState! For me it was a DropDownList so,
<EditItemTemplate> <asp:DropDownList ID="DropDownList1" runat="server" EnableViewState="false"> </asp:DropDownList> </EditItemTemplate>
2. Just place the data binding on the GridView events wherever you use the edit! For and example “RowCancelingEdit”
Protected Sub GridViewRelease_RowCancelingEdit(ByVal sender As Object, ByVal e As GridViewCancelEditEventArgs) Handles GridViewRelease.RowCancelingEdit GridViewReleaseAnalyst.EditIndex = -1 BindData() End Sub
That’s all, No more ViewState issue! Happy Programming!!
References:
2012 in Review!
Posted by Rajanihanth in Uncategorized on January 1, 2013
The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.
Here’s an excerpt:
4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 28,000 views in 2012. If each view were a film, this blog would power 6 Film Festivals
Getting started with Windows 8 Metro Style Application using C# – Visual Studio 2012
Posted by Rajanihanth in .Net, C#, Visual Studio 2012, Windows 8, XAML on November 15, 2012
Windows 8 and Visual studio 2012 are released now but I have created this simple (My 1st) Metro Style Application using Release Previews few months ago. I didn’t get a chance to post, but I need to post this today otherwise its too late..! 🙂
This is my environment:
- Windows 8 Release Preview 64 bit
- Visual Studio 2012 RC Ultimate for Windows 8 Release Preview
- C#
- Extensible Application Markup Language (XAML)
I have installed all of the necessary tools and I will show the step by step instructions to create a simple Metro Style Application in this post. I think this will help someone to get started with Windows 8 development using C# and XAML 🙂
Okay, here are the steps:
Step 1: Installing Windows 8, I used Release Preview and you can see few steps here
Step 2: Installing Visual Studio 2012, I used RC Ultimate and you can check the steps here
Step 3: Launching Visual Studio 2012
- Click the start menu
- Select the Visual Studio 2012 on the Windows 8 (It’s little tricky to switch from start menu to other programs for first time users)
Step 4: You will get Visual Studio 2012 (it looks same like 2010 but different theme), select the New Project
Step 5: You will get the following screen, select the Visual C# and Windows Metro Style under Templates. Please make sure to choose .NET Framework 4.5
Step 6: Select the Blank App (XAML) and enter the Name of the project, I have given “MetroStyleApplicathionStepBiStep” and then click Ok.
Step 7: After creating the project you can see the Visual Studio like below
Step 8: If you don’t get the screen above, just double click on the MainPage.xaml. You will get the XAML design and code together but this is bit difficult to design the screen, so click on the % drop down on the bottom of the Visual Studio and the change it to fit all
- Your screen should be look like this now.
Step 9: In Solution Explorer, we can see all the files and folder structure. if you want to learn more about just follow this link
Step 10: Okay we will design the page 1st, In the Toolbox you can see all the controls like other Visual Studio, drag and drop the TextBlock on the design screen
In the TextBlock’s properties make the following changes
Name: TextBlockHeading
Text: Hello, Metro Style Application!
Text size: 48 px
Step 11: If you want to adjust the TextBlock positions, you can either use the design Or modify the XAML code
Step 11: After finishing the Text Block, we need to add a Text Box, button and another Text Block to the page and make the necessary changes for them. The design should looks like this:
XAML code:
Step 12: Double click on the button and find the ButtonDisplay event, write the necessary C# code to display the value from the Text Box. Here is the source code
private void ButtonDisplay_Click(object sender, RoutedEventArgs e) { TextBlockDisplay.Text = "Hello, " + TextBoxEnter.Text; ButtonDisplay.Content = "Displayed"; }
Step 13: Okay, Click the Run button Or press F5 to run the application (We have few interesting options to run the application, I will modify the post tomorrow :)), you will get the following screen.
Step 14: Enter any text in the text box, I just entered Step Bi Step and click Display. Here you go, your 1st Metro style application is done! Pretty simple no? Enjouy!
Happy Metro Styling..! 🙂
PS: This is my 50th post in 10 months and I have reached 20k hits in this period! 🙂 Please do post comments, if you have any concerns..! Thanks R./
An invalid VARIANT was detected during a conversion from an unmanaged VARIANT to a managed object – C#
Posted by Rajanihanth in .Net, C# on October 16, 2012
I have got this exception after I fixed this error, please check this post and read the following…!
Error Message:
“An invalid VARIANT was detected during a conversion from an unmanaged VARIANT to a managed object. Passing invalid VARIANTs to the CLR can cause unexpected exceptions, corruption or data loss.”
Fix:
Just go to the Debug menu in Visual studio and select Exceptions
Click and expand the Manage Debugging Assistants
Find the Invalid Variant node and uncheck the Thrown check box.
Click Ok and run the application, That’s all! Happy Programming..! If you want to read more about this issue, just read this post! 🙂
References:
http://www.dotnetspider.com/forum/299944-System.outofmemoryexception.aspx
http://blogs.msdn.com/b/yangxind/archive/2006/03/21/556837.aspx
The CLR has been unable to transition from COM context 0xXXXXXXX to COM context 0xYYYYYYY for 60 seconds – C#
Posted by Rajanihanth in .Net, C# on October 16, 2012
Few months ago, I was developing a small windows application which gathers data from Active Directory(AD) and dumping into a SQL database table. There were around 18 to 20,000 records involved in the process. After developing and testing components with few data, everything was okay but when I run the application I got following error message:
“The CLR has been unable to transition from COM context 0x2297ce0 to COM context 0x2297f30 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.”
I didn’t want to spend too much time with this error and I have found the quick fix from this site, if you want to know more about this please read there. 😉
Here are the steps to fix this error;
Step 1: Go to Debug –> Exceptions in Visual Studio 2010 (I was using 2010)
Step 2: Click on Managed Debug Assistants
Step 3: Un-check the ContextSwitchDeadlock and click OK
That’s all, the problem was fixed but I have got an other error, please see the same kind of solution here.
References:
http://dotnetdud.blogspot.ca/2009/01/clr-has-been-unable-to-transition-from.html
Installing Visual Studio 2012 RC on Windows 8 Step By Step
Posted by Rajanihanth in .Net, C#, Visual Studio 2012 on October 9, 2012
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..!
References:
http://www.microsoft.com/visualstudio/eng/downloads#vs
http://www.microsoft.com/en-us/download/details.aspx?id=29917
“The type or namespace name ‘Workflow’ does not exist in the namespace ‘Microsoft.TeamFoundation.Build’ (are you missing an assembly reference?)” -TFS 2010
Posted by Rajanihanth in .Net, TFS, TFS 2010 on October 8, 2012
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./
Refrences:
2.http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/b42b69a9-b4be-46e5-a064-dbe97c9a0ad9
Windows 8 release preview dual boot with Windows 7
Posted by Rajanihanth 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
References: