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

  • Home
  • SEARCH
  • 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 6850699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:09:25+00:00 2026-05-27T01:09:25+00:00

I am developing c# application in which to send and get requests we use

  • 0

I am developing c# application in which to send and get requests we use HTTP protocols.
The c# application is running as server which is a console application, and the data manipulation(CRUD) done from the front end developed using flex.
And another c# application which is a windows based act as client(Station) ,receive data from database.
For that a request from station send to server as http request and server response back to the station with data and store data in local database where station exists.
Now my problem is that if two stations running with same server and requesting for different databases, sometimes the data will get mismatch each other.
Example if server contains two databases say db1 and db2.And station1 want data from db1 and station2 from db2.Some times Station1 gets db2 data and station2 gets db1 data.
How is it possible.Please find a piece of code below.

private void LogRequest(SiteSession siteSession)
{
StringBuilder sb = new StringBuilder();
sb.AppendFormat("({0}) {1} {2}",
Request.RemoteEndPoint.Address.ToString(),
Request.Method.ToUpper(),
Request.Uri.AbsoluteUri);

if (siteSession != null)
{
sb.AppendFormat("({0}/{1}/{2})",
siteSession.sessionId,
siteSession.site.Name,
siteSession.user.UserName);
}
else
{
sb.AppendFormat(" - not serviced, reason:no valid session");
}

TouchServer.Log(Logger.MessageType.Trace, 1, sb.ToString());

if (TouchServer.showURLs)
{
Console.WriteLine("{0}: {1}", DateTime.Now, sb.ToString());
}

}

Please let me know the possiblities.
Thank you.
Regards
sangita

  • 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-27T01:09:26+00:00Added an answer on May 27, 2026 at 1:09 am

    The problem obviously connected to database connection string . You can write connection strings to log or to debug view

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing one GPS Application. Which will send the location data to server
I am developing one application which will send the request to server and get
I'm developing an android application which is to collect data and then send it
I'm developing an application via which one can send sms by directing it to
I am developing a simple application which has to send an SMS message from
I'm developing an application which needs to store large amounts of data. I cannot
I'm developing an application which make use of display lists offered by OpenGL. My
I am developing an application with PyQT4 which will POST some data to a
I am developing automated testing tool type application in which it get window handle
I am developing an application in which I want to use an NSDictionary .

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.