I'm trying to open a file on page_load through a ReturnCam () function that returns the URL of the file.
reEditorContrato.Open(MapPath(RetornaCaminho(CodigoArquivo)))
obs: reEditorContract is an ASPxRichEdit control from DevExpress
The function returns me the string " link ", but the moment it opens through MapPath it returns an error.
'http: / localhost: 51696 / example / contracts / Contract.docx' is not a valid virtual path.
I noticed that in that part http: / he pulls out a slash and I believe it is for that reason that the path is always invalid.
Any solution?