Results 1 to 4 of 4

Thread: Asp.Net and MySql exception

  1. #1
    Join Date
    Sep 2006
    Posts
    210
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default Asp.Net and MySql exception

    Hi all

    I hope someone can point me in the right direction

    I am having a look at a Asp.Net 1.1 website for someone, I do not have the source code, which makes it rather difficult, anyway the problem with the site is that the MySql.Data.dll was throwing a security exception because of the partially trusted caller issue, so I thought change the dll to a version that does allow partially trusted callers, but now I get the exception below

    Could not load file or assembly 'MySql.Data1.06' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    the 1.06 was the orginial dll that I have replaced with 1.07.

    So anyone any ideas please

  2. #2
    Join Date
    Jun 2005
    Posts
    1,081
    Thanks
    4
    Thanked 15 Times in 15 Posts

    Default

    From the looks of the error I would say you have to recompile the application after changing the mySQL DLL reference so that it picks up the new version.

  3. #3
    Join Date
    Sep 2006
    Posts
    210
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    Hi

    Thanks for your reply, I should have posted back, I reckon that the application has been encrypted, so that it is not possible to change it without the source code, which the guy did not have, so it's a none starter until he gets hold of the source code.

    I think he may have fallen out with the developer and was trying to short cut him, so anyway I have given up on it until he gets it, to much eles to do.

    Many thanks for your reply.

  4. #4
    Join Date
    Feb 2006
    Location
    UK
    Posts
    31
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Default

    Can you subclass the necessary class(es)? There's a good msdn article that describes this in the context of a website, for which no code is available. Might not be any use, but you never know...
    http://msdn.microsoft.com/msdnmag/is...4/CuttingEdge/

    All the best.
    Jim

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Security Exception
    By spire128 in forum ASP.NET
    Replies: 6
    Last Post: 8th February 2007, 09:31 PM
  2. MySQL Connector for .Net
    By Tanzy in forum MySQL
    Replies: 6
    Last Post: 19th January 2007, 10:12 AM
  3. asp.net connection to mysql
    By keyur_ptl in forum ASP.NET
    Replies: 1
    Last Post: 27th January 2006, 11:26 AM
  4. ASP.NET 2 connection to MySQL - me too
    By madwab in forum ASP.NET
    Replies: 37
    Last Post: 10th January 2006, 06:13 AM
  5. ASP.NET 2 connection to MySQL
    By captain in forum ASP.NET
    Replies: 4
    Last Post: 27th December 2005, 07:07 PM

Bookmarks

Posting Permissions

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