System.Web.Mvc.HtmlHelper가 표시되지 않는 Razor보기
MVC4로 업그레이드하는 중입니다. http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806 의 지침을 따랐 지만 Razor보기 및 레이아웃에 다음과 같은 오류가 있습니다.
- 'System.Web.WebPages.Html.HtmlHelper'에 'BeginRouteForm'에 대한 정의가 포함되어 있지 않으며 'System.Web.WebPages.Html.HtmlHelper'유형의 첫 번째 인수를 허용하는 확장 메서드 'BeginRouteForm'을 찾을 수 없습니다. using 지시문 또는 어셈블리 참조가 누락 되었습니까?)
또한 다음과 같은 오류가 있습니다.
- "현재 컨텍스트에 'Viewbag'이름이 없습니다.
@Html 위로 마우스를 가져 가면 System.Web.Mvc.HtmlHelper가 아닌 System.Web.WebPages.Html.HtmlHelper 유형임을 알 수 있습니다.
다른 정보가 적절한 지 확실하지 않지만 이것이 내가있는 곳입니다.
- sln의 클래스 라이브러리 등을 아직 .net 4.5로 업데이트하지 않았습니다.
- 프로젝트는 VS2010에서 생성되었지만 VS2012에서 마이그레이션을 수행하고 있습니다.
- 프로젝트가 열리고 VS2012, .Net 4.0, MVC 3에서 정상적으로 실행됩니다.
감사합니다.
편집 : web.config의 모든 참조 및 파일이 다음으로 업그레이드되었습니다.
- System.Web.Mvc, 버전 = 4.0.0.0
- System.Web.WebPages, 버전 = 2.0.0.0
- System.Web.Helpers, 버전 = 2.0.0.0
- System.Web.WebPages.Razor, 버전 = 2.0.0.0
편집 (2) : 요소의 내 /views/web.config (또는 아래 @Paul의 솔루션을 시도하는 경우 /views/shared/web.config)에는 System.Web에서 상속하는 고유 한 기본 유형이 있습니다. Mvc.WebViewPage, 포함 라이브러리의 참조가 MVC4로 업데이트되었으며 정의로 이동하면 MVC4 dll로 이동합니다.
새 릴리스에서이 영역에서 변경된 사항이 있습니까? 릴리스 노트에서 관련 내용을 볼 수 없습니다.
나는 웹 응용 프로그램과 함께이 문제에 달렸다 - 내 .cshtml
파일이에 붙어있어 System.Web.WebPages.WebViewPage
내가 필요로 할 때 기본 클래스 System.Web.Mvc.WebViewPage
.
먼저 ~ / Views / web.config 파일에 올바른 pageBaseType
. 제 경우에는 System.Web.Mvc.WebViewPage
.
<configuration>
<system.web.webPages.razor>
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<!-- ... -->
</pages>
</system.web.webPages.razor>
</configuration>
그런 다음 중요한 것은 위의 내용이 이미 좋은 경우 일부 사람들이 이것이 핵심임을 발견했습니다.
- 솔루션에서 청소 실행
- 문제가있는 프로젝트 언로드
.user
프로젝트 옆에서 Visual Studio에서 생성 한 파일을 삭제합니다 .- 문제가있는 프로젝트 다시로드
- 솔루션 구축
VS2015 의 경우 .user
및 .sln
파일은 파일 .vs
옆에 생성 된 숨겨진 폴더 로 이동되었습니다 .sln
. 그러나 아래의 설명에서 오류 메시지는 도구가 잘못된 버전의 MVC를 완전히 사용하고 있음을 암시 하며이 폴더를 삭제해도 문제가 해결되지 않습니다. 내 지식으로는 알려진 해결책이 없습니다.
MVC 5로 업데이트 할 때 동일한 문제가 발생했으며 Views 폴더 내의 web.config를 업데이트하여 해결되었습니다.
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization"/>
<add namespace="System.Web.Routing" />
</namespaces>
</pages>
호스트-> factoryType은 version : 4.0.0.0으로 설정되어 누구에게나 도움이되기를 바랍니다.
여기에서 모든 솔루션을 시도했지만 그중 어느 것도 나를 위해 일하지 않았습니다. 다시 말하지만, 내 사이트는 벌금을 실행하지만 난 IntelliSense를 가지고 및 Visual Studio 그들 중 하나가되고, 인식하지 못하는 내 뷰에서 많은 것들을 아래에 빨간색 물결 선으로하지 않습니다 Html.BeginForm()
와 함께 할 필요 아무것도뿐만 아니라를 ViewBag
.
저는 새로운 MVC 5 프로젝트로 작업하고 있습니다. web.config 줄을 몇 시간 동안 비교 한 후 마침내 무엇이 문제를 해결했는지 발견했습니다.
내 루트의 web.config에는 다음 줄이 있습니다.
<system.web>
<compilation debug="true" targetFramework="4.5" />
<!-- ... -->
</system.web>
MVC 5를 사용하지 않는 이전 프로젝트와 비교하여 다음과 같은 새 프로젝트에서 누락 된 블록을 복사했습니다.
<system.web>
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<!-- ... -->
</system.web>
위 블록을 루트에있는 새 프로젝트의 web.config에 복사하여 내 프로젝트 참조에서 찾은 각 어셈블리의 번호와 일치하도록 버전을 변경했습니다 (언급 된 각 참조를 마우스 오른쪽 단추로 클릭하고 "속성", "버전"을 선택하면 선택한 참조에 대한 속성 창 하단).
위를 구현 한 후, 지금 인텔리을 가지고 같은 것들에서 알 수없는 레드 라인하지 않는다 Html.BeginForm
, ViewBag.Title
등
나는 프로젝트를 깨끗하게 실행하고 모든 것을 설치하거나 다시 설치했으며 내 사이트가 잘 컴파일되고 실행 중임에도 불구하고 여전히 많은 Intellisense 오류가 발생했습니다. View 폴더의 web.config 파일에서 버전 번호를 변경했을 때 Intellisense가 마침내 저를 위해 일했습니다. 제 경우에는 MVC 영역에서 실행되는 Orchard에서 모듈을 코딩하고 있지만 이것이 최신 MVC 릴리스를 사용하는 모든 사람에게 도움이 될 것이라고 생각합니다. 다음은 Views 폴더의 web.config 입니다.
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Linq" />
<add namespace="System.Collections.Generic" />
</namespaces>
</pages>
</system.web.webPages.razor>
<system.web>
<!--
Enabling request validation in view pages would cause validation to occur
after the input has already been processed by the controller. By default
MVC performs request validation before a controller processes the input.
To change this behavior apply the ValidateInputAttribute to a
controller or action.
-->
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<controls>
<add assembly="System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
</handlers>
</system.webServer>
</configuration>
당신은 복사 할 필요 Views/Web.config
에 /Shared
. 이렇게하면 Razor에 MVC 기본 유형 및 파서를 사용합니다. 자세한 내용은 http://blog.slaks.net/2011/02/dissecting-razor-part-3-razor-and-mvc.html에서 읽을 수 있습니다.
에서 Visual Studio 2013
로 업그레이드 Visual Studio 2015
한 후이 문제를 다루고있었습니다.이 게시물과 다른 유사한 SO 게시물에서 찾은 대부분의 조언을 시도한 후 마침내 문제를 발견했습니다. 수정의 첫 번째 부분은 내 모든 항목을 NuGet
최신 버전 으로 업데이트하는 것이 었습니다 ( 버그 VS13
가 발생하는 경우이 작업을 수행 Nuget
해야 할 수 있음). 필요에 따라 목록에 나열된 버전을 수정해야했습니다. 보기 Web.config
. 여기에는 다음이 포함됩니다.
- 수정
MVC
버전과 새 버전으로 자식 라이브러리합니다 (을 확장References
하고 마우스 오른쪽 클릭Sytem.Web.MVC
한 후Properties
버전 얻기 위해) Razor
버전을 수정하십시오 .
내 모습은 다음과 같습니다.
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Optimization"/>
<add namespace="System.Web.Routing" />
</namespaces>
</pages>
</system.web.webPages.razor>
<appSettings>
<add key="webpages:Enabled" value="false" />
</appSettings>
<system.web>
<httpHandlers>
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
</httpHandlers>
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<controls>
<add assembly="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
</handlers>
</system.webServer>
</configuration>
계약 세계에서 나는 종종 오래된 이미지를 사용하는 기계를 사용합니다. 위의 모든 것을 시도한 후 VS 2013을 최신 버전 (업데이트 4)으로 업데이트하기로 결정했습니다. 90 분 후 다시 시작하면 참조가 정상적으로 작동합니다! 도움이 되었기를 바랍니다!
모든 것을 헛되이 시도한 결과 웹 프로젝트 csproj 파일의 잘못된 속성 값으로 인해 제 경우에는 작동하지 않는다는 것을 발견했습니다. 현재 IDE 버전 (예 : Visual Studio 2015)과 일치하는 ToolsVersion 을 14로 변경하면 모든 것이 매력적으로 작동했습니다.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition=
.....
VS 2013에서 VS 2015로 프로젝트를 마이그레이션 한 후이 문제를 겪고있는 분들을 위해 https://visualstudiogallery.msdn.microsoft.com/c94a02e9-f2e9- 에서 ASP.NET 도구 업데이트를 설치하여이 문제를 해결할 수있었습니다. 4bad-a952-a63a967e3935 / file / 77371 / 6 / AspNet5.ENU.RC1_Update1.exe? SRC = VSIDE & UPDATE = TRUE .
Visual Studio 2017 사용자를위한 업데이트 :
Visual Studio 2017로 방금 마이그레이션했고 프로젝트가 MVC4 인 경우 VS2017 설치 관리자로 돌아가 "ASP.NET 및 웹 개발"섹션에서 MVC4 옵션을 확인하십시오. 선택적 구성 요소이며 기본적으로 선택되지 않습니다.
이것은 내 문제를 해결했습니다.
Matt DeKrey의 답변을 확장하기 위해 csproj.user 파일을 삭제하면 (솔루션을 다시 만들 필요없이) 문제를 해결할 수있었습니다.
The only side effect I had was I needed to reset the Start Action back to using a specific page.
I used the following article on MSDN to solve this issue (in this case from MVC 4 to MVC 5)
Main extracts from the article are:
Main Web.config (Not the one in the Views folder)
In the runtime block update System.Web.Mvc to 5.0.0.0 ,System.Web.Helpers to 3.0.0.0 and System.Web.WebPages to 3.0.0.0
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
Then look for the appsettings block and update the webpages:Version value to 3.0.0.0
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
</appSettings>
Views Web.config
Update the host factoryType block to System.Web.Mvc to 5.0.0.0
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
</namespaces>
</pages>
</system.web.webPages.razor>
Then under the pages block update any references to System.Web.Mvc to 5.0.0.0
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<controls>
<add assembly="System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
And finally under the configuration block update the System.Web references to 3.0.0.0
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
</sectionGroup>
</configSections>
Recently got the same problem and this is how i fixed it: On Visual Studio with your project in question open, Goto:
- Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution.
- On the open window, select Updates. then Click Update All.
It will load whats missing in your project and all should be back on track.
Just started looking into the issue myself and this is what it look like in my case. If you have the correct values in your web config then Its just a bug in MVC4. http://connect.microsoft.com/VisualStudio/feedback/details/727729/viewbag-not-recognized-in-asp-net-mvc-4-project
*<system.web>
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>*
This configuration is missing, add it and set appropriate version of assemblies
As a variation on a theme, I could have sworn up and down that my Views\Web.config was correct:
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
But I in fact needed to reference Version=4.0.0.1
, not Version=4.0.0.0
because of that security update that got pushed out a while back.
As for me, it was a stupid deployment mistake: Web projects can have more than one web.config. It was working on the developer's machine and not in production, but we were not realising that the deployment script only grabbed the Web.config
file at the root, and it didn't copy the Web.config
file in the Views
folder.
I've encountered this specific issue as well; no (or incorrect) intellisense showing when trying to use razor tags. My specific issue was VS2015 complaining that Html.BeginForm was not existing in the current context.
I've got areas set up in my MVC project, and managed to narrow down the cause of my error to the web.config file for a specific area, rather than the global web.config.
It turns out that the cause of this issue for me was that I'd added a SQL connectionString into the web.config for the area that was not working, this (I am assuming) caused a parsing error, however the project compiled up correctly.
Moving the connectionString to the global web.config has rectified the issue. Hopefully this may be of some use to others.
My situation only occurred after I created a custom class called BaseViewPage
that overrode the WebViewPage
class. I initially added the following to my Main Web.confg file:
<pages pageBaseType="ZooResourceLibrary.Web.Support.BaseViewPage">
And the same to the View folders web.config file:
<pages pageBaseType="ZooResourceLibrary.Web.Support.BaseViewPage">
I tried many of the other answers and none did the trick while still allowing me to keep my BaseViewPage
class. The way I fixed it was to remove the pageBaseType
attribute from the Main Web.config file only. Keep it in the View web.config.
I came across several answers in SO and at the end I realized that my error was that I had misspelled "Html.TextBoxFor." In my case what I wrote was "Html.TextboxFor." I did not uppercase the B in TextBoxFor. Fixed that and voilà. Problem solved. I hope this helps someone.
Right, I've been trying to fix this issue for sometime. I've used all the solutions in the various Stack Overflow topics regarding this and none seemed to be working.
I have just fixed the issue this morning. After you gave fixed the web.config for both the project and the views, making sure all the .dll versions are matching with what you have in the references folder. You will need to unload the project, edit the .csproj, and then update all the .dll versions in that file.
System.Web.Helpers
System.Web.Mvc
System.Web.WebPages
Hope this helps, as I have finally fixed this issue! No more red squiggly lines.
This has also fixed the context menu issue I was having where, I wasn't getting the option to add a controller, view etc.
For me the solution was to change the following:
<pages
validateRequest="false"
pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<controls>
<add assembly="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc" />
</controls>
</pages>
참고URL : https://stackoverflow.com/questions/12041633/razor-views-not-seeing-system-web-mvc-htmlhelper
'programing tip' 카테고리의 다른 글
Visual Studio에서 {를 새 줄에 넣지 않도록하는 방법? (0) | 2020.11.01 |
---|---|
루비 1.9.3의 루비 디버그? (0) | 2020.11.01 |
data.table의 지정된 모든 열에 동일한 함수를 적용하는 방법 (0) | 2020.11.01 |
LINQ에서 Include ()는 무엇을합니까? (0) | 2020.11.01 |
Redux 상태 및 URL 해시 태그 매개 변수를 동기화하는 방법 (0) | 2020.11.01 |