I have a problem implementing a web page in the IIS.
I load a file from the website, the problem is when I try to load it from internet explorer, because if I charge it with chrome it does not happen to me ... The difference that you notice, is that when I load it from chrome, the preview of the route is C: \ fakepath \ cfdiXml.xml even though the file is not in C. When I try to load it from internet explorer, it puts the real path of the file W: \ User \ Folder \ folder2 \ folder \ etc \ anotherfolder \ cfdiXml.xml
And it marks me an error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'W:\User\Folder\folder2\folder\etc\anotherfolder\cfdiXml.xml'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Any suggestions on how to solve this error.
Input code where I upload the file ...
@using (Html.BeginForm("LeerXML", "CFDI", FormMethod.Post, new { @role = "form", id = "myForm", enctype = "multipart/form-data" }))
{
<div class="form-group">
<label class="col-md-2 control-label">Cargar archivo</label>
<div class="col-md-10">
<input type="file" class="btn btn-default" id="up_file" name="xml" accept=".xml" onchange="comprueba_extension();" required>
<span id="Adjunto" name="Adjunto" class="fileinput-new">No se ha elegido archivo (Maximo 3.5MB)</span>
<p class="help-block">
Solo se admite el formato XML.
</p>
</div>
<button class="btn btn-info" type="reset"><i class="glyphicon glyphicon-floppy-remove"></i> Cancelar </button>
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-cloud-upload"></i> Cargar </button>
</div>
}
I leave an image of the view from chrome and internet explorer