我試圖安裝MVC3,MVC4和網頁2上的IIS工作,它不斷告訴我,@FileUpload.GetHTML
不存在...文件上傳不剃刀網頁2
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service >this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'FileUpload' does not exist in the current context
Source Error:
Line 17: <body>
Line 18: <h1>FileUpload - Single-File Example</h1>
Line 19: @FileUpload.GetHtml( <---- RED LINE
Line 20: initialNumberOfFiles:1,
Line 21: allowMoreFilesToBeAdded:false,
我已經盡力複製DLL的手動,以確保它們是正確的版本等
- System.Web.Helpers.dll
- System.Web.Razor.dll
- System.Web.WebPages.dll
- System.Web.WebPages.Deloyment.dll
- System.Web.WebPages.Razor.dll
從微軟的例子似乎包括Microsoft.Web。幫手?不能在Razor(v2)中找到任何地方...
是FileUpload不是Razor V2 Helpers的一部分嗎?
我只知道,你沒有回答正確。這個幫手被稱爲「Microsoft.Web.Helpers.dll」沒有MVC。 – BerggreenDK 2013-03-15 14:14:11
但是,儘管我在您的帖子之前找到了答案,但我盡力了。無論如何謝謝。 – BerggreenDK 2013-03-15 15:11:07