At Chloe. Admin. The Program. The Main (String [] args) in G: \ XXXXXX \ Program cs: line 71
This is the local address is very depressed, want to half a day. PDB, not an error this address but still the same error,
Another of the same project, has reported the error, but also has. PDB but not the address information in local debugging, then find the reason is the problem that the backslash
Local use \ or/can be but must be used on the server/would correct! The problem was solved, but another project is not so good solve, all local search changed or prompt error! Online information may have Chinese path or folder, these all out! Still in problem, the notepad to open several files on the server directly to see what also didn't see the code just don't understand what reason!
Problem a:
Two projects
A: prompt Unhandled Exception: System. ArgumentException: Illegal characters in path.,,,,,,, the Program. The Main (String [] args)
B: prompt Unhandled Exception: System. ArgumentException: Illegal characters in path.,,,,,,, the Program. The Main (String [] args) then catch up with my local debugging path (has been uploaded to the server)
Solve the problem of A program path backslash (\ and/to distinguish)
Now project B prompt error, cannot solve the
Ever met!
Server is CentOS 7 specific information is as follows:
The.net Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit hash: SHA - 1 cdcd1928c9
The Runtime Environment:
The OS Name: centos
OS Version: 7
Linux OS Platform:
RID: centos. 7 - x64
The Base Path:/usr/share/dotnet/SDK/2.0.0/
Microsoft.net Core Shared Framework Host
Version: 2.0.0
CodePudding user response:
Unhandled Exception: System. ArgumentException: Illegal characters in path.Why server shows the local address, Release of Release
Another project has also seen
Figure 2 this is really something wrong is the same problem as the backslash! Figure 1 change well, always don't know what problem! But found the PDB file deleted hint is exactly the same, but the same processing method is not solve the problem
CodePudding user response:
The problems lie in the path of your FileSystemWatcher is illegal paths,CodePudding user response:
Path don't direct connection string, cross-platform, use Path.Com bine method to connect, can avoid the path of the different platforms method differences,CodePudding user response:
Use the docker deployment:https://www.hrefs.cn/article/docker-compose-deploy-aspnet-core-project
Other ways to deploy more uncomfortable,,,
CodePudding user response:
https://www.hrefs.cn/article/docker-compose-deploy-aspnet-core-projectThis article to deploy the.net core, can try