Problem in editing web.config file - Advanced Installer Community
beersha
Posts: 3
Joined: Wed Aug 13, 2014 7:22 am

Problem in editing web.config file

In web.config file i added one element then i checked create element if it doesnt exist. but it is not founf in my web.config file after installation.
Any one pls help me
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem in editing web.config file

Hi and welcome to Advanced Installer forums.

I'm not sure why you encounter that behavior. Can you please send us a sample AIP that reproduces the problem, so I can see its configurations and test it on my machine? Does the XML file already exist on the machine and you want to update it or you want to create it from scratch?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
beersha
Posts: 3
Joined: Wed Aug 13, 2014 7:22 am

Re: Problem in editing web.config file

I have attached the .aip file .Please help me
Attachments
TTest.aip
aip file
(15.16 KiB) Downloaded 306 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem in editing web.config file

Hi,

I tested your AIP file, but the XML file was created correctly on my machine during the install. Do you try to make an update to an already existent XML file on your machine?

Please keep in mind that it is recommended to set an "identifier attribute" for each element when you have more elements with the same name in an XML file (just check the "Is identifier attribute" option for the attribute you want to be the key of the element). Can you try this and see if it works?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
beersha
Posts: 3
Joined: Wed Aug 13, 2014 7:22 am

Re: Problem in editing web.config file

ya i try to update an xml file .I checked the identifier attribute now it is working good for me.

If i try to change the key name after the identifier attribute checked it creates another element for that key.

Am i doing the correct thing?? or do i have to do it different manner??


Pls help me....
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem in editing web.config file

Hi,

Indeed, this happens because the identifier attribute should be unique and unmodified between versions. So you can design your XML file content so that you will have a key attribute like that for the elements that have the same names and paths.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”