Both were produced in different dynasties:
1. Yongle Palace was built in Yuan Dynasty.
Yongle Palace was built between 1247 and 1358. It is the largest and most well-preserved Taoist temple in China. Together with Baiyun Temple in Beijing and Chongyang Palace in Huxian County, Shaanxi Province, it is called the three ancestral halls of Quanzhen Taoism.
Yongle Dadian was compiled in Ming Dynasty.
Yongle Dadian is a book compiled by He Yao at the behest of Ming Taizu during Yongle period (A.D. 1403). It was originally named "literary masterpiece", and later Ming Chengzu personally wrote the preface and named it "Yongle Grand Ceremony". The book has 22,877 volumes (60 volumes in the catalogue, 22,937 volumes in * * *), 1 1095 volumes, with about 370 million words, bringing together seven or eight thousand kinds of ancient and modern books.