Could not load type 'abc.MvcApplication' - asp.net-mvc-4

I am getting this error- and have no idea so far,
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Source Error:
Line 1: <%# Application Codebehind="Global.asax.cs" Inherits="abc.MvcApplication" Language="C#" %>

Related

LocalProcessingException was unhandled

Trying to Test my Report and then Error message says:
An unhandled exception of type
'Microsoft.Reporting.WinForms.LocalProcessingException' occurred in
Microsoft.ReportViewer.WinForms.dll
Additional information: An error occurred during local report processing."
Any idea why would i face such an Error?!
You are using VS2010 and the InnerException says that:
The report definition is not valid. Details: The report definition has an invalid target namespace 'schemas.microsoft.com/sqlserver/reporting/2008/01/…; which cannot be upgraded.
So you have to use the correct ReportViewer library which is the 10.0.

Constant Build issues with IIS not being able to find WebViewPage in System.Web.Mvc

I keep running into the following exception
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: CS0234: The type or namespace name
'WebViewPage' does not exist in the namespace 'System.Web.Mvc' (are
you missing an assembly reference?)
Source Error:
Line 27: Line 28: Line 29: public class
_Page_Views_Content_Index_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\root\8df93262\ed60a52a\App_Web_index.cshtml.eba9863.jffbohqj.0.cs
Line: 29
So far doing a clean and a rebuild normally fixes the problem. The Dev Environment is using IIS, it seems like something is going wrong when IIS caches the binaries. From some trial and error it seems like the issue happens if a request is made to the site at the same time as the site is being built.
Does anyone have any idea what might be causing the problem? It seems to be a configuration issue as other developers with the same setup do not have the issue.
It turned out to be the references in the project were falling back to a different version of MVC.

Compilation error in ASP.NET MVC4 BigShelf sample SPA solution

Just trying out the sample for the MVC4 Single Page Application. The BigShelf project is here
But when I try to run this, I get the following error after logging in. I'm not sure what is wrong.
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: CS0012: The type
'System.Data.Entity.DbContext' is defined in an assembly that is not
referenced. You must add a reference to assembly 'EntityFramework,
Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Source Error:
Line 22: Line 23: $(function () { Line 24:
upshot.metadata(#(Html.Metadata()));
Line 25: Line 26: ko.applyBindings(new
BigShelf.CatalogViewModel({
Source File: d:\Visual Studio Projects\ASP.NET Single Page Application
(SPA) BigShelf\C#\BigShelf\Views\Home\Index.cshtml Line: 24
Removing the EntityFramework reference and referencing the latest (4.3.1) solved the problem for me.

Error adding sharepoint web service as web reference in a project

I'm trying to add web reference to my project using the link:- http://localhost/_vti_bin/Lists.asmx
Getting the following error:-
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 1: <%# Assembly Name="Microsoft.SharePoint"%><%# Application Language="C#" Inherits="Microsoft.SharePoint.ApplicationRuntime.SPHttpApplication" %>
Source File: /global.asax Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.SharePoint' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

WCF - IIS is not getting .net 3.0

Deployment of a WCF Service in the IIS is giving the following error:
Server Error in '/calc' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The unrecognized directive 'Service' is specified.
Source Error:
Line 7:
Line 8:
Line 9: <%# Service Class="Calculator.CalculatorService" %>
Line 10: <%# Assembly Name="CalculatorService" %>
Source File: /calc/Service.svc Line: 9
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
I have studied these suggestions. But it didn't work.
What can be the problem?
Is it possible that you are missing the ServiceHost to begin the directive for the service..
IE:
<%# ServiceHost Service="Calculator.CalculatorService" %>
P.S. .NET 3.0 & 3.5 are assembly releases on top of the 2.0 Runtime, the framework won't say version 3.0/3.5