Help with Isolated Storage?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm trying to prepare to use IsolatedStorage with an app that is going to
become a clickonce app. From what I understand, you can use the "application"
scope instead of the "assembly" scope in order to have differing assembly
versions not result in separate storage. Is this correct?

Q1: What does the "assembly" scope refer to? What info does it base this off
of? I tried to sue assembly scope and then change the version and rerun, but
I was accessing the same store. Then I found a blog that seemed to indicate
that you need to sign your assembly to have it use the version number. Is
this correct? If so, then is application mode the same as assembly mode for
unsigned assemblies?

Q2: When using "application" mode, I got:

Unable to determine application identity of the caller.

I read that this is because this mode can only be used when you're using a
clickonce app. If so, what's an elegant solution that would allow for
debugging locally?

Thanks...

-Ben
 
Hello,

Let us suppose we have a solution containing two projects: a winform
project and a class library. Of course, they will be compiled as two
assembly: one exe file and one dll file. The "assembly" scope means you get
two different Isolated Storage even if they can be run in same application.

Regarding on question 2, do you want to debug a ClickOne application
locally? I think you may open the source code in VS.NET and attach to the
current running process of the clickone application. Can this help on the
issue?

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello,

Besd on my test, this does nothing with version number, and this is same
with your result. Could you please let me know the address of the blog you
mentioned in previous message, which suggest to sign your assembly to have
it use the version number. I may verify it to see if it is true.

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Ben,

I think he states the difference between ClickOnce application and assembly
here:

This allows files stored using this isolation level to be accessible by
multiple versions of the same application, where the application version is
determined by the application manifest, as opposed to the normal individual
assembly versioning scheme for .NET-based applications.

Assembly version is simple as "1.0.0.0", and it is only for one
assembly(file). But ClickOnce Application's version is in the manifest file
and it is for the application. It is a little confuse here. In my
understanding, he just talk about the difference on version between
assembly and ClickOnce application, not IsolatedStorageScope will be
isolated by assembly version. I think we should believe what we get from
the actual test here.

If there is anything unclear, please feel free to let me know.

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Ben,

You can check the following properties of a IsolatedStorageFile object to
see their definitions:

ApplicationIdentity
AssemblyIdentity
DomainIdentity

Normally, they are different stings point to different location.

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Luke,

Can you confirm if changing an assembly's version number should point me to
new isolated storage when I'm isolating by assembly?

-Ben
 
Hi Ben,

I didn't find any public document stating this. Anyway, based on my test, I
got same isolated storage even the version number has been changed while
isolating by assembly

Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top