Manish
Manish

Reputation: 87

want to make a dnn module

i am New to dnn. i want to make a module of dnn in c#. I am trying but there is an error(he files '/cross/App_Code/AssemblyInfo.vb' and '/cross/App_Code/ADefHelpDesk/dnnHelpDeskDAL.designer.cs' use a different language, which is not allowed since they need to be compiled together).

how this Error Will be removed?

Upvotes: 1

Views: 785

Answers (2)

Harun
Harun

Reputation: 5179

Do the following in the web.config file. you have to register your app_code subfolders to generate granular assemblies during compilation.

Your app_code should contain a folder for your custom module which contains the buisnes logic and DB access layers.(refer creating custom modules in dnn)

    <system.web>
       <compilation>
     <!-- register your app_code subfolders to generate granular assemblies during compilation-->                                                                                    
              <codeSubDirectories>                      
          <add directoryName="ADefHelpDesk"/>
          </codeSubDirectories>
    </compilation>
      </system.web>

Hope this will help you..

Upvotes: 2

Timothy S. Van Haren
Timothy S. Van Haren

Reputation: 8966

Try adding a code subdirectory element in your web.config file:

<configuration>
   <system.web>
      <compilation>
         <codeSubDirectories>
           <add directoryName="ADefHelpDesk"/>               
         </codeSubDirectories>
      </compilation>
   </system.web>
</configuration>

Upvotes: 0

Related Questions