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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:54:36+00:00 2026-05-14T05:54:36+00:00

I am trying out Silverlight’s Isolated Storage feature. Currently running Silverlight thru ASP.NET page.

  • 0

I am trying out Silverlight’s Isolated Storage feature.
Currently running Silverlight thru ASP.NET page.

I have written some code to request an additional storage but I am not being prompted to add more.

private void requestButton_Click(object sender, RoutedEventArgs e)
{
    using (IsolatedStorageFile store = 
        IsolatedStorageFile.GetUserStoreForApplication())
    {
        if (store.AvailableFreeSpace >= 1000*1024) return;

        long usedSpace = store.Quota - store.AvailableFreeSpace;
        if (store.IncreaseQuotaTo(usedSpace + 1000*1024))
            statusTextBlock.Text = 
                string.Format("Quota has been increased to {0}", store.Quota);
        else
            statusTextBlock.Text = 
                "You have denied quota increase... you Inglorious Basterd...";
    }
}

Silverlight’s Application Storage tab doeslist the localhost ASP.NET page hosting Silverlight as shown below.

alt text

According to the screenshot, http://localhost:54389 has 1.0MB of available storage area.
Is there a restriction set on localhost websites that a prompt is ignored?

What are the required steps for Silverlight to prompt users to increase quota?

  • 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-14T05:54:36+00:00Added an answer on May 14, 2026 at 5:54 am

    Perhaps this might seem a bit simplistic but your screen shot shows that the current space used by localhost:54389 is 0.0MB. Hence the AvailableFreeSpace will be 1.0 MB (the size of the current quota). Now your code has this line in it:-

     if (store.AvailableFreeSpace >= 1000*1024) return;
    

    On that basis I would expect your code return at this point.

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

Sidebar

Related Questions

I'm currently trying out Silverlight with RIA Services. I'm implementing a simple login form.
I am currently trying to figure out a binding solution in Silverlight 4. I
I am trying to get out of browser support working for my Silverlight application
I'm trying to figure out how to do something similar to the twitter silverlight
Trying out the examples found on pleac.sf.net , I'm not able to get an
I am trying out the Historical Debugger in VS2010 Beta 1. I have it
I have been trying to figure out a reliable solution in provide a drag-drop-upload
I have been experimenting recently with Silverlight, RIA Services, and Entity Framework using .NET
I am messing with Silverlight trying to find out how to make it tick,
I'm trying to figure out a way to get a Silverlight Client to be

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.