Click to See Complete Forum and Search --> : Server Error


Nishank
07-13-2011, 03:01 AM
I am getting this error when i am clicking on a button which displays & add lesson plan. Actually i am developing a website for college in which there is a button named Lesson Plan, when i click there, it should display/add lesson plan.

I get Server Error :

System.IO.IOException : This process cannot access <filepath mentioned> because it is being used by another process

for this mentioned code-

StreamWriter writer = new StreamWriter(base.Server.MapPath("../FusionCharts/Data.xml"));

Somebody please help me solve this error urgently.
Thanx.

ryanbutler
07-15-2011, 03:48 PM
Kill the process and then try it. Or it could be a permission issue as well.