Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6323377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:30:20+00:00 2026-05-24T16:30:20+00:00

I’ve just installed the latest and greatest from Resharper, namely version 6. The feature

  • 0

I’ve just installed the latest and greatest from Resharper, namely version 6. The feature list of this includes support for Razor. However, I get some odd errors when using it for Razor. I have the following simple view in About.cshtml using Razor:

@{
    ViewBag.Title = "About";
}
<h2>About</h2>

When I start writing “ViewBag” R#6 helps me autocomplete this word, and when I put in the “.” it tells me that “Title” is one of the properties available on the ViewBag-object. However, the ViewBag is underlined with a squiggly line, and the error is:

One or more types required to compile a dynamic expression cannot be found. Are you missing references to Microsoft.CSharp.dll and System.Core.dll?

Both these dll’s are present.. Note that this was a basic example, but I get the same error in every line of Razor code I have.. Some places give a different error-msg though:

Module ‘mscorlib’, Version 4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ should be referenced.

Trying to add a reference to this in my project tells me:

A reference to ‘mscorlib’ could not be added. This component is already automatically referenced by the build system.

Anyone seen the same errors? How can I fix this and make the squiggly lines go away?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:30:21+00:00Added an answer on May 24, 2026 at 4:30 pm

    The problem is now figured out… It turned out that this was only a problem in our existing projects, and not a problem when starting new projects. In our existing projects we don’t have a Web.Config file. Instead we have several similarly named config files (Web.Dev.Config, Web.Test.Config, Web.Prod.Config, etc), and we copy one of these into Web.Config in our build process. This is a problem for Resharper. Resharper looks for some Razor-references in the projects Web.Config file, and when it can’t find those references it gets problems parsing your .cshtml-files.

    So; be sure to have a Web.Config file in the projects that require it if you want to use Resharper with Razor!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am currently running into a problem where an element is coming back from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.