سؤال

أنا أسست مواقع الويب في Visual Studio 2010. قمت بالترقية مؤخرا إلى آلة ديف جديدة تعمل بنظام Windows 7 64 بت. الآن، عندما أجري تغييرا في صفحة ويب، يجب أن أتوقف عن التصحيح، وقتل Cassini، وبدء تصحيح الأخطاء مرة أخرى قبل أن يسري الرمز الجديد.لم يكن لدي هذه المشكلة في XP.

الأشياء التي جربتها ...

  • تجميع Debug="صحيح" في ملف التكوين
  • خيارات-> تصحيح الأخطاء-> تحرير ومتابعة ممكن

    لست متأكدا مما إذا كان هذا يتبع تحت مجموعة ديناميكية أو تحرير ومتابعة - أي مساعدة ستكون موضع تقدير.

    تحرير

    أحد زملائي ليس لديهم هذه المشكلة.لديه إعداد متطابق بالنسبة لي، باستخدام نفس المشروع، نفس تكوين البناء (أي وحدة المعالجة المركزية)

هل كانت مفيدة؟

المحلول 3

As it turns out, this was my fault... I had experienced the dreaded "network BIOS command limit has been reached" issue. I found a post that recommended doing a regedit hack "HKLM\Software\Microsoft\ASP.NET\FCNMode = 1", well this basically turns off File Change Notifications. Changing this value to 2, and applying the changes recommended in knowledge base 810886 fixed both problems.

نصائح أخرى

The reason is due to the change from a 32 bit os to a 64 bit os. The ability to change code while the application is running is unique to 32 bit code. In a 64 bit executable, this capability is removed.

This is known as "Edit and Continue". See this question for a good explanation of why this won't work on a 64bit executable:

Why doesn't Edit and Continue work on the x64 CLR?

EDIT: Clarification:

This isn't an issue with the OS, but rather the build of your code. If you have your build configuration set to "Any CPU", it will run under the architecture of your machine (x64 in your case). You should be able to force this to x86 and be able to use Edit and Continue.

64-bit apps can't be dynamically modified during debugging. To be able to do that you'll need to change your your build target 'x86'. Easy!

Just change it back (if you really need 64-bit assemblies).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top