Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • AWatters 33 posts 174 karma points
    Mar 31, 2022 @ 11:36
    AWatters
    0

    Cannot get v9 site to work on IIS

    I have been having some issues trying to get my first v9 site live on a production server with IIS. Locally it worked ok, once I set the App Pool Advanced Settings "Enable 32bit Applications" to true. If I leave it at false, both locally and on production, I get

    The app was likely published for a different bitness than w3wp.exe/iisexpress.exe is running as.
    

    Not sure that is relevant but just in case...

    Anyway now I'm getting a 500 error "currently unable to handle this request."

    This is the Log file, sorry it's so long but I thought it best to show it all

    {"@t":"2022-03-31T11:20:15.1839398Z","@mt":"Acquiring MainDom.","SourceContext":"Umbraco.Cms.Core.Runtime.MainDom","ProcessId":4572,"ProcessName":"w3wp","ThreadId":1,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"INFO "}
    {"@t":"2022-03-31T11:20:15.1849118Z","@mt":"Acquired MainDom.","SourceContext":"Umbraco.Cms.Core.Runtime.MainDom","ProcessId":4572,"ProcessName":"w3wp","ThreadId":1,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"INFO "}
    {"@t":"2022-03-31T11:20:15.4654756Z","@mt":"Profiler is VoidProfiler, not profiling (must run debug mode to profile).","SourceContext":"Umbraco.Cms.Web.Common.Profiler.InitializeWebProfiling","ProcessId":4572,"ProcessName":"w3wp","ThreadId":1,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"INFO "}
    {"@t":"2022-03-31T11:20:15.5099825Z","@mt":"No XML encryptor configured. Key {KeyId:B} may be persisted to storage in unencrypted form.","@r":["{bc73e41e-a446-422b-b0a6-7716e6dee1d8}"],"@l":"Warning","KeyId":"bc73e41e-a446-422b-b0a6-7716e6dee1d8","EventId":{"Id":35,"Name":"NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm"},"SourceContext":"Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager","ProcessId":4572,"ProcessName":"w3wp","ThreadId":1,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"WARN "}
    {"@t":"2022-03-31T11:20:15.8106161Z","@mt":"Application started. Press Ctrl+C to shut down.","SourceContext":"Microsoft.Hosting.Lifetime","ProcessId":4572,"ProcessName":"w3wp","ThreadId":1,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"INFO "}
    {"@t":"2022-03-31T11:20:15.8106953Z","@mt":"Hosting environment: {envName}","envName":"Production","SourceContext":"Microsoft.Hosting.Lifetime","ProcessId":4572,"ProcessName":"w3wp","ThreadId":1,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"INFO "}
    {"@t":"2022-03-31T11:20:15.8107126Z","@mt":"Content root path: {contentRoot}","contentRoot":"D:\\inetpub\\Website\\www","SourceContext":"Microsoft.Hosting.Lifetime","ProcessId":4572,"ProcessName":"w3wp","ThreadId":1,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"INFO "}
    {"@t":"2022-03-31T11:20:15.9688959Z","@mt":"Connection ID \"{ConnectionId}\", Request ID \"{TraceIdentifier}\": An unhandled exception was thrown by the application.","@l":"Error","@x":"System.UnauthorizedAccessException: Access to the path 'D:\\inetpub\\Website\\www\\umbraco\\Data\\TEMP\\NuCache\\NuCache.Content.db' is denied.\r\n   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)\r\n   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)\r\n   at CSharpTest.Net.IO.TransactedCompoundFile..ctor(Options options)\r\n   at CSharpTest.Net.Storage.BTreeFileStoreV2..ctor(Options options)\r\n   at CSharpTest.Net.Collections.BPlusTree`2.OptionsV2.CreateStorage()\r\n   at CSharpTest.Net.Collections.BPlusTree`2.NodeCacheBase..ctor(BPlusTreeOptions`2 options)\r\n   at CSharpTest.Net.Collections.BPlusTree`2.NodeCacheNone..ctor(BPlusTreeOptions`2 options)\r\n   at CSharpTest.Net.Collections.BPlusTree`2..ctor(BPlusTreeOptions`2 ioptions)\r\n   at CSharpTest.Net.Collections.BPlusTree`2..ctor(OptionsV2 optionsV2)\r\n   at Umbraco.Cms.Infrastructure.PublishedCache.DataSource.BTree.GetTree(String filepath, Boolean exists, NuCacheSettings settings, ContentDataSerializer contentDataSerializer)\r\n   at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.MainDomRegister()\r\n   at Umbraco.Cms.Core.Runtime.MainDom.Register(Action install, Action release, Int32 weight)\r\n   at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.<EnsureCaches>b__47_0()\r\n   at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)\r\n   at System.Threading.LazyInitializer.EnsureInitialized[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)\r\n   at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.EnsureCaches()\r\n   at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.CreatePublishedSnapshot(String previewToken)\r\n   at Umbraco.Cms.Web.Common.UmbracoContext.UmbracoContext.<>c__DisplayClass11_0.<.ctor>b__0()\r\n   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)\r\n   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)\r\n   at System.Lazy`1.CreateValue()\r\n   at System.Lazy`1.get_Value()\r\n   at Umbraco.Cms.Web.Common.UmbracoContext.UmbracoContext.get_PublishedSnapshot()\r\n   at Umbraco.Cms.Web.Common.UmbracoContext.UmbracoContext.get_Content()\r\n   at Umbraco.Cms.Web.Website.Routing.UmbracoRouteValueTransformer.TransformAsync(HttpContext httpContext, RouteValueDictionary values)\r\n   at Microsoft.AspNetCore.Mvc.Routing.DynamicControllerEndpointMatcherPolicy.ApplyAsync(HttpContext httpContext, CandidateSet candidates)\r\n   at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet)\r\n   at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)\r\n   at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext context)\r\n   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)\r\n   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\\projects\\dotnet\\src\\MiniProfiler.AspNetCore\\MiniProfilerMiddleware.cs:line 119\r\n   at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n   at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n   at Umbraco.Cms.Web.Common.Middleware.PreviewAuthenticationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n   at Umbraco.Cms.Web.Common.Middleware.UmbracoRequestLoggingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()","ConnectionId":"11096869487746541948","TraceIdentifier":"8000e97d-0001-9a00-b63f-84710c7967bb","EventId":{"Id":2,"Name":"ApplicationError"},"SourceContext":"Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer","RequestId":"8000e97d-0001-9a00-b63f-84710c7967bb","RequestPath":"/","ProcessId":4572,"ProcessName":"w3wp","ThreadId":5,"AppDomainId":1,"AppDomainAppId":"d21e3b97ecadec4f3bba7ed9f628fb1336469877","MachineName":"SQL22","Log4NetLevel":"ERROR"}
    
  • Patrick de Mooij 73 posts 623 karma points MVP 3x c-trib
    Mar 31, 2022 @ 11:51
    Patrick de Mooij
    100

    This is basically the error that you are currently getting: System.UnauthorizedAccessException: Access to the path 'D:\inetpub\Website\www\umbraco\Data\TEMP\NuCache\NuCache.Content.db' is denied.

    This means that the IIS user running your website isn't able to access those paths. You have to give access to the IIS_IUSRS and IUSR roles to your website folder and the items below it.

  • AWatters 33 posts 174 karma points
    Mar 31, 2022 @ 16:42
    AWatters
    0

    Thank you, this seems to have solved it. I still can't see the front end but I believe it's a licensing issue, as I can see the admin area. Waiting to get a license and then hopefully things will kick into gear.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies