正常应该是: string sPath = Application. + @ "\Data.ini ";
但是ppc不好用。
------解决方案--------------------
string filepath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
------解决方案--------------------
string filepath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);