Saturday, March 24, 2012
Permission problem
I am trying to download the PDF files from my webserver using ASP.Net.
All my files are stored at F Drive on webserver. Like this F:\Main
Folder\Sub Folder\user folder\files\File1.pdf
I am impersonating the domain user account and downloading the file, It
seems the impersonate is got success.
If I gave full control to that user folder, its allowing me to download the
file.
BUT, If I gave read&execute permisson to that folder, its asking me the
windows username and password window for dowload the file.
My client doesn't need that windows checking. we already given the read &
execute permission to that folder, then why its asking the windows user name
and password window?
any idea please.
thanks
balaIs it possible that a temporary file is being created somewhere and that is
demanding greater permissions?
Ken
"Bala" <Bala@.discussions.microsoft.com> wrote in message
news:04A524B8-2287-4659-BDD7-1AFB3A9C48A9@.microsoft.com...
> Hi
> I am trying to download the PDF files from my webserver using ASP.Net.
> All my files are stored at F Drive on webserver. Like this F:\Main
> Folder\Sub Folder\user folder\files\File1.pdf
> I am impersonating the domain user account and downloading the file, It
> seems the impersonate is got success.
> If I gave full control to that user folder, its allowing me to download
> the
> file.
> BUT, If I gave read&execute permisson to that folder, its asking me the
> windows username and password window for dowload the file.
> My client doesn't need that windows checking. we already given the read &
> execute permission to that folder, then why its asking the windows user
> name
> and password window?
> any idea please.
> thanks
> bala
>
seems like good idea, But there is no other way to solve this problem?
Thanks
bala
"Ken Cox [Microsoft MVP]" wrote:
> Is it possible that a temporary file is being created somewhere and that i
s
> demanding greater permissions?
> Ken
> "Bala" <Bala@.discussions.microsoft.com> wrote in message
> news:04A524B8-2287-4659-BDD7-1AFB3A9C48A9@.microsoft.com...
>
>
Permission problem
I am trying to download the PDF files from my webserver using ASP.Net.
All my files are stored at F Drive on webserver. Like this F:\Main
Folder\Sub Folder\user folder\files\File1.pdf
I am impersonating the domain user account and downloading the file, It
seems the impersonate is got success.
If I gave full control to that user folder, its allowing me to download the
file.
BUT, If I gave read&execute permisson to that folder, its asking me the
windows username and password window for dowload the file.
My client doesn't need that windows checking. we already given the read &
execute permission to that folder, then why its asking the windows user name
and password window?
any idea please.
thanks
balaIs it possible that a temporary file is being created somewhere and that is
demanding greater permissions?
Ken
"Bala" <Bala@.discussions.microsoft.com> wrote in message
news:04A524B8-2287-4659-BDD7-1AFB3A9C48A9@.microsoft.com...
> Hi
> I am trying to download the PDF files from my webserver using ASP.Net.
> All my files are stored at F Drive on webserver. Like this F:\Main
> Folder\Sub Folder\user folder\files\File1.pdf
> I am impersonating the domain user account and downloading the file, It
> seems the impersonate is got success.
> If I gave full control to that user folder, its allowing me to download
> the
> file.
> BUT, If I gave read&execute permisson to that folder, its asking me the
> windows username and password window for dowload the file.
> My client doesn't need that windows checking. we already given the read &
> execute permission to that folder, then why its asking the windows user
> name
> and password window?
> any idea please.
> thanks
> bala
seems like good idea, But there is no other way to solve this problem?
Thanks
bala
"Ken Cox [Microsoft MVP]" wrote:
> Is it possible that a temporary file is being created somewhere and that is
> demanding greater permissions?
> Ken
> "Bala" <Bala@.discussions.microsoft.com> wrote in message
> news:04A524B8-2287-4659-BDD7-1AFB3A9C48A9@.microsoft.com...
> > Hi
> > I am trying to download the PDF files from my webserver using ASP.Net.
> > All my files are stored at F Drive on webserver. Like this F:\Main
> > Folder\Sub Folder\user folder\files\File1.pdf
> > I am impersonating the domain user account and downloading the file, It
> > seems the impersonate is got success.
> > If I gave full control to that user folder, its allowing me to download
> > the
> > file.
> > BUT, If I gave read&execute permisson to that folder, its asking me the
> > windows username and password window for dowload the file.
> > My client doesn't need that windows checking. we already given the read &
> > execute permission to that folder, then why its asking the windows user
> > name
> > and password window?
> > any idea please.
> > thanks
> > bala
>
Permission to access PDF files from ASP.NET
My web app requires to access a PDF document. However it will not open when
I start to access it using Process.Start("fileName"). Although at the task
manager, it says that the Acrobat service has been started by ASPNET. Is
there something I did wrong or have not done? Pls help.
Thanksryu wrote:
> Hi All,
> My web app requires to access a PDF document. However it will not open when
> I start to access it using Process.Start("fileName"). Although at the task
> manager, it says that the Acrobat service has been started by ASPNET. Is
> there something I did wrong or have not done? Pls help.
> Thanks
You want to open a PDF on the *server*??
Process.Start will open only local (that is: local *to the server*)
processes and will open them on the *invisible* desktop of the ASPNET user.
If you want to open that PDF file on the *client*, you need to send
that file to the client:
Response.AppendHeader("Content-Disposition", "attachment;
filename=myfile.pdf");
Response.ContentType = "application/pdf";
Response.WriteFile("myLocalFile.pdf");
Response.End();
--
Hans Kesting
Permission to access PDF files from ASP.NET
My web app requires to access a PDF document. However it will not open when
I start to access it using Process.Start("fileName"). Although at the task
manager, it says that the Acrobat service has been started by ASPNET. Is
there something I did wrong or have not done? Pls help.
Thanksryu wrote:
> Hi All,
> My web app requires to access a PDF document. However it will not open whe
n
> I start to access it using Process.Start("fileName"). Although at the task
> manager, it says that the Acrobat service has been started by ASPNET. Is
> there something I did wrong or have not done? Pls help.
> Thanks
>
You want to open a PDF on the *server*'
Process.Start will open only local (that is: local *to the server*)
processes and will open them on the *invisible* desktop of the ASPNET user.
If you want to open that PDF file on the *client*, you need to send
that file to the client:
Response.AppendHeader("Content-Disposition", "attachment;
filename=myfile.pdf");
Response.ContentType = "application/pdf";
Response.WriteFile("myLocalFile.pdf");
Response.End();
Hans Kesting