Search code examples
iisflutter-dependenciesflutter-web

Publishing a Flutter project to IIS


I am publishing my first Flutter web application to a local VM using IIS. I used Visual Studio Code and released the project and zipped it up to transfer it to the server. After placing the file into the root folder of IIS and creating the website bindings I opened the web page and received this Error message

HTTP Error 401.3 - Unauthorized You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

I looked around and could not find anything on how to fix the issue. I have two other web pages running on the same IIS and they are both working perfectly fine. This is the first Flutter project so my guess is it's causing this error. I am using Firebase as my database so I am not sure if there is something I must do specific for Firebase to allow access.

These are all the Dependencies I am running in the project:

Dependencies:

flutter:

sdk: flutter



# The following adds the Cupertino Icons font to your application.

# Use with the CupertinoIcons class for iOS style icons.

cupertino_icons: ^1.0.2

cloud_firestore: ^3.1.14

firebase_core: ^1.16.0

firebase_auth: ^3.3.17

http: ^0.13.4

fluro: ^2.0.3

fluttertoast: ^8.0.9

url_launcher: ^6.1.3

json_annotation: ^4.5.0

build_runner: ^2.1.11

json_serializable: ^6.2.0

Does anyone have any ideas?


Solution

  • Under the site that is causing the issue select the Authentication option and right click on the Anonymous Authentication and select edit. If the specific user is blank select the Application pool identity. This method does work.