Hi, I was running https on localhost IIS for the first time, I was usign http under my localhost and after reading this article:
https://deanhume.com/set-up-iis-7-to-run-a-secure-site-locally-https/
I tried to run https on my IIS and localhost.
But I'm facing this error : your connection is not private.
how can resolve that? Thanks.
...
I am trying to deploy sample website on somee.com using free hosting.
First I published my website as a folder.
1. I created new free hosting domain on somee.com, then after logging in proceeded to file manager ->
2. Then I make a zip folder for my published website folder
3. Then I upload the zip folder and select upload and unzip archives
4. I have add the default document inside web.config like that
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
5. Now this is my root folder file structure
...
Hi, I want to login with facebook account from my website MVC4 razor c# and add permissions for a FB user and for a FB page. I was found this article and try to do the same https://github.com/aspnet/Docs/blob/master/aspnet/mvc/overview/older-versions/using-oauth-providers-with-mvc.md
but I'm facing this error : Login Failure. Unsuccessful login with service.
What does this error means and how can resolve that problem. Thanks.
...Hello, I was trying to Enable SSL in localhost, means want to turn http into https in localhost , while debuggind code in Visual Stduio 2017, how can I enable this in Visual Studio 2017 community edition?
...My controller:
[Route("api/[controller]")]
[ApiController]
public class CategoriesController : ControllerBase
{
private readonly IUnitOfWork unitOfWork;
public CategoriesController(IUnitOfWork unitOfWork)
{
this.unitOfWork = unitOfWork;
}
[HttpGet]
[Route("TestCategories")]
public ActionResult<IEnumerable<Category>> TestCategories()
{
return unitOfWork.Categories.FindAll().ToList();
}
}
My Startup:
public void ConfigureServices(IServiceCollection services)
{
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.MinimumSameSitePolicy = SameSiteMode.None;
});
services.AddDbContext<ClassifiedAdsDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
services.AddScoped<IUnitOfWork, UnitOfWork>();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
}
I did break my app so i can understand how the codes work.
As you can see on my controller i used IUnitOfWork (Interface that comes from MyProject.Domain - class library)
Scenario:
...
I am showing some data in modal pop-up using BootStrap .Basically I am using for each loop for displaying Data. So I would like to know, How To apply paging in these scenario using PagedList asp net core mvc or any other plugin in pop-up modal.
thank you
...Do i need Service Layer? From my point of view/understanding.
Presentation Layer = UI
Business Logic Layer = Domain/Entities, Interface and (should DTO resides here)?
Data Access Layer = Implementation of Repository Pattern, CRUD.
Service Layer = ???
If the BLL has Domain/Entities? what layer does business validation belongs to?
From what i know and searched. Entites and DTO is plain.
...
How to change the default Login UI template of Identity Server 4 based on my preferences?.
What steps should I do to implement my desired design with Identity Server 4.
Any links that tells how to customize/cofigure the template will help.
I am having a hard time to implement my design onto it. I am thinking to create angular 2+ login page with restful services on identity server 4 but it was not recommended because of security purposes.
...Hello, I would like to know what's the difference between asp.net core and asp.net mvc, which one should I when?
I am currently working on MVC, but would like to know benefits of .NET Core.
...