Hiển thị kết quả từ 1 đến 8 / 8
  1. #1
    Tham gia
    18-05-2007
    Bài viết
    302
    Like
    0
    Thanked 3 Times in 3 Posts

    Lỗi: "Unable to find a version of the runtime to run this application"

    Các bác ai gặp lỗi này lần nào chưa, em mô tả lại có bác nào biết chỉ giùm em với nhé, thật điên đầu với nó luôn:
    Số là: Em có 1 ứng dụng .Net 2005 (.Net 2.0) viết và build trên máy của em - ra file Exe và các file Dll đi kèm - Trên may của em thi không khi nào thấy báo lỗi "Unable to find a version of the runtime to run this application " cả. Tuy nhiên, em copy exe này sang 5 máy khác nhau (trong cty chạy mà), cả 05 máy em đều setup giống nhau (1. Windows Installer 3.xx, 2. .Net Framework 2.0 (download from microsoft), 3. Crytal Report).
    Sau đó, em copy file chương trình vào máy để run (em ko làm file set-up, chỉ copy thôi).

    Tình trạng là:
    Mỗi lần copy vào thì chạy ok, nhưng sau n (n - là số tự nhiên từ 2 - ***) lần thì tự dưng một lần nào đó nó lại thông báo "Unable to find a version of the runtime to run this application " và em lại copy lại từ máy em xuống thì lại chạy được ???
    Bác nào biết chỉ giúp em với, cảm ơn các bác nhiều .............
    hix hix ...
    Quote Quote

  2. #2
    Tham gia
    18-05-2007
    Bài viết
    302
    Like
    0
    Thanked 3 Times in 3 Posts
    Ac ac, cac bac ko giup em voi ...

  3. #3
    Tham gia
    15-11-2005
    Location
    Hà Nội
    Bài viết
    696
    Like
    0
    Thanked 14 Times in 12 Posts
    Bạn đưa code lên xem nào? Cái này chắc là bug ở code hoặc do máy bị virus gì đó.

  4. #4
    Tham gia
    18-05-2007
    Bài viết
    302
    Like
    0
    Thanked 3 Times in 3 Posts
    Cam on bac "Than Dieu" minh nghi khong phai do code chuong trinh bac ah!

  5. #5
    Tham gia
    18-05-2007
    Bài viết
    302
    Like
    0
    Thanked 3 Times in 3 Posts
    Ko bac nao giup em ca the ?? hix hix

    [=========> Bổ sung bài viết <=========]

    Question:
    For some reason, plc.exe has stopped working on my system. When I try to run it, I get a pop-up with the title ".NET Framework Initialization Error" and the text "Unable to find a version of the runtime to run this application."

    I have tried re-installing both the PDK and the .NET framework, but nothing has helped. I'm patched to date. Other .NET applications are still working fine.

    Any suggestions?

    Answer:
    This message results from changes to .NET security behavior that Microsoft introduced with Security Fix KB928365. The previous work-around was to remove KB928365.

    As of July 2007, Microsoft has added the Security fixes found in KB928365 into KB928366, which is the .NET 1.1 Hotfix, and KB928367, which is the .NET 1.0 Hotfix. As a result, ALL .NET installations will exhibit this problem if patched to date.

    As of November 30 2007, Microsoft has released .NET 2.0 SP1 which rolls up all previous security fixes, and makes changes to .NET 2.0 in preparation for .NET 3.0 SP1 and .NET 3.5. PDK 7.0.0 will NOT be compatible with .NET 2.0 SP1, .NET 3.0 SP1, or .NET 3.5.

    It is possible to work around this problem using the following steps:

    Exclusion- Does not apply to Vista. Vista incorporates .NET differently from other versions of Windows.
    Warning- Any versions of Visual Studio in use must be installed before starting this workaround. It has not been verified, but it is quite possible that some features of recent Visual Studio versions may be broken by this workaround. Because of the changes to .NET, it may not be possible to have certain versions of Visual Studio on the same system as PDK 7.0.0.

    1. Check Microsoft Update. Install any critical updates that are NOT labeled as being part of .NET (This is not compulsory, but may save you some annoyance as you otherwise need to be careful about your default selections as you work through the process).
    2. Turn off automatic update, use add/remove programs to uninstall ALL versions of .NET, and restart.
    3. Deselect any critical updates available at this point. Go to the optional software section. Select the following:
    .NET 1.1
    .NET 2.0 KB829019
    .NET 3.0 KB928416 (if desired)
    (.NET 1.0 Compact Framework SP3 and .NET 2.0 Compact Framework may also be added if desired)
    Install all the selections you make in this section simultaneously to save time.
    4. Install:
    .NET 1.1 SP1 (11/30/2007 last update)
    Allow the reboot.
    5. Install:
    .NET 1.1 Hotfix KB928366
    Allow the reboot.
    6. KB928365 is no longer available from the Microsoft Update agent. You can still download and install it from here:
    http://www.microsoft.com/downloads/d...A3CEB78-8E1B-4...
    The open browser will cause the installation to stall, but you can simply close the browser and tell the installer to re-try. Allow the reboot.
    7. Open add/remove programs tool. Ensure show updates option is selected. Uninstall KB928365. Ensure Auto-update remains off.
    8. PDK applications should now work.
    - You may now install .NET 3.0 Update KB932471 if you are using .NET 3.0.

    - DO NOT install .NET 2.0 SP1 (or .NET 3.0 SP1 or .NET 3.5 when they become available). If you install .NET 2.0 SP1 you must start over at step #2.

    Why the order is important-
    .NET 2.0 must be loaded in order to load KB928365. KB928366 will allow KB928365 to be installed after it, even though 366 contains files from 365. When KB928365 is loaded over KB928366, the uninstaller gets the references which allow it to remove only the offending portions of 366 when it removes 365. However, .NET 2.0 SP1 will block KB928365, and the changes made to .NET 2.0 in SP1 cannot be backed out, so if SP1 has been installed you have to start over.

    If you need to work with .NET 2.0 SP1, .NET 3.0 SP1, .NET 3.5, or Vista; your current option is to wait for the next release of PDK 7.0, which should address the root cause of this problem.
    Được sửa bởi nhadatvina lúc 16:56 ngày 24-03-2008 Reason: Bổ sung bài viết

  6. #6
    Tham gia
    14-03-2007
    Bài viết
    23
    Like
    0
    Thanked 0 Times in 0 Posts
    Mình thường thấy nó báo lỗi này khi mà trên máy chưa cài dotNet framework. Trong bộ cài của IDE thưong có dotNet framework installer đó bạn tìm bộ cài rồi cài lên máy cần deploy mình nghĩ là OK.

  7. #7
    Tham gia
    18-05-2007
    Bài viết
    302
    Like
    0
    Thanked 3 Times in 3 Posts
    Hix hix tinh hinh la may da co .Net Framework 2.0 - cu copy file Exe moi vao la chay ok, nhung mot luc sau (ko xac dinh duoc) hoac restart lai may la bi bao loi nay lien (Copy cung file Exe do vao thi lai chay duoc).
    Co ai tu van giup em voi ...............

  8. #8
    Tham gia
    08-02-2008
    Bài viết
    4
    Like
    0
    Thanked 0 Times in 0 Posts

    vừa mới biết xong

    thế thì máy ở công ty nhiễm File virus rồi. bọn file virus ghi đè file .net, khi clr load vào nó kiểm tra băm bủng gì đó,thì ko giống với mã băm nên nó ko cho load, liên hệ với tác giả của virus rồi bảo họ "mày viết virus, muốn lây cho .net thì tính lại cái checkSum cái. md5 hay sha gì ấy. thank m."

Bookmarks

Quy định

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể sửa bài viết của mình
  •