Note that there are some explanatory texts on larger screens.

plurals
  1. POfile renaming problem?
    text
    copied!<p>Renaming a file in c#: </p> <pre><code>File.Move(source,Destination); File.Delete(source); </code></pre> <p>It execute successfully, how ever when i try to rename the file again, the system gives this exception: <strong>The process cannot access the file because it is being used by another process.</strong> i cant find that where is this in use? when i further debug the error it shows me the class name is in the process of w3wp.exe which is IIS. What should i do next? getting </p> <pre><code>foreach (string folder in folder) { FileSystemItem item = new FileSystemItem(); DirectoryInfo di = new DirectoryInfo(folder); item.Name = di.Name; item.FullName = di.FullName; item.Path = path + "\\" + item.Name; item.CreatedDate = di.CreationTime; item.IsFolder = true; item.Extension = "folder"; listFolder.Add(item); } docList = CreatXmllist(listFolder); return docList </code></pre> <p>this is how i am getting folder list and it is then returned to xml. then in folder i get the files when i click it</p> <p>now to get the images: this is the code</p> <pre><code>public xml (string path, List&lt;l&gt; one) { List&lt;T&gt; tt = new List&lt;T&gt;(); List&lt;T&gt; SessionList = new List&lt;T&gt;(); string[] files = Directory.GetFiles(HttpContext.Current.Request.PhysicalApplicationPath + path); foreach (string file in files) { FileSystemItem item = new FileSystemItem(); FileInfo i = new FileInfo(file); string a = i.LastWriteTime.ToString(); var thumbnails = from a in b where a.Name == fi.Name select t; if (fi.Name != "a") if (t.Count() == 0) { r session r = new r(); r.aName = fi.aName; SessionList.Add(r); fi.Exists; } else t.Add((T)t.First()); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload