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?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Mar 29, 2012, 12:54 AM
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/