Developer forum

Forum » Rapido » Access is denied on Rapido 3.1 in Azure

Access is denied on Rapido 3.1 in Azure

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Tried to setup Rapido 3.1 in Azure today, using the setup from the installation manual on the doc site.
It has worked as a charm on earlier versions, but now I get an "Access is denied" error. Anyone seen this before?

Error executing template "Designs/Rapido/_parsed/Page.parsed.cshtml"
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Web.Hosting.IIS7WorkerRequest.PushPromise(String virtualPath, String queryString, String method, NameValueCollection headers)
   at System.Web.HttpResponse.PushPromise(String path, String method, NameValueCollection headers)
   at CompiledRazorTemplates.Dynamic.RazorEngine_6ff2d141e49546fda522b9471d26bd88.Execute() in D:\home\site\wwwroot\Solution\Templates\Designs\Rapido\_parsed\Page.parsed.cshtml:line 5988
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

By the way, admin interface is working as expected.


Replies

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

I tried something, and it resulted in a new error.
The solution I tried was to use "HTTP Version 2.0" not "HTTP Version 1.1".

Now I get this error:

Error executing template "Designs/Rapido/_parsed/Page.parsed.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.RazorEngine_a8536cb7a9f947c291a6168a0b5adb4c.getFontFamily(String[] items) in D:\home\site\wwwroot\Solution\Templates\Designs\Rapido\_parsed\Page.parsed.cshtml:line 26
   at CompiledRazorTemplates.Dynamic.RazorEngine_a8536cb7a9f947c291a6168a0b5adb4c.Execute() in D:\home\site\wwwroot\Solution\Templates\Designs\Rapido\_parsed\Page.parsed.cshtml:line 44
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Martin,

If you can get in Admin, make sure you check the properties of the Page (probably the homepage in your case).

This errosr might be related with some properties that are not selected on the PageProperties ItemType. Usually the SideNavigation and/or Breadcrumb options.

Check those, save the page and try again.

Adrian

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Thanks Adrian.
I tried this, but unfortunatly it did not help.

Now the first error is back again, so I do get "Access denied" even with HTTP 2.0, so I guess that did not have anything to do with this.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Martin,

Sorry to hear that. You say that the admin is working correctly, only the front-end is broken?

Might be a stupid question, but have you checked the permissions on the Files folder?

Adrian

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Yes, only front end is not working.
I have tried to CHMOD 755 on the entire Files folder, but it did not help.

I suspect that when the files are extracted from the zip-file they are in read only mode.
Tried to change that, but not sure if I managed to do it correctly.

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Martin

The first problem is that Azure seems to only have half support for http2. This is the issue: https://social.msdn.microsoft.com/Forums/en-US/5223c0f4-cd6b-4049-aba6-3aebb69ef520/cant-use-aspnet-pushpromise-api-on-http2?forum=windowsazurewebsitespreview

In the master template you will find some @PushPromise method calls that you can remove and you will not see the exception.

The second error I do not know. We need a URL to investigate.

BR Nicolai

Votes for this answer: 2
 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Thanks Nicolai, now it works :)

Had to remove PushPromise from these files:

  • /Templates/Designs/Rapido/MasterBlocks/References.cshtml
  • /Templates/Designs/Rapido/Master.cshtml

 

You must be logged in to post in the forum