473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Permission Issues?



To make it simple, I'm doing this

Dim Location As String = AppDomain.CurrentDomain.BaseDirectory &
"reports\baseReport1.xls"
System.IO.File.Copy(AppDomain.CurrentDomain.BaseDi rectory &
"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?
Jan 31 '08 #1
3 1257
Hello Claus,
are u calling this from asp.net?
U shoud use Server.MapPath for this then http://msdn2.microsoft.com/en-us/lib...y.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
CFTo make it simple, I'm doing this
CF>
CFDim Location As String = AppDomain.CurrentDomain.BaseDirectory &
CF"reports\baseReport1.xls"
CFSystem.IO.File.Copy(AppDomain.CurrentDomain.Base Directory &
CF"reports\baseReport.xls", Location)
CFResponse.Redirect("~/reports/baseReport1.xls")
CF>
CFWorks fine in my computer, no problem, But in the server don't copy
CFthe file so the Response.Redirect show me a Page Not Found message.
CF>
CFI gave all permissions to All User but still don't copy how can I
CFsolve this, help please?
CF>
Jan 31 '08 #2
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]
<ne*****@msn.comescribió:
Hello Claus,
are u calling this from asp.net?
U shoud use Server.MapPath for this then
http://msdn2.microsoft.com/en-us/lib...y.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
CFTo make it simple, I'm doing this
CFCFDim Location As String = AppDomain.CurrentDomain.BaseDirectory &
CF"reports\baseReport1.xls"
CFSystem.IO.File.Copy(AppDomain.CurrentDomain.Base Directory &
CF"reports\baseReport.xls", Location)
CFResponse.Redirect("~/reports/baseReport1.xls")
CFCFWorks fine in my computer, no problem, But in the server don't
copy
CFthe file so the Response.Redirect show me a Page Not Found message.
CFCFI gave all permissions to All User but still don't copy how can I
CFsolve this, help please?
CF>
Feb 1 '08 #3
Im using now Server.MapPath and still having the same issue
nothing copies what could it be

En Thu, 31 Jan 2008 06:23:49 -0500, Michael Nemtsev [MVP]
<ne*****@msn.comescribió:
Server.MapPath
Feb 10 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jody Gelowitz | last post by:
Exactly what is the size limit of Isolated Storage in the Internet permission set? I have a document indicating it is 10MB (http://msdn.microsoft.com/msdnmag/issues/02/07/NetSmartClients/) ...
1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
1
by: festivalman | last post by:
Hi, sorry if this is in the wrong spot. Finding the newsgroups on MS's site could have been easier Here's my problem I've got some old asp's that are running our simple web site. In a section,...
9
by: TPS | last post by:
I have a virtual directory where all posted files are stored. The ASP app does not have rights to the share on the other server where the vir dir resides. What is the best way to give the asp...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
4
by: Richard MSL | last post by:
I have a simple application in C++ that uses a dll I wrote in C#. It works fine when I run it on C: on my local PC, but when I attempt to run it on the i: drive on my LAN, it gets a loading...
4
by: Mukesh | last post by:
Hi all I am trying to upload and save as a picture to "root/Photos" folder in my web application. I am using this code to perform this task DirectoryInfo strFolder = new...
3
by: jsamdirect | last post by:
I am having an issue with a Microsoft Access 2003 database that has forms designed to import data. When trying to do the import I get a message microsoft office access permission denied. This is...
9
by: Tony Proctor | last post by:
I need to create a process Singleton object for an ASP application, but I'm having some odd issues In my GLOBAL.ASA, I have an <OBJECTelement specifying the relevant ProgID with RUNAT=Server and...
1
by: Michael Tissington | last post by:
How can I enable execute permissions for a folder on my website using the web.config file ?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.