locked
App_Code class is not accessessible after creating installer RRS feed

  • Question

  • User-1313211662 posted

    I have project and i added class in app_code folder.

    It work fine when i set class file build action to compile.

    then i created installer.

    after install the installer it gives me error of class file inaccessible.

    Friday, August 26, 2016 4:12 PM

All replies

  • User-484054684 posted

    Is it web application (instead of website)? See if you can use other folder in such case.

    See this thread: http://stackoverflow.com/a/89719

    Friday, August 26, 2016 4:29 PM
  • User-1313211662 posted

    Its web application

    Friday, August 26, 2016 4:32 PM
  • User-484054684 posted

    Ok Would advice to take the generated application dll from the BIN folder and use Reflector (or any disassembler tool), and inspect if you could see your class in that dll. 

    That could give the clue. Also, would be good if you could post the exact error details.

    Friday, August 26, 2016 4:38 PM
  • User-1313211662 posted

    I moved class file inside App_Data and class file in xyz namespace

    in web.config it not getting the class file.

    <modules>
    <add type="test" name="test"/>
    </modules>

    getting below error

    System.Web.HttpException: Could not load type 'test'.

    Monday, August 29, 2016 4:38 AM
  • User-484054684 posted

    App_Data is special folder for content files like xml, etc.

    Would advice to create some other new folder for your project and start using it. That would be better.

    Wednesday, August 31, 2016 4:20 PM