Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you please tell me why I am getting an error? Server Error in '/Scaffld' Application. Compilation Error Description: An error occurred during the compilation

Can you please tell me why I am getting an error?

image text in transcribed

Server Error in '/Scaffld' 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: CS0246: The type or namespace name 'MVCDemo' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 27: Line 28: Line 29: public class _Page_Views_Home_Edit_cshtml : System.Web.Mvc.WebViewPage { Line 30: Line 31: #line hidden

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\App_Web_edit.cshtml.a8d08dba.aontqujh.0.cs Line: 29

Show Detailed Compiler Output:

c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\assembly\dl3\903a0c7e\c971a1c4_e528d301\System.Web.Http.WebHost.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Helpers\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mvc\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\App_global.asax.vmzfjits.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\assembly\dl3\a2127448\b4ad68c4_e528d301\System.Net.Http.WebRequest.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\assembly\dl3\27cae5d7\8ab850c4_e528d301\System.Net.Http.Formatting.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\assembly\dl3\84ab3d32\22fa85c4_e528d301\System.Web.Http.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\assembly\dl3\b59b9a92\287e82a6_c429d301\Scaffld.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\assembly\dl3\26e5ff29\994410c3_e528d301\Newtonsoft.Json.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\assembly\dl3\920f00fa\a48668c4_e528d301\System.Net.Http.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\App_Web_edit.cshtml.a8d08dba.aontqujh.dll" /D:DEBUG /debug+ /optimize- /w:4 owarn:1659;1699;1701 /warnaserror- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\App_Web_edit.cshtml.a8d08dba.aontqujh.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\App_Web_edit.cshtml.a8d08dba.aontqujh.1.cs"

Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved.

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\scaffld\cc97fe46\92cadddf\App_Web_edit.cshtml.a8d08dba.aontqujh.0.cs(29,76): error CS0246: The type or namespace name 'MVCDemo' could not be found (are you missing a using directive or an assembly reference?)

Show Complete Compilation Source:

Line 1: #pragma checksum "c:\users\harris a\documents\visual studio 2010\Projects\Scaffld\Scaffld\Views\Home\Edit.cshtml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "63D7194D17A95DFA11E7F5FB7AB00C45" Line 2: //------------------------------------------------------------------------------ Line 3: // Line 4: // This code was generated by a tool. Line 5: // Runtime Version:4.0.30319.296 Line 6: // Line 7: // Changes to this file may cause incorrect behavior and will be lost if Line 8: // the code is regenerated. Line 9: // Line 10: //------------------------------------------------------------------------------ Line 11: Line 12: namespace ASP { Line 13: using System; Line 14: using System.Collections.Generic; Line 15: using System.IO; Line 16: using System.Linq; Line 17: using System.Net; Line 18: using System.Web; Line 19: using System.Web.Helpers; Line 20: using System.Web.Security; Line 21: using System.Web.UI; Line 22: using System.Web.WebPages; Line 23: using System.Web.Mvc; Line 24: using System.Web.Mvc.Ajax; Line 25: using System.Web.Mvc.Html; Line 26: using System.Web.Routing; Line 27: Line 28: Line 29: public class _Page_Views_Home_Edit_cshtml : System.Web.Mvc.WebViewPage { Line 30: Line 31: #line hidden Line 32: Line 33: public _Page_Views_Home_Edit_cshtml() { Line 34: } Line 35: Line 36: protected ASP.global_asax ApplicationInstance { Line 37: get { Line 38: return ((ASP.global_asax)(Context.ApplicationInstance)); Line 39: } Line 40: } Line 41: Line 42: public override void Execute() { Line 43: Line 44: #line 2 "c:\users\harris a\documents\visual studio 2010\Projects\Scaffld\Scaffld\Views\Home\Edit.cshtml" Line 45: Line 46: ViewBag.Title = "Edit"; Line 47: Line 48: Line 49: #line default Line 50: #line hidden Line 51: WriteLiteral("

Edit

(Href("~/Content/Site.css") Line 73: , 259), false) Line 74: ); Line 75: Line 76: WriteLiteral(" rel=\"stylesheet\""); Line 77: Line 78: WriteLiteral(" type=\"text/css\""); Line 79: Line 80: WriteLiteral(" /> (Href("~/Content/themes/base/jquery.ui.all.css") Line 84: , 328), false) Line 85: ); Line 86: Line 87: WriteLiteral(" rel=\"stylesheet\""); Line 88: Line 89: WriteLiteral(" type=\"text/css\""); Line 90: Line 91: WriteLiteral(" /> "); Line 97: Line 98: Line 99: #line 22 "c:\users\harris a\documents\visual studio 2010\Projects\Scaffld\Scaffld\Views\Home\Edit.cshtml" Line 100: using (@Html.BeginForm()) Line 101: { Line 102: Line 103: Line 104: #line default Line 105: #line hidden Line 106: Line 107: #line 24 "c:\users\harris a\documents\visual studio 2010\Projects\Scaffld\Scaffld\Views\Home\Edit.cshtml" Line 108: Write(Html.EditorForModel()); Line 109: Line 110: Line 111: #line default Line 112: #line hidden Line 113: Line 114: #line 24 "c:\users\harris a\documents\visual studio 2010\Projects\Scaffld\Scaffld\Views\Home\Edit.cshtml" Line 115: Line 116: Line 117: Line 118: #line default Line 119: #line hidden Line 120: WriteLiteral("
"); Line 121: Line 122: WriteLiteral(" "); Line 129: Line 130: Line 131: #line 27 "c:\users\harris a\documents\visual studio 2010\Projects\Scaffld\Scaffld\Views\Home\Edit.cshtml" Line 132: } Line 133: Line 134: #line default Line 135: #line hidden Line 136: } Line 137: } Line 138: } Line 139:

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

---------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------

@model DateTime? @Html.TextBox("", (Model.HasValue ? Model.Value.ToString("dd/MM/yyyy") : string.Empty), new { @class = "date" })

-------------------------------------------------------------------------------------------------------------------

@model MVCDemo.Models.Employee @{ ViewBag.Title = "Edit"; }

Edit

@using (@Html.BeginForm()) { @Html.EditorForModel()
}

Compilation Error localhost/Scaffld/Home/Edit/1 ABP Server Error in '/Scaffld' 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: CS0246: The type or namespace name 'MVCDemo' could not be found (are you missing a using directive or an assembly reference?) Source Error: Line 27: Line 28: Line 29 Line 30: Line 31: #1 ine hidden public class _Page_Views_Home_Edit_cshtml System. Web.Mvc.WebViewPage

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

More Books

Students also viewed these Databases questions

Question

CPU Major Components are

Answered: 1 week ago