Posted on

How to Deploy ASP.NET Core Web API on IIS Windows Server

(Tested on windows server 2012r2)

Install the .NET Core Hosting Bundle on Windows Server

The .NET Core Hosting bundle is an installer for the .NET Core Runtime and the ASP.NET Core Module. The bundle allows ASP.NET Core apps to run with IIS.

Current version:.NET Core Hosting Bundle installer (direct download)

(for this test we installed version .Net Core 8 on win 2012r2)

Visual Studio : Publish on Folder

After creating the ASP.NET Core application in Visual Studio, we can use the Visual Studio Publish Tool to deploy and run our app. For this project, choose to publish to a folder. Choose the folder and hit “Finish”.

In the next screen, where you see the settings for this deploy, click on “More Actions” and then on “Edit”.

Select :

  • Deployment Mode : Complete
  • Target Runtime : win-x64 (for our server)
  • File Publish Options : Delete all existing files prior to publish (flagged)
  • Database : Default Connection edit (if yuu need it)

Save this configuration, control it an Publish.

Copy the contents of the folder on the IIS server to the folder dedicated to the new site.

IIS and new site

Create the site on IIS. For the Application Pool you have to use default .NET CLR Version : v4.0.

Open your browser and call up the site. You receive the “page not found” error (404).

Remember that a site that hosts only calls web api. To verify that it works you can use the controller that Visual Studio sets by default when creating a site. Then type:

https://www.mynewapisite.com/WeatherForecast

and you will get a result. The site works!

Posted on

Mecdata – Website Development

MECDATA is an Italian company that offers a wide range of IT services, including website development and design. They have a team of experienced web developers who can create custom websites that meet the specific needs of their clients. MECDATA’s website development services include:

  • Website design and development: MECDATA can design and develop a website from scratch, or they can work with you to redesign an existing website.
  • E-commerce solutions: MECDATA can create an e-commerce website that allows you to sell your products or services online.
  • Content management systems (CMS): MECDATA can install and configure a CMS for your website, which will allow you to easily manage your website’s content.
  • Search engine optimization (SEO): MECDATA can help you optimize your website for search engines, so that it is more likely to be found by potential customers.
  • Website maintenance: MECDATA can provide ongoing maintenance for your website, so that it is always up-to-date and secure.

MECDATA’s website development services are affordable and reliable, and they have a strong track record of success. They are committed to providing their clients with high-quality websites that meet their specific needs.

If you are looking for a company to develop your website, MECDATA is a great option. They have the experience and expertise to create a website that will help you achieve your business goals.

Here are some of the reasons why you should choose MECDATA to develop your website:

  • Experience: MECDATA has a team of experienced web developers who have a proven track record of success.
  • Expertise: MECDATA has expertise in all aspects of website development, from design and development to SEO and maintenance.
  • Affordability: MECDATA’s website development services are affordable and competitive.
  • Reliability: MECDATA is a reliable company that is committed to providing its clients with high-quality websites.

Contact MECDATA today to get a free quote for your website development project.


Post written by Bart on 21/11/2023
Posted on

iis error 0x80070021 on web.config

This error occurs when installing a site locally with IIS on a windows 10 or a windows 8.1. It is not excluded that it can also occur on server operating systems.

Error Details

Module :IIS Web Core

Notice: BeginRequest

Handler: Not yet determined

Error: 0x80070021

Configuration error: This configuration section can not be used in this way. This happens when the section is locked at the parent level. Locking is either by default (overrideModeDefault = “Deny”), or installed directly by the tag location with overrideMode = “Deny” or inherited property allowOverride = “false”.

The configuration file
\\?\C:\inetpub\wwwroot\test\web.config

Physical Path
C:\inetpub\wwwroot\test\miofile

Logon Method: Not yet determined

Users who have logged on: yet to be determined

SOLUTION

You also need to install .NET and the IIS development tools

or

Posted on

Proxy Server Web – Noleggio e vendita.

Un sistema di Web proxy cache completo per la tua rete.

Un proxy server è un server che si incarica di caricare le pagine web da internet e le copia localmente. Tutto questo in modo trasparente rispetto alla normale navigazione web.

Per la rete lan può essere fondamentale visto che gli utenti non accedono direttamente ad internet ma prima al server proxy. In questo modo se una pagina è già stata visitata da un utente la velocità navigazione aumenta notevolmente e diminusce il cosumo di banda.

Inoltre un proxy server web può gestire anche gli accessi a determinati siti web bloccandone permettendone l’accesso, tutto questo anche ad orari prestabiliti (esempio si può lasciare libero l’accesso a siti prestabiliti solamente nelle ore di pausa pranzo), aumentando così la sicurezza della navigazione all’interno della propria rete.

Come avviene il collegamento con un server proxy?

La propria rete composta da computer fissi, mobili, tablet e smartphone.
Questi dispositivi, detti client, si collegano in maniera del tutto trasparente per gli utenti e senza bisogno di ulteriori configurazioni al Server Proxy

Il Server Proxy prende in carico tutte le richieste dei client. Restituisce una risposta come sopra descritto. A sua volta il Server Proxy si collega con la rete esterna, internet

Rete esterna – Internet

 Tutta la rete globale del World Wide Web

Un elenco delle principali funzionalità del nostro Proxy Server Web

  • Cache: gestione della chace di navigazione degli utenti
  • Privacy: garantire privacy verso i contenuti vistati, controllo e file di log delle attività in rete
  • Blocco siti web: possibilità di bloccare siti web, anche ad orari prestabiliti
  • Velocità: una migliore e più efficente velocità di navigazione grazie alla gestione della cache locale, senza dover scaricare nuovamente da internet elementi già presenti sul Proxy Server Web
  • Sicurezza: il Proxy Server Web è un filtro tra la propria rete di client ed internet.
  • Trasparenza: per gli utenti ed i client il processo di instradamento delle richieste internet è del tutto trasparente e non c’è bisogno di alcuna configurazione sui device di navigazione

 Per ulteriori informazioni non esitate a contattarci.