Last post Dec 02, 2005 04:20 AM by ultimaniac
Dec 01, 2005 11:31 AM|ultimaniac|LINK
I got the following error when I tried to compile my first module written in C#
Error 1 The files '/DotNetNuke/App_Code/ReportViewer/DataProvider.cs' and '/DotNetNuke/App_Code/AssemblyInfo.vb' use a different language, which is not allowed since they need to be compiled together. /
I've followed the Shaun's instructions (http://forums.asp.net/1114393/ShowPost.aspx) on installing DNN 4 and building modules using the starter kit templates, so I am guessing that the templates work in VB only?
Is there some kind of quick fixes for this? Or shall I just wait for the next release? Any suggestions will be greatly appreciated. Thanks!!!!!
Dec 01, 2005 04:08 PM|Basilike|LINK
By default, the App_Code directory can only contain files of the same language. However, you may partition the App_Code directory into subdirectories (each containing files of the same language) in order to contain
multiple languages under the App_Code directory. To do this, you need to register each subdirectory in the Web.config file for the application.
<configuration><system.web> <compilation> <codeSubDirectories> <add directoryName="ReportViewer"/> </codeSubDirectories> </compilation> </system.web></configuration>
Dec 01, 2005 07:56 PM|adefwebserver|LINK
Dec 02, 2005 04:20 AM|ultimaniac|LINK
That did the trick!! Thanx Basilike!