Hi friends,
I want to know that can I placed different programming language such as (C#, VB) .cs file inside App_Code folder? Is anyone have idea about all this please explain? How it is possible to do that?
.cs file of different proogramming languages
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


SenthilkumarRank #387 · 6.5K reputationPosted Mar 28, 2012, 8:54 PM EDT
It will throw the compile time error.
It will create the two different kind of language file, but you cannot compile it.
Error1The files '/PerformanceTuning/App_Code/Class3.vb' and '/PerformanceTuning/App_Code/Class1.cs' use a different language, which is not allowed since they need to be compiled together.
You have the workaround to fix this.
you need to create the two different folders in the app_code folder. One for c-sharp and another one for VB.
You need to create the directories in the web.config.
You can get more info in:
http://virendradugar.wordpress.com/2009/06/15/using-c-and-vb-net-classes-together-in-the-app_code-folder/