This message is for ASP.NET connector users:
I was getting the XML request error: Internal Server Error (500) error because the .NET connector assumes that my application is rooted under the standard inetpub\wwwroot folder. When I develop web apps I do not typically save them under that default path. In the connector code file FileBrowserConnector.cs is a property called
UserFilesDirectory. In this property comment out the line:
//sUserFilesDirectory = Server.MapPath( this.UserFilesPath ) ;
and replace with:
sUserFilesDirectory = Request.PhysicalApplicationPath.TrimEnd('\\') + this.UserFilesPath.Replace("/", "\\");
Server.MapPath always returns the root of inetpub\wwwroot even if your app is setup to run somewhere else.
This worked perfectly for me. Hope it works for you.
I was getting the XML request error: Internal Server Error (500) error because the .NET connector assumes that my application is rooted under the standard inetpub\wwwroot folder. When I develop web apps I do not typically save them under that default path. In the connector code file FileBrowserConnector.cs is a property called
UserFilesDirectory. In this property comment out the line:
//sUserFilesDirectory = Server.MapPath( this.UserFilesPath ) ;
and replace with:
sUserFilesDirectory = Request.PhysicalApplicationPath.TrimEnd('\\') + this.UserFilesPath.Replace("/", "\\");
Server.MapPath always returns the root of inetpub\wwwroot even if your app is setup to run somewhere else.
This worked perfectly for me. Hope it works for you.
RE: .NET and XML request error with file browser