Have tried to change the target and save the Globals for each one separately - but it seems to remain common for all targets.
How can we set these for each target separately? Or it is not yet possible with Wappler?
but am not so sure how to config this in Server Actions in Wappler?
Had seen that doc - it sets for AppPool so i didn’t bother - but will try to set that manually in web.config and see if Wappler’s $_ENV is able to read it!
How is Wappler configured to read $_ENV for ASP.Net?
both were added in web.config under the <configuration> tag.
this actually broke IIS and the website is not even working anymore!
have you guys been able to successfully use environment variables with ASP.Net project?
what does you web.config looks like in such case - can you please share so that we can replicate and get this done at our end as well?
This just creates a variable. How do we set the value of these variables?
I tried the link you shared about Environment Variables, and was able to add them to IIS/Application Pool. But not able to access those env variable values in Wappler. Can you please explain how to do that?
The example given in the link is for C# so not applicable for a Wappler project.
As per your replies, what I was expecting is that once we set env variables in IIS/Application Pool, the $_ENV would have those values available automatically. But that does not seem to be the case.
What we are after here is being able to use ENV variables on client & server side both, just like in NodeJS.
For server, we can use $_ENV...
For client, we can use <%= $_ENV... %>
Have set the variables as per MS Docs. From the link you shared.
Able to access env variables as per the C# example code, in a VS project, but not working on Wappler.
If you guys could share an example of setting env variables in IIS ASP.NET project and using them in Wappler, it would solve our problem.