Hi all,
am uploading XML file in IIS server i cant upload the XML file in my server using ASP.NET Core
am adding below config in web.config file but Upload not happen suggest me on this
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <location path="." inheritInChildApplications="false">
- <system.webServer>
- <handlers>
- <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
- <add name="XML" path="*.xml" verb="GET,POST" modules="IsapiModule" scriptProcessor="C:\Windows\System32\inetsrv\asp.dll" resourceType="File" requireAccess="None" />
- </handlers>
- <modules>
- <remove name="WebDAVModule" />
- </modules>
- <aspNetCore processPath="dotnet" arguments=".\abcService.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
- <security>
- <requestFiltering>
- <fileExtensions>
- <add fileExtension=".xml" allowed="true" />
- </fileExtensions>
- <verbs>
- <add verb="PUT" allowed="true" />
- <add verb="POST" allowed="true" />
- </verbs>
- </requestFiltering>
- </security>
- </system.webServer>
- </location>
- </configuration>
- <!--ProjectGuid: 77262E66-E7C0-487F-995C-19AAD3FF1B50-->