I have been dealing with an issue regarding my ELB deployment to our new test environment with a load balancer.
I previously ran the code through testing, and through RDP connection to the instance, I was able to save a PDF file I created with itextsharp under a folder I created with my code.
However, once I created the multi-instance environment and wanted to go forward with an ELB deployment, I ran into an access issue.
PdfWriter writer = PdfWriter.GetInstance(pdfDoc, new FileStream(fileName, fileMode.OpenOrCreate));
Here, I use Server.MapPath to generate the fileName variable and try to get the FileStream on the same path. The sample path I arrive at is the one mentioned in the title: ‘C:\inetpub\wwwroot\folder\file.pdf’
To make sure of things, I created a “folder” folder under my project, put a txt file under (Text.txt), published through ELB with this version, and I was able to access this file in my website’s domain with the /folder/Text.txt
I have checked out security groups and role management sections in the AWS Console, but I couldn’t find anything that resembled an I/O permission. Is there a possible workaround this issue? I searched around the Internet, but the only things I saw involved working through IIS, which isn’t useful for me, since I won’t be connecting to the instances via RDP in this case.
Thanks for any help offered.