Click here to Skip to main content
15,891,943 members
Home / Discussions / ASP.NET
   

ASP.NET

 
RantRe: Frustrating! Datagrid - Get the information! Pin
Richard Leighton16-Mar-09 7:49
Richard Leighton16-Mar-09 7:49 
GeneralRe: Frustrating! Datagrid - Get the information! Pin
led mike16-Mar-09 7:55
led mike16-Mar-09 7:55 
Question"ASP" Sending Email Doesn't deliver.. Pin
D.Manivelan16-Mar-09 5:05
D.Manivelan16-Mar-09 5:05 
AnswerDon't cross post Pin
led mike16-Mar-09 5:34
led mike16-Mar-09 5:34 
JokeRe: Don't cross post Pin
Yusuf16-Mar-09 9:03
Yusuf16-Mar-09 9:03 
Questionproblem with SMTP email --System.Net.Sockets.SocketException Pin
developer_zone116-Mar-09 4:35
developer_zone116-Mar-09 4:35 
AnswerRe: problem with SMTP email --System.Net.Sockets.SocketException Pin
Yusuf16-Mar-09 4:59
Yusuf16-Mar-09 4:59 
QuestionProblem in renaming CSV file after hosting ASP.NET application Pin
Rashmi_Karnam16-Mar-09 4:15
Rashmi_Karnam16-Mar-09 4:15 
Hi,
I have a Fileupload control, from where i am uploading CSV file and reading data from it and displaying in a gridview. If data is incorrect i am editting in GrdiView and click on Finish button. On click of finish button i am writing updated value back to CSV file from Gridview. This functionality i have implemented, but after hosting this application in IIS, when i access it in same system its rewriting to CSV file and renaming the file also. But if i browse hosted application in some other system and if i upload a file which is on browser system, its not renaming a file and not updating it.

So please can any one help me what are the permissions i need to set in IIS or to file i am access, so that i can rename and update that file.

I have checked following possiblities already
1. create ASPNET account and grant full permission for read, write....
2. In IIS gave Anonymous access to user.
3. Checked with Impersonate option in web.config file.
4. Gave permissions to CSV file like read, write ....

Code
-----
writing to CSV File
-------------------

StreamWriter sw = new StreamWriter(localsavedFilePath)
foreach (DataRow row in dtCSV.Rows)
{
sw.Write("\"" + row[0].ToString() + "\"");
sw.Write(sw.NewLine);
}sw.Close();
File.Copy(localsavedFilePath, OriginalFileUploadedPath, true);

Renaming File
--------------
File.Move(OriginalFileUploadedPath, OriginalFileRenamedPath);

Rashmi.M.K

AnswerRe: Problem in renaming CSV file after hosting ASP.NET application Pin
ToddHileHoffer16-Mar-09 4:24
ToddHileHoffer16-Mar-09 4:24 
GeneralRe: Problem in renaming CSV file after hosting ASP.NET application Pin
Rashmi_Karnam25-Mar-09 3:00
Rashmi_Karnam25-Mar-09 3:00 
GeneralRe: Problem in renaming CSV file after hosting ASP.NET application Pin
ToddHileHoffer25-Mar-09 4:40
ToddHileHoffer25-Mar-09 4:40 
GeneralRe: Problem in renaming CSV file after hosting ASP.NET application Pin
Rashmi_Karnam25-Mar-09 20:02
Rashmi_Karnam25-Mar-09 20:02 
QuestionRegarding Securint Web Services Pin
vinodkrebc16-Mar-09 2:40
vinodkrebc16-Mar-09 2:40 
AnswerRe: Regarding Securint Web Services Pin
SeMartens16-Mar-09 3:01
SeMartens16-Mar-09 3:01 
GeneralRe: Regarding Securint Web Services Pin
vinodkrebc16-Mar-09 17:54
vinodkrebc16-Mar-09 17:54 
GeneralRe: Regarding Securint Web Services Pin
SeMartens16-Mar-09 23:05
SeMartens16-Mar-09 23:05 
QuestionCapturing data programatically from pdf file in asp.net (XML format) Pin
_Sun16-Mar-09 2:31
_Sun16-Mar-09 2:31 
QuestionAjax enabled page stops responding after kept idle for some time. Pin
Member 56545116-Mar-09 2:12
Member 56545116-Mar-09 2:12 
AnswerRe: Ajax enabled page stops responding after kept idle for some time. Pin
led mike16-Mar-09 5:36
led mike16-Mar-09 5:36 
GeneralRe: Ajax enabled page stops responding after kept idle for some time. Pin
Member 56545116-Mar-09 18:49
Member 56545116-Mar-09 18:49 
QuestionWeb service? Pin
Karthick_gc16-Mar-09 1:54
Karthick_gc16-Mar-09 1:54 
AnswerRe: Web service? Pin
Blue_Boy16-Mar-09 2:03
Blue_Boy16-Mar-09 2:03 
AnswerRe: Web service? Pin
SeMartens16-Mar-09 2:11
SeMartens16-Mar-09 2:11 
AnswerRe: Web service? Pin
Abhijit Jana16-Mar-09 2:19
professionalAbhijit Jana16-Mar-09 2:19 
Questionrebind parent grid from chield Pin
bikash pattanayak16-Mar-09 1:33
bikash pattanayak16-Mar-09 1:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.