Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5928161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:15:38+00:00 2026-05-22T14:15:38+00:00

I have this code which gets a uri’s content into a MemorySream: MemoryStream ms

  • 0

I have this code which gets a uri’s content into a MemorySream:

MemoryStream ms = new MemoryStream();
SvnTarget target = new SvnUriTarget(new Uri(webConfigUri));
client.Write(target, ms);
string webConfigText = Encoding.ASCII.GetString(bms.ToArray());
webConfigText = webConfigText.Replace(oldLine, newLine);

This works.

Question: How do I now save the changes (in webConfigText) I’ve made?

Thanks, I’m currently tearing my hair out.
D

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:15:39+00:00Added an answer on May 22, 2026 at 2:15 pm

    Re-reading this question, it seems like you want to commit the changes back to the repository. You can’t do this without a working copy. If you really want to only do this, create a working copy in the temp dir, and delete it afterwards.

    var client = new SvnClient();   
    string workingCopy = Path.Combine(Path.GetTempDir(), "workingcopy";
    client.CheckOut(new Uri(reposUri), workingCopy);
    
    // modify the file(s)
    client.Commit(workingCopy, new SvnCommitArgs { LogMessage = "Automatic commit" });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code which gets WP posts, but it gets all the posts
I have this code: myVariable which I want to change into trace(myVariable: + myVariable);
I have this code, which gets an clicked div id: $(document).ready(function(){ $(.playitem).click(function(){ pos =
I have this Prolog code: pick_number_simple([],[]). pick_number_simple([H|T],[H|T2]):- number(H), pick_number_simple(T,T2). pick_number_simple([H|T],T2):- not(number(H)), pick_number_simple(T,T2). which gets
I have this code in jQuery: children('table').children('tbody').children('tr').children('td') Which gets all table cells for each
I have this piece of code: byte[] snap = ((VideoControl) player).getSnapshot(encoding=jpeg); , which gets
I have this code which gets the contents from a mysql databse. So basically,
I have this code which is called at an onChange event of an function
I have this code (which is way simplified from the real code): public interface
I have this code which compiles and works as expected: class Right {}; class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.