Posts Tagged StepBiStep
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./
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:
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
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