In a glass bowl blend refried beans and chilles, cover and microwave for 1 minute.
Stir together ricotta, egg, mexican seasonings and salt. set aside.
Spread 1/2 cup of the enchilada sauce evenly in a 13 x 9 baking pan. Overlap 6 corn tortillas to create a layer. Spread half each of teh black bean mixture and ricotta mixture evenly over tortillas. Top with half the mexicorn, half the chicken and 1 cup of cheese.Top with 1/2 cup enchilada sauce.
Add 6 more tortillas; top with 1/4 cup enchilada sauce. repeat layering teh black bean mixture, ricotta mixture, mexicorn, chicken and 1 cup of cheese. top with 1/2 c of the enchilada sauce and laast 6 tortillas. Spread with remaining enchilada sauce; sprinlkle with remaining 1 cup of cheese.
Cover with foil; bake at 400 degrees for 40-45 minutes or until bubbly. Let rest 5 minutes before serving.