ASPX templates
Version 4.x > ASPX templates > Visual Studio 2008 freezing when saving project files View modes: 
User avatar
Certified Developer 9
Certified Developer 9
jkh80 - 8/5/2009 5:06:38 PM
   
Visual Studio 2008 freezing when saving project files
This likely has more to do with Visual Studio than Kentico, but I figured I would post and see if anyone else is experiencing the issues I am having working on Kentico projects using Visual Studio 2008 (Version 9.0.21022.8 RTM).

I have deployed a half-dozen Kentico implementations so far, but with three of them, I am no longer able to save any files that belong to the project once I have opened the solution in Visual Studio. When attempting to save a file, Visual Studio will hang, and the Delay Notification icon will appear in the tray. No matter how long I leave it, it will not eventually save the file, and I have to end the process.

Has anyone else experienced issues like this? I have never had this issue with a non-Kentico project. I have re-installed Visual Studio, but the problem persists. I have tried creating new solutions and adding the existing files to them, but the problem persists.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/6/2009 4:57:34 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

We have encountered similar issue in the past. But it was when opening the project. We have found that the sln project file was made for Visual Studio 2005 and .Net 2.0 and there were some incorrect paths in it - probably caused by converting the project to .Net 3.5 and Visual Studio 2008.

Moreover, I have asked our developers and they are encountering this issue quite often. But they are working on the source code solution with source control and this may cause the issue that the Visual Studio is not responding e.g. when checking in the changes etc. They have to kill the Visual Studio process.

Best Regards,
Juraj Ondrus

User avatar
Certified Developer 9
Certified Developer 9
jkh80 - 8/6/2009 10:52:47 AM
   
RE:Visual Studio 2008 freezing when saving project files
I updated Visual Studio 2008 to SP1, that still did not work. What I eventually had to do to fix the problem is install a fresh Kentico site on my system (using a new name) and then copy all of my files into the new project. Annoying, but at least I can work on my project again.

User avatar
Certified Developer 9
Certified Developer 9
jkh80 - 11/24/2009 5:26:09 PM
   
RE:Visual Studio 2008 freezing when saving project files
It has been awhile since I have posted this problem, but I have since performed a complete reinstall of my system.

For some reason (and very much to my dismay), even with a completely fresh install of Windows and a fresh install of Visual Studio 2008, the very same projects that were freezing Visual Studio before are STILL doing it, as if nothing has changed.

The plot thickens...

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/27/2009 2:24:58 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

It is very strange, no other reported this issue. If it is possible, could you please send us backups of those projects to support@kentico.com so we can inspect them?

Thank you.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
MWB - 1/5/2010 9:27:13 AM
   
RE:Visual Studio 2008 freezing when saving project files
I am also encountering this problem which is making it impossible for me to do any development on the Kentico web site code base. Is there any work around? Besides re installing kentico.

I am working on a code base that is checked out from SVN.


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/6/2010 4:08:49 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

I have one more idea - I am not sure if it is possible to get this, but if there is any kind of log for Visual Studio, or maybe system log or some memory dump, from which we can see what is going on, it could be helpful.

Thank you.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
MWB - 1/6/2010 6:58:59 AM
   
RE:Visual Studio 2008 freezing when saving project files
I think I've narrowed down the cause. The project I inherited contains some work done in VB.NET. Some modules written in that variety of .NET. And it seems that it could be the cause of the visual studio problems. When I created a new kentico site I no longer had the problems.

So, I'm getting by. Thanks for your help and ideas. I will probably look into things more and try to find a visual studio memory dump, or something of that nature when I have time.

User avatar
Member
Member
tom-distinction - 1/20/2010 6:04:38 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

We are experiencing this problem on a number of our sites now. It has been occuring more frequently since we started using Subversion source control. Are there any known issues with Kentico projects under source control?

Cheers,
Tom

User avatar
Member
Member
tom-distinction - 1/20/2010 10:21:28 AM
   
RE:Visual Studio 2008 freezing when saving project files
...it seems to be the CMS.Staging.dll that's causing the problem. Removing this from the project stops it freezing. Obviously the cms cannot work without this dll so this is not a solution. Any ideas?

Tom

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/21/2010 5:41:27 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi Tom,

We have never encountered this issue in our development nor many customers who are also using version control.

It is very strange. Could you please check if there are any errors logged in the Windows event log?

What exactly happens? Do you have to kill Visual studio or it will start responding after some time?

Thank you.

Best Regards,
Juraj Ondrus

User avatar
Certified Developer 9
Certified Developer 9
jkh80 - 1/27/2010 5:55:40 PM
   
RE:Visual Studio 2008 freezing when saving project files
CMS.Staging.dll isn't causing the problem with me, but I have managed to get around these issues by removing all Kentico-related folders that I am not working with from my local solution and from Subversion.

I am basically left with the CMSTemplates and CMSWebParts folders, and then I'm at least able to work my projects.

This is not at all a permanent solution, and I will try to pinpoint what exactly is causing Visual Studio to hang when I get some time to mess around.

