ASPX templates
Version 4.x > ASPX templates > Visual Studio 2008 freezing when saving project files View modes: 
User avatar
Member
Member
grimboify - 3/21/2010 11:03:07 PM
   
RE:Visual Studio 2008 freezing when saving project files
.NET 3.5sp1

in breaking news -> I had the project opened in vs2010rc1, 'saved' a file, it went to quasi-hang mode so I left it overnight as a test. Then the next day the IDE is behaving normally. It has been playing nice for 3 days now.

I have yet to open the solution again in vs2008. Just going with a good thing until the project is completed (apologies no memory dump until then).

Might be worth the Kentico boffins' testing this out.

Hope this helps someone.

Cheers

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/22/2010 8:11:08 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi all,

One customer just reported that the Visual studio crashed right after he tried to open the Kentico CMS file. The reason of this was one of the plugins he had installed into Visual studio. For more details please see this FAQ I just published.

I hope it will help.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
rvanoord-allmail - 3/22/2010 8:36:13 AM
   
RE:Visual Studio 2008 freezing when saving project files
The problem discussed here is not visual studio crashing, but hanging.

Usually, VS is not using any resources when it begins to hang -- it appears to be some sort of deadlocking problem.

I seem to experience hanging problems less frequently when I assign full permissions to "Everyone" on all my kentico development files.

User avatar
Certified Developer 11
Certified Developer 11
Cy - 3/25/2010 9:24:39 AM
   
RE:Visual Studio 2008 freezing when saving project files
I was having a problem with Visual Studio Locking up after doing an upgrade from 2.0 to 3.5. The upgrade happened when I opened a new kentico 5.0 install that one developer had been working with through the CMS desk only. He installed as a .net 2.0 app with the Kentico Web Installer.

When I opened the Solution file with VS 2008, it asked me if I wanted to upgrade the solution to .net 3.5. I said yes. From that point on, VS would load fine, but the moment I tried to open a .ascx file or .cs code behind, it would hang indefinitely.

After removing and re-adding the website project to see if that helps, I decided to try with a fresh solution. That didn’t help either. After doing a manual compare of the Solution files in notepad, I found one difference in the project definition node.



Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "MyWeb", ".", "{420F4FED-2F28-4BE5-8CEA-9A6B9A57558B}"
ProjectSection(WebsiteProperties) = preProject
TargetFramework = "3.5"
Debug.AspNetCompiler.VirtualPath = "/"
Debug.AspNetCompiler.PhysicalPath = "..\Project\MyWeb\"


The TargetFramework property is in the default WebProject.Sln that the Kentico web installer generates. Both my new Solution File and the Original Solution file that Visual Studio “upgraded” did not contain this property. After I added that property back to my new solution file, everything loaded fine. I’m still not sure what caused the hangs, but this seems to fix it.

FYI, I hope this helps.

User avatar
Member
Member
DahlinDev - 4/7/2010 1:33:14 PM
   
RE:Visual Studio 2008 freezing when saving project files
I am having this issue as well. It appears it happened after I checked my solution into svn. I can't do anything in VS now, it just hangs, saying it is too busy.

Cy I tried your solution but it didn't work for me.

User avatar
Member
Member
DahlinDev - 4/7/2010 3:01:24 PM
   
RE:Visual Studio 2008 freezing when saving project files
It appears I have solved my problem. I think svn was just a coincidence and not actually the problem.

My site is connected to a remote database in which I need to be connected to the vpn in order to connect to this.

I have no idea why, but it seems this connection needs to be made in order for VS to work. All the files that I am editing are local, but I found once I connected to the vpn I was able to edit files without any hanging.

One other thing I noticed is when I would open VS then Open Website and go down to, for example the CMSTemplates directory I was able to edit fine. So that tipped me off that it must be some configuration file.

Then I thought , well lets see, it shouldn't matter, but I guess it does.

I hope this helps someone.

User avatar
Member
Member
jasonlancester-gmail - 5/24/2010 11:30:56 AM
   
RE:Visual Studio 2008 freezing when saving project files
I submitted this as a bug to Microsoft. There were similar issues in their bug reports but none quite like what I was experiencing. It was happening to me in very specific circumstances and I found a workaround that worked for me.

Basically, after opening the web site, close all open files through the Window -> Close All Documents menu item, open a file like Default.aspx in the root, close Visual Studio and then reopen Visual Studio and the site.

All the details are here:

https://connect.microsoft.com/VisualStudio/feedback/details/561104/microsoft-visual-studio-is-busy-vs-is-waiting-for-an-internal-operation-to-complete

Crossposted from:

http://devnet.kentico.com/Forums/f40/t7829/Visual-studio-is-busy.aspx

---------------------------------

Juraj,

I have the output from the Windows Debugger while it was attached to Visual Studio when this happened. I don't have a dump as it threw an error when I tried to write the dump file. The pertinent bits from the debugger output are in the comments I left on the Microsoft bug report but I can post the whole file here or email it to you if you wish.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/25/2010 7:11:44 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

Thank you for all your efforts. You can send us that file to our support and we will take a look on it. But I am afraid that we will be able to say where it hangs, but not why. I hope that there will be some reply from Microsoft, since they have the IDE source codes and can take deeper look into this issue.

Best regards,
Juraj Ondrus

1 2