Changing the custom web server URL via code
andrew248
Posts: 3
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?
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
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/" UseCustomWebServer="1" />
<Projects UseRelativePaths="1" />
</Options>
Hope that information helps!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
That's what I needed! I looked around, but neglected the ProgramData folder.
Thank you!
Andrew
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?