8497 3
Error "your connection is not private" when Setting up IIS to use https

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.

 

...
Type
Question
3404 1
How to deploy MVC 4 Razor ASP.NET website on somee.com?

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

...

Type
Question
3505 5
FB page Login Failure. Unsuccessful login with service when using OAuth in MVC

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.

...
Type
Question
7069 2
How to enable SSL in locahost using Visual Studio 2017?

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?

...
Type
Question
4848 0
State Management in Asp.Net
This article provides you details of managing state in asp.net web applications and explains state management options using example.
Type
Article

1918 1
ASP.NET Core - Dependency Injection

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:

  1. if i use the UnitOfWork class, the only thing the i need to inject (to startup.cs) is the UnitOfWork class only.
  2. if i use the IUnitOfWork interface. i need to inject both (to startup.cs) IUnitOfWork interface and UnitOfWork class as well because it gives error see below.

...

Type
Question
4137 2
PagedList in BootStrap pop-up Modal using Asp.Net CORE MVC

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

...
Type
Question
9228 3
What does Service Layer do? Repository Pattern / Unit Of Work

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.

 

 

...
Type
Question
6054 1
How to customize/configure cutom Login UI for Identity Server 4 based on their Quickstart Repo

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.

...
Type
Question
2884 1
What is the difference between ASP.NET MVC and ASP.NET Core?

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.

...
Type
Question

Page 20 of 31