siva nathan

siva nathan

  • 944
  • 828
  • 231.3k

IIS server post method not working for xml files asp.net core

Feb 3 2021 5:58 PM
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
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <configuration>  
  3. <location path="." inheritInChildApplications="false">  
  4. <system.webServer>  
  5. <handlers>  
  6. <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />  
  7. <add name="XML" path="*.xml" verb="GET,POST" modules="IsapiModule" scriptProcessor="C:\Windows\System32\inetsrv\asp.dll" resourceType="File" requireAccess="None" />  
  8. </handlers>  
  9. <modules>  
  10. <remove name="WebDAVModule" />  
  11. </modules>  
  12. <aspNetCore processPath="dotnet" arguments=".\abcService.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />  
  13. <security>  
  14. <requestFiltering>  
  15. <fileExtensions>  
  16. <add fileExtension=".xml" allowed="true" />  
  17. </fileExtensions>  
  18. <verbs>  
  19. <add verb="PUT" allowed="true" />  
  20. <add verb="POST" allowed="true" />  
  21. </verbs>  
  22. </requestFiltering>  
  23. </security>  
  24. </system.webServer>  
  25. </location>  
  26. </configuration>  
  27. <!--ProjectGuid: 77262E66-E7C0-487F-995C-19AAD3FF1B50-->  

Answers (1)