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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:57:45+00:00 2026-05-27T10:57:45+00:00

I have an requirement of store and retrieve data from isolated storage file.I will

  • 0

I have an requirement of store and retrieve data from isolated storage file.I will store data in the file from Winforms application but I need to retrieve that data from file in ASP.NET application.I have successfully saved the data in Isolated file through winforms application here is the code

            IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForDomain();

            string[] fileNames = isoStore.GetFileNames(fileName);

            if (fileNames != null && fileNames.Length > 0)
            {
                foreach (string file in fileNames)
                {
                    if (file == fileName)
                    {
                        isSuccess = true;
                        break;
                    }
                    else
                        isSuccess = false;
                }
            }

            if (!isSuccess)
            {                 
                oStream = new IsolatedStorageFileStream(fileName, FileMode.Create, isoStore);
                writer = new StreamWriter(oStream);
                writer.WriteLine(licenseCode);
                writer.Close();
            }

In ASP.NET application I will retrieve data from the isolated storage file.The code is shown below
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForDomain();

            string[] fileNames = isoStore.GetFileNames(fileName);                 

            //Retrieve License Code from Isolated storage
            iStream = new IsolatedStorageFileStream(fileName, FileMode.Open, isoStore);

            reader = new StreamReader(iStream);
            String line;

            while ((line = reader.ReadLine()) != null)
            {
                output = line;
            }
            return output;

But I am unable to retrieve the data which is stored in Isolated storage file from ASP.NET application (string[] fileNames = isoStore.GetFileNames(fileName); this string[] returns 0) which indicates no file exists in the machine.

Could anyone help me to solve this issue ?

  • 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-27T10:57:45+00:00Added an answer on May 27, 2026 at 10:57 am

    The isolated storage is isolated (as the name says already). So you wont be able to access isolated storage from different assemblys. I assume your ASP.NET app is not in the same assembly as your Winform app

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

Sidebar

Related Questions

The application that I'm designing will retrieve and store content from a variety of
I have requirement to create asp .net application that will upload garmin .fit files
The project I have been given is to store and retrieve unstructured data from
I have a requirement for implementing a data-store. Basically, I just need to be
I need to design a windows application that will reside within an organization's intranet.
In a Mac application, I have a requirement to store the private key sent
I have a requirement to store certain data in an encrypted form in Postgres.
I have created a .net application that is currently using a encrypted text file
I need a C++ library that can store and retrieve time series on demand
I have an application that runs on Ubuntu Linux 12.04 which needs to store

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.