Base solution for your next web application

Activities of "PekitP"

Hi, great!

To change entity table link column:

  1. Go to www root, view-resorces, areas, app, views, bundles, index file
  2. Serach for columndef
  3. Below change targets: X data: "field" to add render below
{
                    targets: 3,
                    data: "name",
                    render: function (data)
                    {
                        return '<a href="' + data + '">Länk</a>';
                    },
                },

Hi,

Can you please help me out. I need one field / cloumn to show a klickable url in UI table, how do I manage to do this? NET Core, Jquery

Best /Peter

Hi,

Seems like a problem with iis+core https://github.com/aspnet/AspNetCore.Docs/issues/6905

For a remedy I've activated "Application Initialization" on server, so we'll see how that turns out.

Best/Peter

Hi,

Can't make my aspnetcore always running. IIS + GCP. To keep hangfire running.

I've set application pool on always running and restarted pool + set timeout to 0 even if not needed. App runs a couple of days then shuts down.

The IIS AspNetCore Module V2 sends each day:

  1. Sent shutdown HTTP message to process '3208' and received http status '202' Then:
  2. Application '/LM/W3SVC/1/ROOT' with physical root 'C:\inetpub\wwwroot' shut down process with Id '3208' listening on port '18285'

And app do not start again

I have another server which is setup like hangfire recommend, and runs flawless (own asp.net app) http://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html

Best /Peter

Hi, stashed all my changes and started over and now it workes.

Should have done it sooner..

Best /Peter

Hi, suddenly my platform stopped working in debug VS (17 and 19). I have one deployed exact same version that works.

Problem:

AmbiguousMatchException: The request matched multiple endpoints. Matches:

XXX.Web.Public.Controllers.HomeController.Index (Datatale.Web.Public) XXX.Web.Controllers.HomeController.Index (Datatale.Web.Mvc)

Pls help..

Best /Peter

Hi,
Here is the answer, core EF in most cases it doesn't like use of numbers, and favors references without them.
Rad tool works with multiple refs to same table when naming the navigation properties like "Wordone" and "Wordtwo" instead of "Word1" and "Word2". I guess it then sorts out the keys. Below is the generated working code: (Good to add to your to-do documentation for Rad tool)
public virtual int? Wordone { get; set; }
public Word Wordo { get; set; }
	
public virtual int? Wordtwo { get; set; }
public Word Wordt { get; set; }
Best/Peter

Hi,

Added foreignkeys explicit on both words, and it resolved the ref issue, but now throws a SQL error instead

	public virtual int? WordId { get; set; }

    [ForeignKey("WordId1")]
    public Word Word { get; set; }

    public virtual int? WordId2 { get; set; } 

    [ForeignKey("WordId2")]
    public Word Word2 { get; set; }
    

Exception thrown: 'System.Data.SqlClient.SqlException' in System.Private.CoreLib.dll

Hi,

Trying to create a entity in powertool, lets call it "note". To this note i want to add 2 words ie 2 Navigation Properties. These words is selected from entity Word. But when trying to to this in powertool it get following error:

"Both relationships between 'Note.Word' and 'Word' and between 'Note.Word2' and 'Word' could use {'WordId'} as the foreign key. To resolve this configure the foreign key properties explicitly on at least one of the relationships"

Any idea on how to solve this or do it another way?

Best /Peter

Showing 1 to 9 of 9 entries