How to edit the web.config via SVN?

Hi,

To use REST API in my application I need to change the web.config to run my application in an integrated pool. I’ve never done this before so I don’t how to edit it. Could somebody help me get through this?

Hey Eddie,

SVN folders and files are not accessible (yet) for partners, but there are still 2 possible solutions to solve your issue.

  1. Ask a Novulo employee to commit file changes to your svn location. To do so, create a service request via the Novulo portal that mentions your intended changes and the path to the SVN location.
  2. The new 3.9-ctp generator + framework generate a web.config file that is compatible with the “integrated mode” that is required to set up REST-endpoints in a Novulo application. So in your case, you can simply start a new order for your application via the composer. Then, before starting the integration + generation in deployment, choose “3.9-ctp”

I hope this helps!
Regards
Joachim

1 Like

Hi,

What Joachim suggested is almost complete. Actually both steps must be done as far as I am aware:

  1. Set your webconfig → system.webServer → modules section; add the attribute “runAllManagedModulesForAllRequests” and set it to true
  • You can do that via SVN commit ( I usually do that as I am not that experienced with the xpaths)
  • You can most likely do that via custom webconfig settings from deployment - you should use the xpath option to reach and set the system.webServer → modules with the correct property ( I find this option much cleaner for all webconfig related changes, as its a lot more visible to everybody what has changed in the webconfig compared to the stock application)
  1. The IIS application pool for your instance needs to run in Integrated mode
  • For 3.8 applications - you need a system administrator to change this setting, as far as I am aware, the only way to change the app pool to integrated mode is really manual labour done on the server hosting the application.
  • I can’t say anything about the new 3.9-ctp generator + framework generate a web.config file that is compatible with the “integrated mode” I would expect that this simply sets the stuff mentioned in step 1) . I would expect that the app pool still needs to be set manually to integrated mode. However, I could very well be wrong.

In the end, as Joachim suggested I believe your only option right now is to indeed contact your Novulo contact person.

Greetings
Miroslav

I’ve tested around a bit and noticed that everytime I tried to use the new 3.9-ctp generators I got new errors, even with new and completely empty models. Thanks for the tips though! I will use the steps and contact my Novulo contact person to put my app in integrated mode.