マシンの IP アドレスを使用して C:\inetpub\wwwroot\ にフォルダーを作成するにはどうすればよいですか? ff コードは私には機能しないようです。エラーが発生します:指定されたパスの形式はサポートされていません。
` string appPath = Request.PhysicalApplicationPath;
string IPAddress = HttpContext.Current.Request.UserHostAddress;
Directory.CreateDirectory(appPath + "//GM_KanbanTracking/" + IPAddress); error here The given path's format is not supported.
StreamWriter w;
w = File.CreateText(appPath + "//GM_KanbanTracking/" + IPAddress + "/test.txt");
w.WriteLine(fileContents.ToString());
w.Flush();
w.Close();
`