Thank you for looking at this question.
I'm asking this question because I don't know why the error "Could not find file 'c:\windows\system32\inetsrv\config.json'" occurs.
I'll explain why I asked this question.
I'm currently creating an extension that uses Integration Studio to read the config.json file and perform some processing.
At some point during the process, the error "Could not find file 'c:\windows\system32\inetsrv\config.json'" started to occur.
So I thought, "Maybe the description for reading the json file was wrong."
I then rewrote the C# code into a very simple code that simply returns the return value statically.
But still, the same error occurred.
The code is barely processing anything. Still, the same error occurs.
I didn't understand why.
I suspected the settings in Integration Studio, Service Studio, and the project settings in Visual Studio, but nothing solved the problem.
I have no idea where the cause is with my own power.
I would be very grateful if someone could help me.
thank you.
Since you mentioned BOX API, I think you are referring the JWT Token configuration (config.json) in your extension. If this is the case why not pass the configuration as a parameter from the consuming application instead of directly referring from a physical file ? (JwtConfig.FromConfigJsonString(json); )
Reference : https://medium.com/box-developer-blog/getting-started-with-the-new-box-net-sdk-c3c39a9d3337
Thank you!
I'll try that!
I'd like to close this issue here.
Thank you everyone!
Hi SSSS,
Can you please share your Extension code file (.xif file) to identify the issue.
Thanks
CV
Sorry for the late reply.
Thanks for your answer.
I'm sorry.
My company's rules don't allow me to share xif files.
Please let me know if you need any additional information.
I'll add it later.
Thank you in advance.
Hi SSSSS,
Since you are referring to C:\, you are looking for a file that's on the application server. If you are in the cloud, that means an Amazon server. I'm pretty sure you cannot access anything inside the inetsrv folder on the cloud server. Also, what type of file is "config.json"? Why do you assume it exists in that folder?
It's because of the long holiday "Obon".
I see, so it's looking for a file on the application server.
And that server is pointing to the Amazon server.
The config.json file I'm using is a json file that contains information for linking with the BOX API.
It's unexpected that it points to the folder "c:\windows\system32\inetsrv\".
I actually want to refer to a json file in the same hierarchy as the Extension project.
But I don't understand why "c:\windows\system32\inetsrv\" is specified.
I think the inetsrv folder is the default folder for IIS. How did you specify the path for the config.json? Did you specify a full path, or just the file name?
Thank you for unzipping.
I only specified the file name.
Mmm, I would've expected that to work. Unfortunately, I can't really advise you what to do, as typically that should work.
Thank you. I'll see if there's another way to do this.
I hope you can find the problem!