Changing the custom web server URL via code

andrew248andrew248 Posts: 3
edited May 30, 2014 11:33AM in SmartAssembly
We've been using a custom web server for our error reports.

Unfortunately, we want to change the location of that web server.

Our original web server won't be going away immediately, but we'd like the new versions of our product to report to the new web server.

This all seems fine except for that when running SmartAssembly.com with /downloadnewreports there doesn't seem to be a way to tell it what url to look for new reports at. It'll only check the web service that is currently set in the options.

Soooooooo... Can you help me set that value programmatically so that we can look for error reports from both the new and old web servers?

Comments

  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi Andrew,

    I'm sorry to say I don't have actual code prepared, but you could create a batch file or other program that would edit the smartassembly.settings file (located in C:\ProgramData\Red Gate\SmartAssembly) and change the CustomWebServer value:

    <Options>
    <Database DatabaseEngine="0" />
    <Maps LocalPath="C:\users\jessica.ramos\maps" />
    <WebProxy UseProxy="0" />
    <WebServices CustomWebServer="http://localhost:82/&quot; UseCustomWebServer="1" />
    <Projects UseRelativePaths="1" />
    </Options>

    Hope that information helps!

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


  • Hi Jessica,

    That's what I needed! I looked around, but neglected the ProgramData folder.

    Thank you!
    Andrew
  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    So glad to hear that helped! :)

    Jessica Ramos | Product Support Engineer | Redgate Software

    Have you visited our Help Center?


Sign In or Register to comment.