-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I have this errors on .net core project
An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.
Generated Code
The type 'RazorViewAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@"/Views/Login/Index.cshtml", typeof(AspNetCore.Views_Login_Index))]
The type 'RazorPage<TModel>' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
public class Views_Login_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
'Views_Login_Index.ExecuteAsync()': no suitable method found to override
public async override global::System.Threading.Tasks.Task ExecuteAsync()
The type 'UrlResolutionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
private global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper;
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The type 'RazorInjectAttribute' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
The name 'StartTagHelperWritingScope' does not exist in the current context
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
The name 'EndTagHelperWritingScope' does not exist in the current context
__backed__tagHelperScopeManager = new global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperScopeManager(StartTagHelperWritingScope, EndTagHelperWritingScope);
The name 'BeginContext' does not exist in the current context
EndContext();
The name 'WriteLiteral' does not exist in the current context
BeginContext(35, 76, false);
The name 'EndContext' does not exist in the current context
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "4fe409546b1a405181f1b9f306b00b61", async() => {
The name 'BeginContext' does not exist in the current context
}
The type 'UrlResolutionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
The name 'CreateTagHelper' does not exist in the current context
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
The name 'Write' does not exist in the current context
EndContext();
The name 'EndContext' does not exist in the current context
WriteLiteral("\n");
The name 'BeginContext' does not exist in the current context
EndContext();
The name 'WriteLiteral' does not exist in the current context
BeginContext(112, 65, false);
The name 'EndContext' does not exist in the current context
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "2e555a4eba894f3094a4e53cf1c003e8", async() => {
The name 'BeginContext' does not exist in the current context
}
The type 'UrlResolutionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
The name 'CreateTagHelper' does not exist in the current context
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
The name 'Write' does not exist in the current context
EndContext();
The name 'EndContext' does not exist in the current context
WriteLiteral("\n");
The name 'BeginContext' does not exist in the current context
EndContext();
The name 'WriteLiteral' does not exist in the current context
BeginContext(178, 81, false);
The name 'EndContext' does not exist in the current context
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5e97ef9730d644be943ec43261bbaa77", async() => {
The name 'BeginContext' does not exist in the current context
}
The type 'UrlResolutionTagHelper' exists in both 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Mvc.Razor, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
The name 'CreateTagHelper' does not exist in the current context
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
The name 'Write' does not exist in the current context
EndContext();
The name 'EndContext' does not exist in the current context
WriteLiteral(@"
<script language=""javascript"">
$(function () {
$('.systemlogo').css({ 'position': 'absolute', 'top': (($(window).height() - 560) / 2) - 180 });
$('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2, 'top': ($(window).height() - 560) / 2 });
$(window).resize(function () {
$('.systemlogo').css({ 'position': 'absolute', 'top': (($(window).height() - 560) / 2) - 180 });
$('.loginbox').css({ 'position': 'absolute', 'left': ($(window).width() - 692) / 2, 'top': ($(window).height() - 560) / 2 });
})
});
</script>
<div id=""mainBody"">
<div id=""cloud1"" class=""cloud""></div>
<div id=""cloud2"" class=""cloud""></div>
</div>
<div class=""logintop"">
<span>Fireasy Zero</span>
<ul>
<li><a href=""#"">帮助</a></li>
<li><a href=""#"">关于</a></li>
</ul>
</div>
<div class=""loginbody"">
<span class=""systemlogo""></span>
<div class=""loginbox"">
<ul>
<li class=""form_control"">
");
The name 'BeginContext' does not exist in the current context
WriteLiteral("<input id=\"account\" type=\"text\" class=\"loginuser required\" placeholder=\"帐号或手机号\"");
The name 'WriteLiteral' does not exist in the current context
EndContext();
The name 'WriteLiteral' does not exist in the current context
WriteLiteral(" Fireasy, All Rights Reserved.</div>\n");
The name 'EndContext' does not exist in the current context
EndContext();
The name 'BeginWriteAttribute' does not exist in the current context
BeginContext(2298, 23, false);
The name 'EndWriteAttribute' does not exist in the current context
EndContext();
The name 'BeginContext' does not exist in the current context
BeginContext(2321, 106, true);
The name 'WriteLiteral' does not exist in the current context
WriteLiteral("\n<script type=\"text/javascript\">\n $(function () {\n $(\'#valcode\').verifyCode({\n url: \'");
The name 'EndContext' does not exist in the current context
EndContext();
The name 'BeginWriteAttribute' does not exist in the current context
BeginContext(2428, 30, false);
The name 'EndWriteAttribute' does not exist in the current context
EndContext();
The name 'BeginContext' does not exist in the current context
BeginContext(2458, 29, true);
The name 'WriteLiteral' does not exist in the current context
WriteLiteral("\',\n validateUrl: \'");
The name 'EndContext' does not exist in the current context
BeginContext(3802, 24, false);
The name 'BeginContext' does not exist in the current context
#line 112 "I:\temp\zero-master\src\Fireasy.Zero.AspNetCore\Views\Login\Index.cshtml"
The name 'EndContext' does not exist in the current context
BeginContext(3826, 121, true);
The name 'BeginContext' does not exist in the current context
WriteLiteral("\', postData, function (result) {\n common.processResult(result, function () {\n location.href = \'");
The name 'WriteLiteral' does not exist in the current context
EndContext();
The name 'EndContext' does not exist in the current context
BeginContext(3948, 27, false);
The name 'BeginContext' does not exist in the current context
#line 114 "I:\temp\zero-master\src\Fireasy.Zero.AspNetCore\Views\Login\Index.cshtml"
The name 'EndContext' does not exist in the current context
BeginContext(3975, 70, true);
The name 'BeginContext' does not exist in the current context
WriteLiteral("\';\n });\n });\n\n return false;\n }\n</script>\n");
The name 'WriteLiteral' does not exist in the current context
EndContext();
The name 'EndContext' does not exist in the current context
}
The name 'BeginContext' does not exist in the current context
#pragma warning restore 1998
The name 'EndContext' does not exist in the current context
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
The name 'BeginContext' does not exist in the current context
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
The name 'WriteLiteral' does not exist in the current context
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
The name 'EndContext' does not exist in the current context
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
The name 'BeginContext' does not exist in the current context
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; }
The name 'EndContext' does not exist in the current context
The name 'BeginContext' does not exist in the current context
The name 'WriteLiteral' does not exist in the current context
The name 'WriteLiteral' does not exist in the current context
The name 'EndContext' does not exist in the current context
The name 'BeginContext' does not exist in the current context
The name 'EndContext' does not exist in the current context
The name 'BeginContext' does not exist in the current context
The name 'WriteLiteral' does not exist in the current context
The name 'EndContext' does not exist in the current context
The name 'BeginContext' does not exist in the current context
The name 'EndContext' does not exist in the current context
The name 'BeginContext' does not exist in the current context
The name 'WriteLiteral' does not exist in the current context
The name 'EndContext' does not exist in the current context
I:\temp\zero-master\src\Fireasy.Zero.AspNetCore\Views\Login\Index.cshtml
The name 'ViewBag' does not exist in the current context
The name 'WriteAttributeValue' does not exist in the current context
The name 'ViewBag' does not exist in the current context
The name 'WriteAttributeValue' does not exist in the current context
The name 'ViewBag' does not exist in the current context
The name 'Write' does not exist in the current context
The name 'Write' does not exist in the current context
The name 'Write' does not exist in the current context
The name 'Write' does not exist in the current context
The name 'Write' does not exist in the current context
The name 'Write' does not exist in the current context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels