Skip to content

web.config AspNetCoreModuleV2 SQLite unable to open database file #6117

@SeriaWei

Description

@SeriaWei

Unable to open database file

web.config AspNetCoreModuleV2 SQLite throw the exception "unable to open database file".

ConnectionString

"ConnectionString": "Data Source=Database.sqlite"

But when i change to use AspNetCoreModule or change the connection string to Data Source=D:\\ZKEACMS\\Database.sqlite the application run correctly.

web.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\ZKEACMS.WebHost.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
    </system.webServer>
  </location>
</configuration>

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-iisIncludes: IIS, ANCM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions