Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqliteMembershipProvider initialization bug (Failed to map path '/'). #14234

Closed
musikhin opened this issue Apr 25, 2019 · 0 comments

Comments

@musikhin
Copy link
Contributor

@musikhin musikhin commented Apr 25, 2019

Steps to Reproduce

Please find the file attached with the steps to reproduce the bug.
Steps to reproduce.pdf

Current Behavior

In case when the asp.net application hosted not under the root location we get an error "Failed to map path '/'" at the first application run.

Expected Behavior

Possibility to launch the asp.net application at the custom location without any errors =)

Needs to replace the 142 code line in SqliteMembershipProvider with
m_MachineKey = (MachineKeySection)WebConfigurationManager.GetSection("system.web/machineKey");

On which platforms did you notice this

[ ] macOS
[x] Linux (CentOS 7.4 + apache 2.4.6)
[ ] Windows

Version Used:
5.16.0.220.
5.20.1.19

Stacktrace

at System.Web.HttpRequest.MapPath (System.String virtualPath, System.String baseVirtualDir, System.Boolean allowCrossAppMapping) [0x0011a] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.HttpRequest.MapPath (System.String virtualPath) [0x00012] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Hosting.HostingEnvironment.MapPath (System.String virtualPath) [0x00033] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Hosting.DefaultVirtualPathProvider.DirectoryExists (System.String virtualDir) [0x00013] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Configuration.WebConfigurationManager.FindWebConfig (System.String path, System.Boolean& inAnotherApp) [0x00019] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, System.Boolean fweb) [0x0001d] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x0000a] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00007] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Security.SqliteMembershipProvider.Initialize (System.String name, System.Collections.Specialized.NameValueCollection config) [0x0025e] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Configuration.ProvidersHelper.InstantiateProvider (System.Configuration.ProviderSettings providerSettings, System.Type providerType) [0x00069] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Configuration.ProvidersHelper.InstantiateProviders (System.Configuration.ProviderSettingsCollection configProviders, System.Configuration.Provider.ProviderCollection providers, System.Type providerType) [0x00038] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0
at System.Web.Security.Membership..cctor () [0x00020] in <979c6d3c1df54a4b9abbd8b5ecbe7cbb>:0

@marek-safar marek-safar added this to the Community milestone Apr 30, 2019
musikhin pushed a commit to musikhin/mono that referenced this issue May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.