Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2004

Tip: Looking for answers? Try searching our database.

how can my app access files even when run from web?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
assaf - 01 Nov 2004 16:24 GMT
shi all

my app is available to be run
directly from the web.
however, it needs to access files.

when a file access is attempted,
the user gets a message box from the security policy.
'the operation required the SecurityException'.

is there any way that the user
can allow the application access to the file?

assaf
JWhitted - 01 Nov 2004 22:50 GMT
This is an issue with the client's .NET CAS (Code Access Security) settings.  
I'm assuming your application has a strong name and is being retrieved via
one-click deployment using IE.  Now, you just got to get the clients to trust
your application.

There's a few things the client could do:
1.  In IE, Tools > Internet Options, select the Security tab, select Trusted
sites, then click the "Sites..." button and add your site to the list.  Of
course, this may/may not get rid of the error depending on the client's CAS
setting for "Trusted sites"
2.  Start > Programs > Administrative Tools > Microsoft Framework 1.1
Wizards, select "Trust an Assembly" and then follow the wizard's prompts to
trust the application.  Using this setup the client can choose to trust this
application, or all applications using the same key (used to give the app a
strong name).

Hope that helped.

--
Jason Whitted

> shi all
>
[quoted text clipped - 10 lines]
>
> assaf
assaf - 01 Nov 2004 22:48 GMT
hi jason

of course this helps.
but my question is:
isn't it possible to just pop up a message box,
asking the user to click a button thereby
allowing the app to access files.

isn't this the way java apps used to access files?

i really dont' want to bother my clients to
have to change the security settings in their
IE or computer.

i just want my app to ask
the 'policy manager' to pop up an app
and have the user OK this.

i don't want to bother my clients to read through docs...

i mean, all that the app is trying to do
is simply write a configuratio file
into the user's AppData directory.
and after that open a socket for communications.

why can't the app ask the policy
ask the user to ok this
very benign act?

assaf

> This is an issue with the client's .NET CAS (Code Access Security) settings.
> I'm assuming your application has a strong name and is being retrieved via
[quoted text clipped - 31 lines]
> >
> > assaf
Angelos Karantzalis - 02 Nov 2004 12:25 GMT
Have you considered having an installer for download as a workaround ? Or is
that out-of-the-question ?

O:]

> hi jason
>
[quoted text clipped - 69 lines]
> > >
> > > assaf
assaf - 02 Nov 2004 14:50 GMT
hi angelos

i allow users to download and install my app.
however, it is much better if the user
would be able to click-run my app.

i know that this is possible in java.
where the user is told at app start-up,
that the app wants to access files.

i really hope that this feature is available in .NET.
it means a world of difference to me.

assaf
http://www.CipherChats.Com

> Have you considered having an installer for download as a workaround ? Or is
> that out-of-the-question ?
[quoted text clipped - 77 lines]
> > > >
> > > > assaf
Jacky Kwok - 03 Nov 2004 02:30 GMT
> i allow users to download and install my app.
> however, it is much better if the user
[quoted text clipped - 3 lines]
> where the user is told at app start-up,
> that the app wants to access files.

I think you are saying "Java Web Start".

> i really hope that this feature is available in .NET.
> it means a world of difference to me.

There is a "ClickOnce" Deployment in VisualStudio 2005 and Dotnet 2.0.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html
/clickonce.asp


I think it is quite similar to "Java Web Start".

Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
jacky@compose_DOT_com_DOT_hk
assaf - 03 Nov 2004 16:34 GMT
looks great.

how can i get Visual Studio 2005?
with out paying!

i am currently using the
Visual Studio 2003 evaluation version.
is there a 'parallel' version for 2005?

is .NET 2.0 available to the public?

assaf

> > i allow users to download and install my app.
> > however, it is much better if the user
[quoted text clipped - 10 lines]
>
> There is a "ClickOnce" Deployment in VisualStudio 2005 and Dotnet 2.0.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html
/clickonce.asp


> I think it is quite similar to "Java Web Start".
>
> Jacky Kwok
> jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
> jacky@compose_DOT_com_DOT_hk

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.