User avatar
Member
Member
rvanoord-allmail - 1/22/2010 2:20:51 AM
   
RE:Visual Studio 2008 freezing when saving project files
We have been experiencing exactly the same problems on two different development computers and in both Windows XP, Windows Vista and Windows 7.

Visual studio does not actually crash, but simply hangs (without using any system resources) -- so it appears that there is some sort of deadlock occuring.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/22/2010 5:51:50 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

Are there any logs in Windows event log or if it is possible to get some memory dumps?
Thank you.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
tom-distinction - 2/22/2010 6:21:17 AM
   
RE:Visual Studio 2008 freezing when saving project files
Here is the error from the Windows Event Viewer:


Event Type: Error
Event Source: Application Hang
Event Category: (101)
Event ID: 1002
Date: 22/02/2010
Time: 12:13:33
User: N/A
Computer: OFFICE1
Description:
Hanging application devenv.exe, version 9.0.30729.1, hang module hungapp, version 0.0.0.0, hang address 0x00000000.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 48 61 6e 67 ion Hang
0010: 20 20 64 65 76 65 6e 76 devenv
0018: 2e 65 78 65 20 39 2e 30 .exe 9.0
0020: 2e 33 30 37 32 39 2e 31 .30729.1
0028: 20 69 6e 20 68 75 6e 67 in hung
0030: 61 70 70 20 30 2e 30 2e app 0.0.
0038: 30 2e 30 20 61 74 20 6f 0.0 at o
0040: 66 66 73 65 74 20 30 30 ffset 00
0048: 30 30 30 30 30 30 000000

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/23/2010 2:33:18 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

Thank you for the event log. But it is not telling anything new, just that the application was hanging. Is it possible to get memory dumps?

Best Regards,
Juraj Ondrus

User avatar
Member
Member
tom-distinction - 2/23/2010 5:48:08 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

Could you please advise me on how to get a memory dump of the hang? It is not windows that's crashing, just visual studio.

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/23/2010 6:01:03 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

But VS is running on Windows and it is using the memory as well, so in the memory dump should be information about what is going on. You can find many articles on Google, for example:

http://support.theplanet.com/kb/operatingsystems/microsoftwindows/how-can-i-read-memory-dump-files-windows-creates-debugging

http://forums.majorgeeks.com/showthread.php?t=35246

Best Regards,
Juraj Ondrus

User avatar
Member
Member
tom-distinction - 2/23/2010 6:26:52 AM
   
RE:Visual Studio 2008 freezing when saving project files
Thanks but there are no recent dumps, the last one was from a system crash in December. Nothing is actually crashing here, just hanging. If you leave it for an hour or so it sorts itself out.

User avatar
Member
Member
tom-distinction - 2/23/2010 9:29:05 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

We have managed to get a dump from the log by running in debug mode and have sent it to support.

Cheers,
Tom

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/2/2010 6:21:47 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

I can see that my colleague checked the dump with our developers. As he mentioned probably in the e-mail, we haven not found anything what could be the reason. I am sorry.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
tom-distinction - 3/4/2010 6:33:17 AM
   
RE:Visual Studio 2008 freezing when saving project files
Waited a while and managed to get a more meaningful error after one of the hangs sorted itself out:

Warning 1 D:\Kentico\Kentico Projects\4.1\Q\CMSWebParts\_QM\TicketDetail.ascx: ASP.NET runtime error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Web.Interop.IWebApplicationCtxSvc'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{CCCECEE2-D225-4294-858E-2B8C3F7D84EA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). D:\Kentico\Kentico Projects\4.1\Q\CMSWebParts\_QM\TicketDetail.ascx 1 1 D:\...\Q\


Does this shed any light?

Regards,
Tom

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/4/2010 7:01:17 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

Thank you for the error, but TicketDetail.ascx is not Kentico's default web part or control. It seems that it is your custom code which is causing the issue. Could you please try to remove it from project to see if VS will freeze again? If not, could you please review your code in that web part?

Best Regards,
Juraj Ondrus

User avatar
Member
Member
grimboify - 3/18/2010 8:05:35 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi all,

thought I would chime in - I am also having this problem. First using vs2008wSP1 Team System, then using vs2010rc1 Pro. This is happening on a clean install of Windows7 (2 weeks old). I use TortoiseSVN and VisualSVN (as I did on my previous OS). Happens when I save and also sometimes just using the scrollbar. I am using Kentico 5.0. I have used previous versions of Kentico, and 5.0 on the same machine before with no problems. The clean rebuild seemed to kill it. I am not having issues building other WebForm or MVC applications.

I am reduced to using Notepad++ for Kentico development. Very keen for a solution to emerge.

Cheers guys


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/19/2010 2:39:03 AM
   
RE:Visual Studio 2008 freezing when saving project files
Hi,

Which version of .Net are you using? Is it possible to get the memory dumps as mentioned above?

Thank you.

Best Regards,
Juraj Ondrus

1 2