Protecting Code Behind Pages

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Protecting Code Behind Pages

    Yep, just deploy the aspx, ascx and config files to the application root and
    put the compiled dll into the bin/ directory. That's all ASP.NET needs to
    run, you need not deploy the .cs files. If you click the "copy web" icon at
    the top of your solution explorer, the default options are set up to do
    this. "only copy files needed to run this application". It will not copy any
    ..cs source files or any csproj project files. If you have info in .xml files
    you'd rather not be leaving out in the open, you can use the properties
    window to change their build actions to "embedded resource". MSDN for info.

    Hope this helps,

    - Oisin

    "Dan M" <dan.morrisssey@fhmd.org> wrote in message
    news:OlUAjgKRDHA.3144@tk2msftngp13.phx.gbl...
    > Is there any way to deploy an ASP.NET solution to a client's intranet web
    > server without exposing the source code in our project?
    >
    >

    Oisin Grehan Guest

  2. Similar Questions and Discussions

    1. Password Protecting Pages
      I am unable to click on the plus sign in order to add a server behavior that password protects a page. What am I missing?
    2. Web Services and Protecting Code
      I am new to web services. I have am running a sample web service for testing. It seems that if I type the URL in the web browser, it displays all...
    3. xml pages with <? in it are choking my PHP code
      Most of our designers prefer to work in Dreamweaver. They now, this month, want to produce templates that are valid XHTML 1.0. In Dreamweaver, this...
    4. #24666 [Fbk]: random blank pages for any code on any php page
      ID: 24666 Updated by: sniper@php.net Reported By: dhunter at uta dot edu Status: Feedback Bug Type: ...
    5. Protecting ASP Code ???
      Is their anyway I can protect my asp code from being copied. I have created a number of include files that are quite useful and save a lot of time....
  3. #2

    Default Re: Protecting Code Behind Pages

    Compile the CodeBehind classes into DLL(s). Then just deploy the DLL(s) and
    Page templates, and not the CodeBehind files.

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Some things just happen.
    Everything else occurs.

    "Dan M" <dan.morrisssey@fhmd.org> wrote in message
    news:OlUAjgKRDHA.3144@tk2msftngp13.phx.gbl...
    > Is there any way to deploy an ASP.NET solution to a client's intranet web
    > server without exposing the source code in our project?
    >
    >

    Kevin Spencer Guest

  4. #3

    Default Re: Protecting Code Behind Pages

    Apparently I have a lot to learn. Do you mean to say that all of the code I
    use to retrieve and set values in my web controls and respond to post-back
    events can all be compiled into dll's to the extent that I don't need to
    deploy any .vb code pages to the web site? How do I do this?

    "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
    news:%23tirWtKRDHA.2332@TK2MSFTNGP10.phx.gbl...
    > Compile the CodeBehind classes into DLL(s). Then just deploy the DLL(s)
    and
    > Page templates, and not the CodeBehind files.
    >
    > HTH,
    >
    > Kevin Spencer
    > Microsoft FrontPage MVP
    > Internet Developer
    > [url]http://www.takempis.com[/url]
    > Some things just happen.
    > Everything else occurs.
    >
    > "Dan M" <dan.morrisssey@fhmd.org> wrote in message
    > news:OlUAjgKRDHA.3144@tk2msftngp13.phx.gbl...
    > > Is there any way to deploy an ASP.NET solution to a client's intranet
    web
    > > server without exposing the source code in our project?
    > >
    > >
    >
    >

    Dan M Guest

  5. #4

    Default Re: Protecting Code Behind Pages

    Do you have Visual Studio.Net? If so, you can do it from there. Otherwise,
    there are a number of command-line utilities that come with the .Net
    platform. Do you want to know how to do it from a Command-Line console?

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Some things just happen.
    Everything else occurs.

    "Dan M" <dan.morrisssey@fhmd.org> wrote in message
    news:uVPlQ7KRDHA.2408@TK2MSFTNGP10.phx.gbl...
    > Apparently I have a lot to learn. Do you mean to say that all of the code
    I
    > use to retrieve and set values in my web controls and respond to post-back
    > events can all be compiled into dll's to the extent that I don't need to
    > deploy any .vb code pages to the web site? How do I do this?
    >
    > "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
    > news:%23tirWtKRDHA.2332@TK2MSFTNGP10.phx.gbl...
    > > Compile the CodeBehind classes into DLL(s). Then just deploy the DLL(s)
    > and
    > > Page templates, and not the CodeBehind files.
    > >
    > > HTH,
    > >
    > > Kevin Spencer
    > > Microsoft FrontPage MVP
    > > Internet Developer
    > > [url]http://www.takempis.com[/url]
    > > Some things just happen.
    > > Everything else occurs.
    > >
    > > "Dan M" <dan.morrisssey@fhmd.org> wrote in message
    > > news:OlUAjgKRDHA.3144@tk2msftngp13.phx.gbl...
    > > > Is there any way to deploy an ASP.NET solution to a client's intranet
    > web
    > > > server without exposing the source code in our project?
    > > >
    > > >
    > >
    > >
    >
    >

    Kevin Spencer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139