Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# User Authentication with ASP.NET Identity Introducing ASP.NET Identity Reviewing the Project Files

Xiao DAI
Xiao DAI
1,474 Points

I came across 18 errors and 28 warnings when I built the starting project files.

I downloaded the starting project files on this link(http://treehouse-project-downloads.s3.amazonaws.com/dotnet-user-auth-with-aspnet-identity-fitness-frog.zip). I just build them without any change of codes. However, I came across 18 errors and 28 warnings.

I will only list the first 6 errors as follows since every error beginning with "Severity Code Description".

  1. Severity Code Description Project File Line Suppression State Error Unexpected exception: Treehouse.FitnessFrog
  2. Severity Code Description Project File Line Suppression State Error at Microsoft.CodeAnalysis.BuildTasks.AssemblyResolution.LoadAssemblyWithRedirects(AssemblyName name) Treehouse.FitnessFrog
  3. Severity Code Description Project File Line Suppression State Error at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) Treehouse.FitnessFrog
  4. Severity Code Description Project File Line Suppression State Error at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) Treehouse.FitnessFrog
  5. Severity Code Description Project File Line Suppression State Error at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) Treehouse.FitnessFrog
  6. Severity Code Description Project File Line Suppression State Error at Roslyn.Utilities.CorLightup.Desktop.AssemblyResolveWrapper.Stub(Object sender, Object resolveEventArgs) Treehouse.FitnessFrog

2 Answers

Hi!

I got the exact same errors, but it should be an easy fix! Once you have the project open, you'll click "Build" on the Menu Bar. From the Build Menu:

1) Click "Clean Solution"

2) Click "Rebuild Solution"

The errors should be gone, but you'll still see the warnings ( this is OK ). You could probably jump right to step 2, I'm just used to cleaning the solution first.

Good Luck!

  1. Press Ctrl + Shift + B to rebuilt the project, close it and reopen.
  2. In web.conf change the conection initial catalog name to whatever you want. Done. This worked to me.

Thank you! This fixed the issue for me.