Server Error in ‘/’ Application. Illegal characters in path [closed]

Server Error in “https://stackoverflow.com/” Application.

Illegal characters in path.

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 ArgumentException: legal characters in path

Source Error:

Line 1594:

Line 1595:

string datapathi – IPAddress + “\” + HospCodeemp1 + imagePath + “\” + item. EmployeeCode + “W” + item LeaveRequestIDP + “\”;

Line 1596: Line 1597:

Directory Info salirectory new DirectoryInfo(datapath1);

Line 1598:

if (salesFTPDirectory.Exists)

Source File: DHIMSWEBGRP V4 20235telaWeb Controler HRMSWeaveRequestControler.cs: Line: 1596 solve?

Pls slove that error

  • 4

    We need an example that reproduces the problem. Edit your code down to the smallest example and post that here.

    – 

  • So, what is the value of the path that was deemed illegal? How did you construct that path, were there any unexpected (empty?) values?

    – 

Leave a Comment