5153 2
how can I set a specific page as a default page in .net core 2 using visual studio code

Hi, I'm using visual studio code to develop a web site using asp.net core 2. when I debug the project the default page is set as : https://localhost:xxxx

I want to set my page : "Account/Login" as my website's default page .

means when I debug the project the first screen should appear will this : https://localhost:xxxx/Account/Login

how can I do that?

Thanks 

...
Type
Question
2202 1
How to get separate DLLs for each area in an area concept applied project in ASP.NET MVC?

We are creating a big project/ERP in our software firm where we are using area concept for different modules. Problem is when we are publishing the project, there are only 5 project related DLLs like **.core.dll, *.utlility.DLL etc. What I am wanting is, to create DLLs for each area like HRMS.dll, Payroll.DLL, inventory.DLL etc. Is there any process?

...
Type
Question
5205 2
How can I delete a user detail in GIT (visual studio code)?

Hi, I have set user details on my git using those commnads :

  • Open terminal
  • git config --global user.name fadoua  
  • git config --global user.email fadoua@yyy.com  

I want now to delete that user now, how can I do that in Visual Studio code and Git Thanks.

...
Type
Question
6401 1
How to include anti-forgery token in ajax request in ASP.NET MVC?

When I am posting Form using jQuery Ajax in my ASP.NET Zero template, I am getting this error "Invalid anti-forgery token" or "The required anti-forgery form field \"__RequestVerificationToken\" is not present."

How can I Include in it in my AJAX Request in ASP.NET MVC, here is my current jQuery code

...
Type
Question
4621 1
Send message to all clients if a recurringJob in hangfire is started using SignalR in .net core2

Hi, I have made a recurring job in my asp.net core application using HangFire.IO, which trigger after 5 min of interval, here is my C# Code

...
Type
Question

8173 1
Getting error "Child actions are not allowed to perform redirect actions" in MVC

I am using ASP.NET MVC and trying to use HTML.RenderAction to render partial View, inside Main View, but getting error as "Child actions are not allowed to perform redirect actions."

Here is my .cshtml code 

...
Type
Question
4611 2
Could not load file or assembly 'Microsoft.AspNetCore.Connections.Abstractions, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Hi. I have installed the package Microsoft.AspNetcore.SignalR.  And when run my project I have faced this error :

Could not load file or assembly 'Microsoft.AspNetCore.Connections.Abstractions, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. 

how can I resolve this issue? Thanks.

...
Type
Question
3498 1
How to use NuGet Package in Visual Studio Code Linux Ubuntu to add package.(.net core2)

Hi, I'm new at using Visual Studio Code on Linux Ubuntu to create a web site (asp.net core2). I have installed NuGet Package in my Visual Studio Code but want to add some package.

...

Type
Question
2434 1
How to read powershell script file from log parser and save data in sql using c#?

Bascially,LogParser is used to read IIS logs.We upload one log file to log parser, select query and we get results of query like :user agent,ip address(basically hits to particular url).That query is PS(PowerShell Script) file.

Any idea how to read that PS file and save output of that query to db?

...
Type
Question
3136 2
How to add the SignalR client library in ASP.NET Core 2?

Hi, I'm using SignalR with .net core2 in Visual studio 2017 to send message to all users. But I don't know how can I add the SignalR client library.

My current javascript code is :

<script src="Scripts/jquery-1.6.4.min.js"
type="text/javascript"></script>
<script src="Scripts/jquery.signalR-0.5.2.min.js"
type="text/javascript"></script>
<script src="signalr/hubs" type="text/javascript"></script>
<script type="text/javascript">

var myHubProxy = $.connection.hub.CreateHubProxy("MyHub");
myHubProxy.on('ClientsListener', function (msg) {
// alert to test
alert(' message from server');
//$("#messageDisplay").text(msg);
})
$.connection.hub.start().done(function () {
myHubProxy.Invoke('MyServiceFunction');
})

</script>

In Which my project not contains those scripts :

<script src="Scripts/jquery-1.6.4.min.js"type="text/javascript"></script>
<script src="Scripts/jquery.signalR-0.5.2.min.js"type="text/javascript"></script>
<script src="signalr/hubs" type="text/javascript"></script>

Please how can add the SignalR client library. I was try this : But I remarked  no file clled Client_side library to add it .

...

Type
Question

Page 16 of 31