Skip to content

NullArgumentException in AzureFileSystem.FixPath #101

@jasonshsoftware

Description

@jasonshsoftware

In FixPath, there is a line:
if (path.StartsWith(appVirtualPath))

This value is pulled from
public string ApplicationVirtualPath { get; internal set; } = HttpRuntime.AppDomainAppVirtualPath;

I'm running chauffeur to build up my database and it fails to insert media because HttpRuntime.AppDomainAppVirtualPath is null, since it runs outside IIS. I've noticed elsewhere in this class when appVirtualPath is used, it has a nullability check. It should be added here as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions