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.
Related
I am trying to install the trail version of Sitefinity but running into this error
Server Error in '/' Application.
________________________________________
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'MySql.ConnectorInstaller, Version=6.10.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 284: <siteMap>
Line 285: <providers>
Line 286: <add name="MySqlSiteMapProvider" type="MySql.Web.SiteMap.MySqlSiteMapProvider, MySql.ConnectorInstaller, Version=6.10.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/" />
Line 287: </providers>
Line 288: </siteMap>
Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config Line: 286
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.ConnectorInstaller, Version=6.10.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' 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].
________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0
I see the database was made though I choose SQL Sever not mysql, so I am not sure why this error is talking about MySql.
Looks like the error is coming from your machine.config file. I definitely don't have that value in neither machine.config nor the Sitefinity's web.config file.
Maybe try deleting it and restart IIS.
In Visual Studio 2013, I've set up a WCF Application. My setup is exactly like the example posted at https://github.com/ninject/Ninject.Extensions.Wcf/tree/master/src/Examples. When I try to import my service reference from another project, I get the error below. I have have added Ninject.Extensions.Factory to the WCF project (and the referencing project) using Nuget, and still get the same error.
Warning 1 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Could not load file or assembly 'Ninject.Extensions.Factory, Version=3.2.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The system cannot find the file specified.
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:portType[#name='IEnrollmentService'] C:\...\Reference.svcmap 1 1
When importing the Service Reference, click the Advanced button, then uncheck "reuse types in referenced assemblies".
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.
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].
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