Skip to content
This repository has been 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

Closed
rustd opened this issue May 20, 2015 · 4 comments
Closed

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

rustd opened this issue May 20, 2015 · 4 comments
Assignees
Milestone

Comments

@rustd
Copy link

rustd commented May 20, 2015

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 . . .
@rustd
Copy link
Author

rustd commented May 20, 2015

@muratg this is for Beta5 for the templates

@Tratcher
Copy link
Member

FYI: The expected key names are:

server=Microsoft.AspNet.Server.WebListener
server.urls=http://localhost:8080

or

Hosting:Server=Microsoft.AspNet.Server.WebListener
server.urls=http://localhost:8080

@rustd
Copy link
Author

rustd commented May 22, 2015

@Tratcher I tried this and I got this error

System.InvalidOperationException: IHostingBuilder.UseServer() is required for Start()
   at Microsoft.AspNet.Hosting.Internal.HostingEngine.BuildApplication()
   at Microsoft.AspNet.Hosting.Internal.HostingEngine.Start()
   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[] args
, IServiceProvider serviceProvider)
   at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationNa
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[] args
, IServiceProvider serviceProvider)
   at dnx.host.Bootstrapper.RunAsync(List`1 args)
   at dnx.host.RuntimeBootstrapper.ExecuteAsync(String[] args)
   at dnx.host.RuntimeBootstrapper.Execute(String[] args)

@Tratcher
Copy link
Member

Using what packages? Coherence hasn't published a build in days. Or are you using volatile?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants