开发者

want to make a dnn module

开发者 https://www.devze.com 2023-03-02 17:32 出处:网络
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\' us

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 co开发者_StackOverflow中文版mpiled together).

how this Error Will be removed?


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..


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

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号