c# - Please resolve this error for me -
protected void page_load(object sender, eventargs e) { dataset ds = new dataset(); ds.readxml(server.mappath(@"c:\users\raymond\documents\visual studio 2010\websites\website17\xmlfile.xml")); repeater1.datasource= ds; repeater1.databind(); } i getting error message: c:/users/raymond/documents/visual studio 2010/websites/website17/xmlfile.xml' is physical path, virtual path expected. as exception tells you: passing physical path c:\\ but server.mappath expects virtual path ~/