skip to Main Content

Add Migration with asp.net web API

PM> Add-Migration InitialCreate Exception calling "SetData" with "2" argument(s): "Type 'Microsoft.VisualStudio.P rojectSystem.VS.Implementation.Package.Automation.OAProject' in assembly 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable." At C:UsersCtop.nugetpackagesentityframework6.0.0toolsEntityFramework.psm1 :609 char:5 + $domain.SetData('project', $project) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException +…

VIEW QUESTION

the datasource for gridview Gridview1 didn't have any properties or attributes from which to generate columns. Ensure that your datasource has content – Asp.net

This is the error I'm getting. The data is being retrieved through WebAPI, but due to a gridview setting, it is not displaying the retrieved data. protected void Page_Load(object sender, EventArgs e)       {           try           {               var webRequest = (HttpWebRequest)WebRequest.Create("https://localhost:44342/api/author");               var webResponse = (HttpWebResponse)webRequest.GetResponse();               if ((webResponse.StatusCode == HttpStatusCode.OK) && (webResponse.ContentLength > 0))               {                   var reader = new StreamReader(webResponse.GetResponseStream());                   string s = reader.ReadToEnd();                   var arr = JsonConvert.DeserializeObject<JArray>(s);                   //Console.WriteLine(arr);                   GridView1.DataSource = arr;                   GridView1.DataBind();…

VIEW QUESTION
Back To Top
Search