Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. dll issue

dll issue

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    snehasish
    wrote on last edited by
    #1

    hi; I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work. Thanks

    A 1 Reply Last reply
    0
    • S snehasish

      hi; I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work. Thanks

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      snehasish wrote:

      I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work.

      snehasish, You can !! But first of all tell me why ? If you think about code security , you do not need to worry about that , when you Publish the code from Visual Studio You App_Code folder and codebehind files are compiled into one assembly. Now back to your solution . Step 1 : Create A Class Library Step 2: Copy the APP_Code Folder on that Class Library. Step 3: Build the Application Step 4: Delete App_Code From your web sites Step 5: Add that Dll as a Reference to your web sites Step 6: Access your classes and methods from that dll:) ;)

      cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

      C 2 Replies Last reply
      0
      • A Abhijit Jana

        snehasish wrote:

        I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work.

        snehasish, You can !! But first of all tell me why ? If you think about code security , you do not need to worry about that , when you Publish the code from Visual Studio You App_Code folder and codebehind files are compiled into one assembly. Now back to your solution . Step 1 : Create A Class Library Step 2: Copy the APP_Code Folder on that Class Library. Step 3: Build the Application Step 4: Delete App_Code From your web sites Step 5: Add that Dll as a Reference to your web sites Step 6: Access your classes and methods from that dll:) ;)

        cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        Abhijit Jana wrote:

        But first of all tell me why ?

        Maybe he wants to reuse the code there in other projects.

        * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


        Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

        1 Reply Last reply
        0
        • A Abhijit Jana

          snehasish wrote:

          I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work.

          snehasish, You can !! But first of all tell me why ? If you think about code security , you do not need to worry about that , when you Publish the code from Visual Studio You App_Code folder and codebehind files are compiled into one assembly. Now back to your solution . Step 1 : Create A Class Library Step 2: Copy the APP_Code Folder on that Class Library. Step 3: Build the Application Step 4: Delete App_Code From your web sites Step 5: Add that Dll as a Reference to your web sites Step 6: Access your classes and methods from that dll:) ;)

          cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Abhijit Jana wrote:

          If you think about code security , you do not need to worry about that

          Sorry, I don't understand where the benefit of having the code in AppCode is beneficial in the area of code security. Could you explain?

          * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


          Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

          A 1 Reply Last reply
          0
          • C Colin Angus Mackay

            Abhijit Jana wrote:

            If you think about code security , you do not need to worry about that

            Sorry, I don't understand where the benefit of having the code in AppCode is beneficial in the area of code security. Could you explain?

            * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


            Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            Colin Angus Mackay wrote:

            Abhijit Jana wrote: If you think about code security , you do not need to worry about that Sorry, I don't understand where the benefit of having the code in AppCode is beneficial in the area of code security. Could you explain?

            Sure sir, Generally we put class files on App_Code folder . We can able to access them all over the application . Here all codes are placed as simple class file. So some people think that Its very unsafe to keep code in app_code folder as its placed as plain text format. But if we published the code from Visual Studio all the Class inside the App_code and Codebehind are converted to assembly. But I prefer to create Class Library :)

            cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

            C 1 Reply Last reply
            0
            • A Abhijit Jana

              Colin Angus Mackay wrote:

              Abhijit Jana wrote: If you think about code security , you do not need to worry about that Sorry, I don't understand where the benefit of having the code in AppCode is beneficial in the area of code security. Could you explain?

              Sure sir, Generally we put class files on App_Code folder . We can able to access them all over the application . Here all codes are placed as simple class file. So some people think that Its very unsafe to keep code in app_code folder as its placed as plain text format. But if we published the code from Visual Studio all the Class inside the App_code and Codebehind are converted to assembly. But I prefer to create Class Library :)

              cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              I still don't see where the security is. Compiling into an assembly isn't adding security as Red-Gate's reflector can just reverse it out again. All that is doing is converting it into the format that the CLR needs in order to run.

              * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


              Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

              A 1 Reply Last reply
              0
              • C Colin Angus Mackay

                I still don't see where the security is. Compiling into an assembly isn't adding security as Red-Gate's reflector can just reverse it out again. All that is doing is converting it into the format that the CLR needs in order to run.

                * Developer Day Scotland 2 - Free community conference * The Blog of Colin Angus Mackay


                Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                Colin Angus Mackay wrote:

                ompiling into an assembly isn't adding security as Red-Gate's reflector can just reverse it out again.

                Exactly Agree . But from that question I was thought may be he is asking for that his code represent as plain text.

                cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

                S 1 Reply Last reply
                0
                • A Abhijit Jana

                  Colin Angus Mackay wrote:

                  ompiling into an assembly isn't adding security as Red-Gate's reflector can just reverse it out again.

                  Exactly Agree . But from that question I was thought may be he is asking for that his code represent as plain text.

                  cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net

                  S Offline
                  S Offline
                  snehasish
                  wrote on last edited by
                  #8

                  hi; Sorry for the delayed response.your suggestions was extremely helpful.Actually i got(in APP_CODE) some code in C#.net.But my project is running on vb.net.so i was trying to covert it by some online conversion tool.But it provided error in my application.So i tried to convert it into dll.Now it works.Thanks again. :) :) :) :) :) :)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups