1
I am trying to open a file in page_load through a function Comeback() which returns the file URL.
reEditorContrato.Open(MapPath(RetornaCaminho(CodigoArquivo)))
Obs: reEditorContract is an Aspxrichedit control from Devexpress
The function returns me the string "http://localhost:51696/example/contracts/.docx contract", but the moment it will open by Mappath it returns me an error.
'http:/localhost:51696/example/contracts/.docx contract is not a Valid virtual path.
I realized that in this part http:/ it removes a bar and I believe that is why the path of always invalid.
Some solution?
The error must be in using
MapPath
, remove it. Leave so:reEditorContrato.Open(RetornaCaminho(CodigoArquivo))
.– stderr
I have tried this way, the open method does not support this type of "http format...".
– WellDotCom