# Getting an error when trying to run a new Mercury MVC project

**URL:** https://talk.remobjects.com/t/getting-an-error-when-trying-to-run-a-new-mercury-mvc-project/25464
**Category:** Mercury
**Tags:** visual-studio, net
**Created:** [October 1, 2021, 2:06am UTC](https://talk.remobjects.com/t/getting-an-error-when-trying-to-run-a-new-mercury-mvc-project/25464 "2021-10-01T02:06:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![eward](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/e/a8b319/32.png) [@eward](https://talk.remobjects.com/u/eward)
#### Post date: [October 1, 2021, 2:06am UTC](https://talk.remobjects.com/t/getting-an-error-when-trying-to-run-a-new-mercury-mvc-project/25464/1 "2021-10-01T02:06:43Z")

</div>

| Severity | Code | Description | Project | File | Line | Suppression State |
| --- | --- | --- | --- | --- | --- | --- |
| Error | | () The `Microsoft.AspNetCore.Mvc.Razor.Extensions.dll` file was not found as expected at ‘C:\Program Files\dotnet\sdk\6.0.100-rc.1.21463.6\Sdks\Microsoft.NET.Sdk.Razor\tools\rzc.dll’ | SF.Web | C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\RemObjects Software\Elements\RemObjects.Elements.targets | 53 | |

The file is there in the directory and is the proper version. I tried running as Admin in case it was a permissions issue, still received the error. Please advise.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 1, 2021, 12:15pm UTC](https://talk.remobjects.com/t/getting-an-error-when-trying-to-run-a-new-mercury-mvc-project/25464/2 "2021-10-01T12:15:53Z")

</div>

My apologies; this error message displays the wrong file path (fixed now). what its really looking for is

`<NETCoreSDKFolder>\Sdks\Microsoft.NET.Sdk.Razor\extensions\mvc-3-0\Microsoft.AspNetCore.Mvc.Razor.Extensions.dll`

does this file exist? What version of .NET Core are you using? thanx!

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 1, 2021, 12:19pm UTC](https://talk.remobjects.com/t/getting-an-error-when-trying-to-run-a-new-mercury-mvc-project/25464/3 "2021-10-01T12:19:38Z")

</div>

Update: looks like this changed for 6.0 (which is still in beta). I’ll log an issue to get Razor support updated to support 6.0.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 1, 2021, 12:20pm UTC](https://talk.remobjects.com/t/getting-an-error-when-trying-to-run-a-new-mercury-mvc-project/25464/4 "2021-10-01T12:20:27Z")

</div>

Logged as [bugs://E25380](https://www.remobjects.com/portal/bugs/?id=E25380).

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [November 14, 2021, 1:55pm UTC](https://talk.remobjects.com/t/getting-an-error-when-trying-to-run-a-new-mercury-mvc-project/25464/5 "2021-11-14T13:55:13Z")

</div>

[bugs://E25380](https://www.remobjects.com/portal/bugs/?id=E25380) was closed as fixed.

Actually was fixed a few weeks back, i just forgiot to close the issue 😉
