Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
QuestionInvalid attempt to call MetaData when reader is closed. Pin
Vimalsoft(Pty) Ltd5-May-09 23:10
professionalVimalsoft(Pty) Ltd5-May-09 23:10 
AnswerRe: Invalid attempt to call MetaData when reader is closed. Pin
Mycroft Holmes5-May-09 23:24
professionalMycroft Holmes5-May-09 23:24 
GeneralRe: Invalid attempt to call MetaData when reader is closed. Pin
Vimalsoft(Pty) Ltd5-May-09 23:37
professionalVimalsoft(Pty) Ltd5-May-09 23:37 
GeneralRe: Invalid attempt to call MetaData when reader is closed. Pin
Mycroft Holmes6-May-09 14:16
professionalMycroft Holmes6-May-09 14:16 
GeneralRe: Invalid attempt to call MetaData when reader is closed. Pin
Vimalsoft(Pty) Ltd7-May-09 3:08
professionalVimalsoft(Pty) Ltd7-May-09 3:08 
QuestionThe process cannot access the file '' because it is being used by another process Pin
Member 39664155-May-09 22:59
Member 39664155-May-09 22:59 
AnswerRe: The process cannot access the file '' because it is being used by another process Pin
Mycroft Holmes5-May-09 23:19
professionalMycroft Holmes5-May-09 23:19 
GeneralRe: The process cannot access the file '' because it is being used by another process Pin
ToolMaker20078-May-09 0:58
ToolMaker20078-May-09 0:58 
Hi,

I get the same error. I'm using a FileInfo object with a file name passed to the constructor upon creating the FileInfo object. I check if the file exist and if so I delete it and recreat it. Al works fine first time but when I click on the button again to do the same functionality over again I get same error mentioned. The is NO close method on the FileInfo object nor Dispose. I tried the Refresh() in desprate attemps but still error. Please see a snipplet below:

private void button2_Click(object sender, EventArgs e)
{
FileInfo fileInfo = new FileInfo(label2.Text + ".TMP");
if (fileInfo.Exists)
{
fileInfo.Delete();
}
fileInfo.Create();
int y = 0;
}
GeneralRe: The process cannot access the file '' because it is being used by another process Pin
ToolMaker20078-May-09 1:06
ToolMaker20078-May-09 1:06 
AnswerRe: The process cannot access the file '' because it is being used by another process Pin
Member 33520014-Aug-10 21:45
Member 33520014-Aug-10 21:45 
Questionwith out exponent value need in float Pin
Member 38798815-May-09 22:58
Member 38798815-May-09 22:58 
AnswerRe: with out exponent value need in float Pin
OriginalGriff5-May-09 23:19
mveOriginalGriff5-May-09 23:19 
QuestionSqlBulkCopy that can do UPDATE Pin
lakhwinder.ghuman5-May-09 22:00
lakhwinder.ghuman5-May-09 22:00 
AnswerRe: SqlBulkCopy that can do UPDATE Pin
Mycroft Holmes5-May-09 22:27
professionalMycroft Holmes5-May-09 22:27 
AnswerRe: SqlBulkCopy that can do UPDATE Pin
Member 33520014-Aug-10 21:47
Member 33520014-Aug-10 21:47 
QuestionHmm... External Methods? Pin
jas0n235-May-09 21:47
jas0n235-May-09 21:47 
AnswerRe: Hmm... External Methods? Pin
Pete O'Hanlon5-May-09 22:18
mvePete O'Hanlon5-May-09 22:18 
GeneralRe: Hmm... External Methods? Pin
jas0n236-May-09 0:45
jas0n236-May-09 0:45 
QuestionHow i use the connection string for making a connection object.. Pin
ddravin20005-May-09 21:33
ddravin20005-May-09 21:33 
AnswerRe: How i use the connection string for making a connection object.. Pin
Member 44703545-May-09 21:42
Member 44703545-May-09 21:42 
GeneralRe: How i use the connection string for making a connection object.. Pin
ddravin20005-May-09 21:54
ddravin20005-May-09 21:54 
AnswerRe: How i use the connection string for making a connection object.. Pin
Member 44703545-May-09 22:01
Member 44703545-May-09 22:01 
QuestionProblem with Datagrid Pin
yueru5-May-09 21:30
yueru5-May-09 21:30 
AnswerRe: Problem with Datagrid Pin
Mycroft Holmes5-May-09 21:34
professionalMycroft Holmes5-May-09 21:34 
GeneralRe: Problem with Datagrid Pin
yueru5-May-09 22:02
yueru5-May-09 22:02 

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.