Red Gate forums :: View topic - Changing the custom web server URL via code
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Changing the custom web server URL via code

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
andrew248



Joined: 27 May 2014
Posts: 2

PostPosted: Tue May 27, 2014 2:03 pm    Post subject: Changing the custom web server URL via code Reply with quote

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?
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 212

PostPosted: Wed May 28, 2014 5:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
andrew248



Joined: 27 May 2014
Posts: 2

PostPosted: Thu May 29, 2014 5:38 pm    Post subject: Reply with quote

Hi Jessica,

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

Thank you!
Andrew
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 212

PostPosted: Fri May 30, 2014 4:33 pm    Post subject: Reply with quote

So glad to hear that helped! Smile
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group