Developer forum

Forum » Hosting » Frontend & Backend(Admin) Seperation

Frontend & Backend(Admin) Seperation

Arker Soe
Arker Soe
Reply

Hi Nocolai,

1. Frontend

I followed your webinar. I copied out bin folder, Global.asax, and web.conifg to another separate folder and pointing it in IIS.

But when I access the site it cuase an error below.

[NullReferenceException: Object reference not set to an instance of an object.]
   Dynamicweb.Security.Permissions.PermissionContext.EnsureContextIsOnTopOfStack(PermissionContext permissionContext) +81
   Dynamicweb.Security.Permissions.PermissionContext.get_AnonymousPermissionContext() +35
   Dynamicweb.Security.Permissions.PermissionContext.Frontend() +36
   Dynamicweb.Security.Permissions.PermissionControlledExtension.GetPermission(IPermissionControlled obj) +69
   Dynamicweb.Security.Permissions.PermissionControlledExtension.HasPermission(IPermissionControlled obj, PermissionLevel level) +27
   Dynamicweb.Frontend.PageView.Load() +2424
   Dynamicweb.AspNet.DynamicwebHttpHandler.ProcessRequest(HttpContext context) +49
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +541
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92
 

2. Backend

I just trying to separate backend into another domain as well, http://admin.example.com. but it doesn't work. Is there workaround for back-end separation?

 

Please refer to the attached screenshots.

back-end-separation.png front-end-separation.png

Replies

 
Nicolai Pedersen
Reply

You cannot do it like that.

Both instances in IIS needs to point to the same application folder - in the root and both have /bin and /admin. Only difference is that they will have different URLs - and different instances in IIS giving them 2 different application pools.

What are you trying to achieve or solve?

BR Nicolai

 
Arker Soe
Arker Soe
Reply

Hi Nicolai,

I believed your replied is for my question number 2. Thanks for your answer. Yes, what I want to acheive is to have differen application pools for backend and frontend.

 

Can you pls answer question number 1 as well? I followed your Webinar but face an error when I run it. 

 

 

 
Nicolai Pedersen
Reply
This post has been marked as an answer

What webinar would that be?

I think the answer to both questions is to pointing both iis instances to the same directory in the root.

Votes for this answer: 1
 
Arker Soe
Arker Soe
Reply

Hi Nicolai,

Please refer to the webinar link below. You can find it at around 23mins.

https://www.dynamicweb.com/videos/webinars/how-to-set-up-visual-studio-for-local-development

 
Nicolai Pedersen
Reply

That is Lars and not me :-).

So you still have the issue? And how does your setup look like now?

BR Nicolai

 
Arker Soe
Arker Soe
Reply

Hi Nicolai,

 

Pls see the attached video. When I tried isolate the front-end, it got an issue.

 

You must be logged in to post in the forum