c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android

Unable to retrieve metadata for ‘models.classname’. unable to cast object of type System.Data.Entity.Core.Objects.ObjectContext to type System.Data.Objects.ObjectContext.

| | Category: asp.net MVC

Entity framework 6 or above version is not supported for asp.net MVC. So we need to uninstall it by using Package manager console.

jqgrid asp net mvc

| | Category: JQuery

In this example, I will show to how to display data in a grid using jQuery jQGrid in asp.net MVC uses the entity framework. It is a very lightweight client side grid having multiple functions.

Google API-Refused to display in a frame because it set X-Frame-Options to SAMEORIGIN.

| | Category: API

If you have not set URL path or worng URL path specified in the Authorize Javascript Orgins, it may leads to this error.

[solved] 401. That’s an error.Error: invalid_client no registered origin

| | Category: API

When I was trying to run the application I had faced this problem. It was resolved by setting authorize redirect URLs in a proper manner.

[solved]Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.

| | Category: asp.net MVC

I got this error that the web.config was referencing System.Web.WebPages.Razor, Version=2.0.0.0. Later I changed it to System.Web.WebPages.Razor, Version=3.0.0.0.

Load html page in ASP.NET MVC view

| | Category: asp.net MVC

In this example, I will show you how to load an html page in asp.net MVC view. You can call an html page from your view using Html.Action helper method.

 remove character from html file?

| | Category: .Net

While running the project I got the following  character displayed on the top of the html page. It was fixed by encode the html file using Notepad++.

[Solved]System.Data.Entity.DynamicProxies.Product Does not contain a property with the name ‘ProductId

| | Category: c# .net

I got this error “System.Data.Entity.DynamicProxies.Product Does not contain a property with the name ‘ProductId” while binding the object to the dropdownlist using the c# .net.

Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported.

| | Category: c# .net

I got this following error “Data binding to a store query is not support”, when I tried to bind the dropdownlist using the entity framework model object.

Xml dropdownlist bind in asp.net?

| | Category: c# .net

In this example, I will show you to bind dropdownlist with an xml file using ReadXml() method. In order to read data from cities.xml file into a dataset from the specified path using Server.MapPath.

Page 53 of 82