63
Views
11
Comments
Solved
I don't know why I get the error "Could not find file 'c:\windows\ ~ config.json
Application Type
Traditional Web
Service Studio Version
11.54.69 (Build 63461)
Platform Version
11.29.0 (Build 43552)

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.

2019-01-07 16-04-16
Siya
 
MVP
Solution

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

UserImage.jpg
SSSSS

Thank you!


I'll try that!


I'd like to close this issue here.


Thank you everyone!

2024-03-22 09-17-23
Chandra Vikas Sharma

Hi SSSS,

Can you please share your Extension  code file (.xif file)  to identify the issue.


Thanks

CV


UserImage.jpg
SSSSS

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.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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?

UserImage.jpg
SSSSS

Sorry for the late reply.


It's because of the long holiday "Obon".


Thanks for your answer.


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.


Thank you in advance.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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?

UserImage.jpg
SSSSS

Thank you for unzipping. 

I only specified the file name. 

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Mmm, I would've expected that to work. Unfortunately, I can't really advise you what to do, as typically that should work.

UserImage.jpg
SSSSS

Thank you. I'll see if there's another way to do this.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
2019-01-07 16-04-16
Siya
 
MVP
Solution

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

UserImage.jpg
SSSSS

Thank you!


I'll try that!


I'd like to close this issue here.


Thank you everyone!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.