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 6359649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:32:51+00:00 2026-05-24T23:32:51+00:00

I try to create an application that is able to run in Windows Azure

  • 0

I try to create an application that is able to run in Windows Azure cloud but also on a local server.

Most parts of the application already works on both without problem. But there are some features that I don’t know how to make them run on both, for example:

Users are able to upload attachments. In Azure the files are stored in the Windows Azure Storage, on the local server they should be stored in a local folder.

I have no idea how to manage this.

  • 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-24T23:32:51+00:00Added an answer on May 24, 2026 at 11:32 pm

    I’d like to suggest you to learn about inversion of control, because you’ll be able to switch file storage and other things depending on selected hosting platform.

    For example, you’d have an interface called IFileStorage having such methods (and more):

    • Create
    • Append
    • Remove
    • …

    And two implementations for IFileStorage:

    • WinAzureFileStorage
    • DefaultFileStorage

    At the end of the day, you’ll be doing that:

    IFileStorage storage = DependencyManager.Resolve<IFileStorage>();
    storage.Create("SomeFile.txt");
    storage.Append("SomeFile.txt", "Hello world");
    

    And some inversion of control configuration will map the appropiate IFileStorage implementation depending on hosting platform.

    If you want to learn more about inversion of control:

    • http://en.wikipedia.org/wiki/Inversion_of_control

    Finally, if you think this is the right way, check Castle Windsor, which is a great, solid and stable inversion of control (and other things) framework on top of .NET:

    • http://docs.castleproject.org/Windsor.MainPage.ashx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a Windows Application that will be able to run
I have installed Red5 server successfully and also am able to run the demos
I am trying to create an application that is able to write text into
I try to create some li elements in my XUL Application. Theres only the
I try to create a very simple app using windows API. I've done some
I try to create a form that can save a person's form data so
When I try to create a SQL Server Login by saying CREATE LOGIN [ourdomain\SQLAccessGroup]
I'm writing an application that needs to create a special user account hidden from
I am trying to create a WPF application that will be a central point
I am trying to create a application that will figure out how to find

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.