Permission Issues?

Permission Issues?

am 31.01.2008 05:24:56 von Claus Fuss

To make it simple, I'm doing this

Dim Location As String =3D AppDomain.CurrentDomain.BaseDirectory & =

"reports\baseReport1.xls"
System.IO.File.Copy(AppDomain.CurrentDomain.BaseDirectory & =

"reports\baseReport.xls", Location)
Response.Redirect("~/reports/baseReport1.xls")

Works fine in my computer, no problem, But in the server don't copy the =
=

file so the Response.Redirect show me a Page Not Found message.

I gave all permissions to All User but still don't copy how can I solve =
=

this, help please?

Re: Permission Issues?

am 31.01.2008 12:23:49 von nemtsev

Hello Claus,


are u calling this from asp.net?
U shoud use Server.MapPath for this then http://msdn2.microsoft.com/en-us/library/system.web.httpserv erutility.mappath.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


CF> To make it simple, I'm doing this
CF>
CF> Dim Location As String = AppDomain.CurrentDomain.BaseDirectory &
CF> "reports\baseReport1.xls"
CF> System.IO.File.Copy(AppDomain.CurrentDomain.BaseDirectory &
CF> "reports\baseReport.xls", Location)
CF> Response.Redirect("~/reports/baseReport1.xls")
CF>
CF> Works fine in my computer, no problem, But in the server don't copy
CF> the file so the Response.Redirect show me a Page Not Found message.
CF>
CF> I gave all permissions to All User but still don't copy how can I
CF> solve this, help please?
CF>

Re: Permission Issues?

am 01.02.2008 00:56:07 von Claus Fuss

I do that and still doesn't copy the file, another Idea please?

En Thu, 31 Jan 2008 06:23:49 -0500, Michael Nemtsev [MVP]
escribió:

> Hello Claus,
>
>
> are u calling this from asp.net?
> U shoud use Server.MapPath for this then
> http://msdn2.microsoft.com/en-us/library/system.web.httpserv erutility.mappath.aspx
>
> ---
> WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
> http://spaces.live.com/laflour "The greatest danger for most of us is
> not that our aim is too high and we miss it, but that it is too low and
> we reach it" (c) Michelangelo
> CF> To make it simple, I'm doing this
> CF> CF> Dim Location As String = AppDomain.CurrentDomain.BaseDirectory &
> CF> "reports\baseReport1.xls"
> CF> System.IO.File.Copy(AppDomain.CurrentDomain.BaseDirectory &
> CF> "reports\baseReport.xls", Location)
> CF> Response.Redirect("~/reports/baseReport1.xls")
> CF> CF> Works fine in my computer, no problem, But in the server don't
> copy
> CF> the file so the Response.Redirect show me a Page Not Found message.
> CF> CF> I gave all permissions to All User but still don't copy how can I
> CF> solve this, help please?
> CF>