I'm getting an DirectoryNotFoundException error after published an blazor assembly application ASP.NET CORE hosted in IIS

HooliganRD

I have in the server-side project a static files' folder to upload images, when I published this project, it gives me this error:

Error I got in IIS

The folder I'm talking about is here:

This is where I have the static files folder

And this is how I'm telling the application that I have a static files folder in the server-side:

       app.UseStaticFiles(new StaticFileOptions
        {
            FileProvider = new PhysicalFileProvider(
            Path.Combine(Directory.GetCurrentDirectory(), "upload")),
            RequestPath = "/upload"
        });

I hope some of you guys can help me.

Ismael

You just have to create the upload folder by your own in your application folder.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

.Net core application failing to upload via FTP, hosted on IIS

分類Dev

How to warmup an asp.net core app hosted in IIS (a) on website restart and (b) on redeploy?

分類Dev

OpenCover for ASP.Net Core application running on IIS Express

分類Dev

I'm getting an error 400 on xsr.send in my ajax call in .NET Core

分類Dev

Can I remotely debug an ASP.net application hosted on pivotal cloud foundry?

分類Dev

Download file from ASP.NET Core api from Blazor client application

分類Dev

How to host the basic ASP.NET Core 2 WebAPI application on IIS

分類Dev

CSS and JavaScript changes not published to Azure in ASP.NET Core

分類Dev

Debug .net core application deployed on local IIS?

分類Dev

IIS fails to run ASP.NET Core site - HTTP Error 502.5

分類Dev

IIS fails to run ASP.NET Core site - HTTP Error 502.5

分類Dev

How to load a .NET Core assembly from an application written in .NET Framework?

分類Dev

Azure WebApp Asp.NET Core 2 error: An error occurred while starting the application

分類Dev

JWT doesn't get stored in ASP.NET Core with Blazor

分類Dev

Error getting products from the logged in user. ASP.NET Core MVC

分類Dev

How to include reference to assembly in ASP.NET Core project

分類Dev

Inicie o aplicativo asp net core a partir de outro assembly

分類Dev

Path to LocalAppData in ASP.Net Core application

分類Dev

Localizable asp.net core + reactjs application

分類Dev

Publishing .NET Core web api/angular application to IIS

分類Dev

.NET Core 3 - IIS - Application Initialization doesn't work

分類Dev

Cannot launch asp.net core web app in IIS Express

分類Dev

How add exception in IIS url rewrite (ASP NET Core)?

分類Dev

HTTP Error 502.5 - Process Failure in ASP.NET Core 2.1 application

分類Dev

Why am I getting error: "Cannot access disposed object" in .net core 2 with EF and AutoFac?

分類Dev

Why am I getting an error when connecting to MySql in C# .Net Core 3

分類Dev

How to enable http/2 in Asp.net core 2.2 kestrel (self hosted) on server 2016

分類Dev

timeout error in ASP.Net application

分類Dev

.NET application (WinForms) depending on ASP.NET Core server

Related 関連記事

  1. 1

    .Net core application failing to upload via FTP, hosted on IIS

  2. 2

    How to warmup an asp.net core app hosted in IIS (a) on website restart and (b) on redeploy?

  3. 3

    OpenCover for ASP.Net Core application running on IIS Express

  4. 4

    I'm getting an error 400 on xsr.send in my ajax call in .NET Core

  5. 5

    Can I remotely debug an ASP.net application hosted on pivotal cloud foundry?

  6. 6

    Download file from ASP.NET Core api from Blazor client application

  7. 7

    How to host the basic ASP.NET Core 2 WebAPI application on IIS

  8. 8

    CSS and JavaScript changes not published to Azure in ASP.NET Core

  9. 9

    Debug .net core application deployed on local IIS?

  10. 10

    IIS fails to run ASP.NET Core site - HTTP Error 502.5

  11. 11

    IIS fails to run ASP.NET Core site - HTTP Error 502.5

  12. 12

    How to load a .NET Core assembly from an application written in .NET Framework?

  13. 13

    Azure WebApp Asp.NET Core 2 error: An error occurred while starting the application

  14. 14

    JWT doesn't get stored in ASP.NET Core with Blazor

  15. 15

    Error getting products from the logged in user. ASP.NET Core MVC

  16. 16

    How to include reference to assembly in ASP.NET Core project

  17. 17

    Inicie o aplicativo asp net core a partir de outro assembly

  18. 18

    Path to LocalAppData in ASP.Net Core application

  19. 19

    Localizable asp.net core + reactjs application

  20. 20

    Publishing .NET Core web api/angular application to IIS

  21. 21

    .NET Core 3 - IIS - Application Initialization doesn't work

  22. 22

    Cannot launch asp.net core web app in IIS Express

  23. 23

    How add exception in IIS url rewrite (ASP NET Core)?

  24. 24

    HTTP Error 502.5 - Process Failure in ASP.NET Core 2.1 application

  25. 25

    Why am I getting error: "Cannot access disposed object" in .net core 2 with EF and AutoFac?

  26. 26

    Why am I getting an error when connecting to MySql in C# .Net Core 3

  27. 27

    How to enable http/2 in Asp.net core 2.2 kestrel (self hosted) on server 2016

  28. 28

    timeout error in ASP.Net application

  29. 29

    .NET application (WinForms) depending on ASP.NET Core server

ホットタグ

アーカイブ