How to prevent “There appears to be a discrepancy between the solution’s source control…” without changing the .sln file

I had this problem with a Solution containing *.vcxproj project files, that were previously migrated from VS2008 to VS2010. The path to TFS was defined in both the .sln file and the .vcxproj files. The simplest fix was to update the *.vcxproj project files to use the SAK keyword. ie update from the format: <SccProjectName>$/MyProject/Directory/abc</SccProjectName> … Read more

Adding a ProjectReference to a project that is not in the same solution

You can’t do this. A project reference includes an identifying GUID for the referenced project, which is maintained in the solution file in order to track solution build options and dependencies. If you try to reference a project that is not in the solution, Visual Studio will complain. You can add a file reference to … Read more

HttpUtility.UrlEncode in console application

System.Web is there, but seems Visual Studio doesn’t sort by name by default. You’ll need to click Component name column to get that list sorted. I was able to run this code: Console.WriteLine(System.Web.HttpUtility.UrlEncode(” “)); // + Just adding a System.Web reference, without System.Web.Extensions. Also, You should replace your target framework from .NET Framework 4 Client … Read more

The item was specified more than once in the “Resources” parameter. Duplicate items are not supported by the “Resources” parameter

Easy! Right-click your project and select “Unload Project” Right-click again and “Edit your_project.csproj” Search for the duplicate files mentioned in the error message and remove them. Save and close. Right-click to choose “Reload Project” view image

The “X” property on “Y” could not be set to a ‘null’ value. You must set this property to a non-null value of type ‘Int32’

“The “X” property on “Y” could not be set to a ‘null’ value. You must set this property to a non-null value of type ‘Int32’.” In your EDMX, if you go under your Y table and click on X column, right-click, click on Properties, scroll down to Nullable and change from False to True. If … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)