Code changes ignored

Discussion in 'ASP .Net' started by Waldy, Jul 29, 2005.

  1. Waldy

    Waldy Guest

    Hi there,
    a customer has an .ASP .Net application that I have written
    for them. They recently requested a minor change to a SQL statement that
    loads a drop down. I made the change and supplied them with the updated .VB
    file. However, the changes are ignored by the application. I have even
    dialled in to their system and completely changed the SQL statement to
    return rubbish but the changes are not recognised by the application. I
    rebuilt the application when I made the code change here, and it did not
    update the .DLL so I only sent the .VB file to the customer. The change
    works fine on my machine but not the customers. There must be something
    blindingly obvious that I have missed. Can anyone please shed some light on
    this.
     
    Waldy, Jul 29, 2005
    #1
    1. Advertisements

  2. Waldy

    Rob Amos Guest

    If you're using code behind then giving them the .vb file will have no
    effect, the code is compiled into the .dll. (unless you explictly tell the
    page you are fixing to use late binding). When you rebuilt the app it should
    have updated the dll, that seems to be the issue. Are you sure there were no
    build errors? can you check the properties of the project to verify the path
    to the dll?

    Rob
     
    Rob Amos, Jul 29, 2005
    #2
    1. Advertisements

  3. Waldy

    Mark Rae Guest

    There's no point sending the .vb file to the customer - those files are used
    only to store your VB.NET code-behind.

    You need to rebuild your ASP.NET application in Release mode and then
    redeploy the DLLs from your \bin folder into the equivalent \bin folder on
    the client's web server.
     
    Mark Rae, Jul 29, 2005
    #3
  4. Waldy

    Waldy Guest

    Sorry,
    I was looking at the wrong .DLL! I opened the .DLL in notepad and
    you can clearly see that the SQL statements are held within.

    Thanks.
     
    Waldy, Jul 29, 2005
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.