dll issue
-
hi; I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work. Thanks
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
-
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
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.
-
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
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.
-
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.
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
-
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
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.
-
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.
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
-
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
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. :) :) :) :) :) :)