# Remove the wfgen sub folder/application

**URL:** <https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961>\
**Category:** Installation\
**Created:** [February 9, 2018, 2:29am UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961 "2018-02-09T02:29:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 9, 2018, 2:29am UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/1 "2018-02-09T02:29:03Z")

</div>

Hi,

I have been using WorkflowGen for over 10 years now and everytime I do a new install I hate seeing that sub application /wfgen/ in IIS. I hate having the users remember that Url. Is there a way to remove that application and simply install WorkflowGen on the root Website?

So instead of always having to go to [http://localhost/wfgen](http://localhost/wfgen), you can simply go to [http://localhost](http://localhost).

The URL rewrite option is not a solution, I don’t want to redirect the user, I want to get rid of the /wfgen/ sub folder completely.

Thanks,

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [February 9, 2018, 2:01pm UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/2 "2018-02-09T14:01:36Z")

</div>

Hi,

In IIS, you can simply change the physical path of the root website to “…\wwwroot\wfgen” instead of “…\wwwroot”. Localhost will then point to the \wfgen folder.  
(Right click on website -\> Manage Website -\> Advanced Settings…)

Make sure to also modify the Application URL configuration so that it matches with your setup changes.

Best Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 9, 2018, 2:15pm UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/3 "2018-02-09T14:15:28Z")

</div>

I will try that approach again. In the past, this caused problems since some parts of the system always point to /wfgen/.

I will try and let you know if it works.

Thanks,

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 9, 2018, 6:45pm UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/4 "2018-02-09T18:45:26Z")

</div>

The solution you recommend does not work because of the WorkflowGen Engine Service. Look at this discussion for explanation.

[https://discuss.workflowgen.com/t/the-wfgworkflowengineservice-exe-does-not-start/104](https://discuss.workflowgen.com/t/the-wfgworkflowengineservice-exe-does-not-start/104)

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [February 9, 2018, 7:52pm UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/5 "2018-02-09T19:52:26Z")

</div>

Hi,

This is a very old article (9 years old) and I’m discussing with the team to remove it.  
I tried my solution and it worked fine without the “/wfgen” path. The services were running fine as well.  
Have you tried it on your side?

Best Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 10, 2018, 12:29am UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/6 "2018-02-10T00:29:16Z")

</div>

I will try it again and let you know.

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 10, 2018, 12:45am UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/7 "2018-02-10T00:45:49Z")

</div>

It doesn’t work for me. New installation from PowerShell. I get the following error when trying to run the service. If I change it back with the wfgen subfolder, it works.

```
Service cannot be started. System.NullReferenceException: Object reference not set to an instance of an object.
   at Advantys.Workflow.Win.Services.EngineService.CheckTimeLimitService.OnStart(String[] args)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

<exception callerId="WorkflowGenEngineService ServiceLoad"><source>mscorlib</source><message>Length cannot be less than zero.
Parameter name: length</message><type>System.ArgumentOutOfRangeException</type><stackTrace><![CDATA[ at System.String.Substring(Int32 startIndex, Int32 length)
   at Advantys.Workflow.Win.Services.EngineService.ServiceController.LoadConfiguration()
   at Advantys.Workflow.Win.Services.EngineService.CheckTimeLimitService..ctor()]]></stackTrace><innerException></innerException></exception>
```

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 10, 2018, 12:51am UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/8 "2018-02-10T00:51:09Z")

</div>

Wait a minute! I found the problem.

When there is no end slash “/” at the end of the Url in the Web.config, it doesn’t work. Making sure that ending slash is there works!

This does not work:  
`<add key="ApplicationUrl" value="http://localhost" />`

This works!  
`<add key="ApplicationUrl" value="http://localhost/" />`

So make sure the end slash at [http://localhost/](http://localhost/) is there!

---

<div class="post-metadata">

**Author:** ![ParadimeWeb](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@ParadimeWeb](https://discuss.workflowgen.com/u/ParadimeWeb)\
**Post date:** [February 14, 2018, 12:55am UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/9 "2018-02-14T00:55:21Z")

</div>

Here is another issue I found with the graphql.

You need to modify the server.js file to change the rootUrl

> const rootUrl = ‘/graphql’;

Instead of…

> const rootUrl = ‘/\*/graphql’;

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [February 14, 2018, 1:19pm UTC](https://discuss.workflowgen.com/t/remove-the-wfgen-sub-folder-application/961/10 "2018-02-14T13:19:40Z")

</div>

> [@ParadimeWeb](#):
>
> Here is another issue I found with the graphql.
> 
> You need to modify the server.js file to change the rootUrl
> 
> > const rootUrl = ‘/graphql’;
> 
> Instead of…
> 
> > const rootUrl = ‘/\*/graphql’;

Hi,  
Thank you for mentioning this. We will correct this in the upcoming version.

Best Regards,  
Eddy.
