I have just tried uploading my first umbraco 1 site to my hosting service but keep getting a HTTP Error 500.30 - ASP.NET Core app failed to start
The hosting service has come back to me with this info can anyone give me a hint where my local drive location is being set int he args for program.cs . => CreateHostBuilder(args)
Unhandled exception. System.IO.DirectoryNotFoundException: D:\Web Dev\New\U11\Intelligence By Design NZ 2023\wwwroot\
at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)
at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.<>c.<UseStaticWebAssetsCore>b__1_0(String contentRoot)
at Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider..ctor(StaticWebAssetManifest manifest, Func`2 fileProviderFactory)
at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.UseStaticWebAssetsCore(IWebHostEnvironment environment, Stream manifest)
at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.UseStaticWebAssets(IWebHostEnvironment environment, IConfiguration configuration)
at Microsoft.Extensions.Hosting.HostBuilder.InitializeAppConfiguration()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Umbraco.Cms.Web.Common.Hosting.UmbracoHostBuilderDecorator.Build()
at Intelligence_By_Design_NZ_2023.Program.Main(String[] args) in D:\Web Dev\New\U11\Intelligence By Design NZ 2023\Program.cs:line 6
If you are revering to the folder access permissions for wwwroot and views then yes.
If you read the question i dont think that has anything to do with the live server passing the location of my local machine instead of the live server.
The hosting service has come back to me with this info can anyone give
me a hint where my local drive location is being set int he args for
program.cs . => CreateHostBuilder(args)
It gets this value because that is the file in the dll/exe it was built from, so it just indicates which source file is throwing the error, it does sound like a permissions issue.
Huw Reddick I have solved it. (My turn to help you out.)
in the root directory on your server there will be a file called "[ddl project name].staticwebassets.runtime.json" the invalid location is in here "{ContentRoots":[.......]}
I renamed mine for testing purposes to *.junkjson which should mean it doesn't get accessed then recycled the IIS and away it went.
Figured this as a umbraco 10 site I already have running on the same server doesn't have this file.
Hosting a version 11 umbraco site
I have just tried uploading my first umbraco 1 site to my hosting service but keep getting a HTTP Error 500.30 - ASP.NET Core app failed to start
The hosting service has come back to me with this info can anyone give me a hint where my local drive location is being set int he args for program.cs . => CreateHostBuilder(args)
Have you set the permit ions on the relevant folders?
?
what are permit ions and what folders.
If you are revering to the folder access permissions for wwwroot and views then yes.
If you read the question i dont think that has anything to do with the live server passing the location of my local machine instead of the live server.
See the following Docs: https://docs.umbraco.com/v/10.x-lts/umbraco-cms/fundamentals/setup/server-setup/iis on how to configure IIS.
Also see the following: https://docs.umbraco.com/v/10.x-lts/umbraco-cms/fundamentals/setup/server-setup/permissions
It gets this value because that is the file in the dll/exe it was built from, so it just indicates which source file is throwing the error, it does sound like a permissions issue.
Huw Reddick I have solved it. (My turn to help you out.)
in the root directory on your server there will be a file called "[ddl project name].staticwebassets.runtime.json" the invalid location is in here "{ContentRoots":[.......]}
I renamed mine for testing purposes to *.junkjson which should mean it doesn't get accessed then recycled the IIS and away it went.
Figured this as a umbraco 10 site I already have running on the same server doesn't have this file.
Let us know if the same solution works for you.
is working on a reply...