I am trying to enable gzip on IIS on AWS Elastic Beanstalk and I found this link. But I get the following error when I follow the steps mentioned in the link.
This is from the log file:
Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'c:\staging\archive.xml'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.FinishInitUriString()
at System.Xml.XmlTextReaderImpl..ctor(String uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver)
at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
at AWSBeanstalkCfnDeploy.DeploymentUtils.getAppPath() in d:\Jenkins\jobs\build-EBDPT-IISCore-V1\workspace\AWSBeanstalkCfnDeploy\DeploymentUtils.cs:line 304
at AWSBeanstalkCfnDeploy.DeploymentUtils.ContainerConfigDefaults(String appBundle, String appBundleFinal, String containerConfig) in d:\Jenkins\jobs\build-EBDPT-IISCore-V1\workspace\AWSBeanstalkCfnDeploy\DeploymentUtils.cs:line 297
at AWSBeanstalkCfnContainerDefaultsApp.Program.Main(String[] args) in d:\Jenkins\jobs\build-EBDPT-IISCore-V1\workspace\AWSBeanstalkCfnContainerDefaultsApp\Program.cs:line 19
If you got any idea why this is happening, please let me know.