Changing the custom web server URL via code

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Changing the custom web server URL via code

Postby andrew248 » Tue May 27, 2014 2:03 pm

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?
andrew248
 
Posts: 2
Joined: Tue May 27, 2014 1:49 pm

Postby jessica.ramos » Wed May 28, 2014 5:03 pm

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/" UseCustomWebServer="1" />
<Projects UseRelativePaths="1" />
</Options>

Hope that information helps!
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm

Postby andrew248 » Thu May 29, 2014 5:38 pm

Hi Jessica,

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

Thank you!
Andrew
andrew248
 
Posts: 2
Joined: Tue May 27, 2014 1:49 pm

Postby jessica.ramos » Fri May 30, 2014 4:33 pm

So glad to hear that helped! :)
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests