Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Hosting is not able to load Microsoft.AspNet.Hosting.ini file #277

@rustd

Description

@rustd

I have a sample which has the following in web command and hosting file. This does not work today.

"web": "Microsoft.AspNet.Hosting",

and the following in Microsoft.AspNet.Hosting.ini

[Microsoft.AspNet.Hosting]
server=Microsoft.AspNet.Server.WebListener
server-urls=http://localhost:5000
System.InvalidOperationException: Unable to resolve path 'Microsoft.AspNet.Hosting.ini'; construct
his IConfigurationSourceRoot with a non-null BasePath.
   at Microsoft.Framework.ConfigurationModel.Helper.ConfigurationHelper.ResolveConfigurationFilePat
(IConfigurationSourceRoot configuration, String path)
   at Microsoft.Framework.ConfigurationModel.ConfigurationExtensions.AddIniFile(IConfigurationSourc
Root configuration, String path, Boolean optional)
   at Microsoft.AspNet.Hosting.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] arg
, IServiceProvider serviceProvider)
   at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationN
me, String[] args)
   at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] arg
, IServiceProvider serviceProvider)
   at dnx.host.Bootstrapper.RunAsync(List`1 args)
   at dnx.host.RuntimeBootstrapper.ExecuteAsync(String[] args)
   at dnx.host.RuntimeBootstrapper.Execute(String[] args)
Press any key to continue . . .

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions