Hello everyoneI am facing one issue, can you please anyone help me.
I have hosted my application on the hosting server, the application is working fine but can not read an image by URL path, but I do delete or rename web.config file, then I can getting Image by URL path but the application does not work because web.config is not found in code.
so I request you, how to solve my problem, please tell me. without delete web.config file, how can get an Image by URL path.
My web.config file code :
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <location path="." inheritInChildApplications="false">
- <system.webServer>
- <handlers>
- <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
- </handlers>
- <aspNetCore processPath="dotnet" arguments=".\OldAutomotive.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
- </system.webServer>
- </location>
- </configuration>
- <!--ProjectGuid: 915204f8-38ac-49d1-bb01-644141882ba5-->
Error Image :

Thanks
Bhavesh Ghul