dotnet / dotnet/docs

.NET 6 IdentityUI Bootstrap License File Location Change

Open
#32,884 5 comments 0 reactions 0 assignees View on GitHub
dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Type of issue

Other (describe below)

### Description

It seems as though the location for the license file is changed as well for IndentityUI in .NET 6. I was unable to publish after upgrading to .NET 6.

Publish error:
> Web deployment task failed. (Unable to perform the operation ("Create File") for the specified directory ("C:\Inetpub\wwwroot\MyProjectName\wwwroot\Indentity\lib\boostrap\LICENSE"). This can occur if the server administrator has not authorized this operation for the user credentials you are using. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_INSUFFICIENT_ACCESS_TO_SITE_FOLDER.

In my previous file structure (based on ASP.NET Core 3.1 publishing) within the wwwroot\Identity\lib\bootstrap folder there were two folders; dist, containing the library itself, and a LICENSE folder containing a license filed named LICENSE.

Removing the entire LICENSE folder allowed me to publish successfully. After publishing, the LICENSE file is now directly in the root of the boostrap folder, and no longer nested within another folder called LICENSE.

For those people migrating from .NET Core 3.1 or .NET 5 to .NET 6, in addition to adding `Bootstrap4`
to their csproj file to keep the Bootstrap version at 4, I would also recommend adding the removable of the LICENSE folder prior to publishing.

### Page URL

https://learn.microsoft.com/en-us/dotnet/core/compatibility/aspnet-core/6.0/identity-bootstrap4-to-5

### Content source URL

https://github.com/dotnet/docs/blob/live/docs/core/compatibility/aspnet-core/6.0/identity-bootstrap4-to-5.md

### Document Version Independent Id

266e32ee-567e-f8dd-7da8-e82c277aab1c

### Article author

@casoper

### Metadata

* ID: 1e7a18c8-acae-f101-fcbd-f3b79f4e7c9f
* Service: **dotnet-fundamentals**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.