Farhad K

When I try to create a new C++ static library project, the Application Wizard's welcome screen that has both 'overview' and 'application settings' is completely disfunctional. Hyperlinks, 'Finish' and 'Cancel' buttons do nothing. Also some text is missing from the dialog (the current application settings bullets are blank).

The only way out is to close the dialog using the red cross on the top-right-hand corner. Even the help button doesn't work. Obviously, I cannot create any new projects.

I have installed VS2005 Enterprise under Vista Home Pro. I have also installed VS2005 SP1 as well as the service pack for VS2005 under Vista. I run VS2005 with administrative privilages. I don't have any problems with C# and ASP.NET projects.

I even tried VS2008 Beta2 but had the same problem.

One other symptom I see is when comparing file versions using VSS. One of the compare screens is normally blank until I force an update by selecting the text or covering it with another window. I am using SourceSafe version 8.0.

I will really appreciate any help.

Thanks in advance,

Farhad



Re: Visual C++ General Win32 Application Wizard Problem in VS2005 under Vista

Farhad K

Possible Cause

The app wizards in VS2005 are html pages with embedded jscript. My development environment, for some reason, refuses to run any scripts. When I debug ASP.NET applications, I normally have to start them outside of the IDE and then attach to the w3wp.exe process. Then, the scripts are executed.

I am using IIS7 in my environment.

I don't know how to enable scripts for my VS2005 IDE. I have tried many security settings under IIS7 and IE without success.

Please help!

Farhad





Re: Visual C++ General Win32 Application Wizard Problem in VS2005 under Vista

PatickG

Farhad K wrote:

One other symptom I see is when comparing file versions using VSS. One of the compare screens is normally blank until I force an update by selecting the text or covering it with another window. I am using SourceSafe version 8.0.

VS2005 is working without problems for me.

But i have the same issue with SS on Vista.





Re: Visual C++ General Win32 Application Wizard Problem in VS2005 under Vista

Farhad K

Thank you PatickG for the information. I am not so much concerned with the VSS problem. My main issue is the inability to run scripts within the IDE. I did uninstall and re-install VS2005, VS2005 SP1, VS2005 SP1 update for Vista. The behavior didn't change.

The problem is that the script engine / web browser invoked from within the IDE refuses to run any scripts (including the scripted parts of app wizard templates). Regular IE is fine and scripts are still executed if IDE is attached to an existing w3wp.exe process.

I am not sure where else to look. The IE options are set to enable script debugging. Could the scripting engine be bad Is this a permissions problem even though I am running as admin Since I see the same problem in VS2008 Beta, it must be caused by some setting external to the IDEs. But what How is an IE invoked from the start menu diferrent from one launched from the IDE

I am so lost!

Farhad





Re: Visual C++ General Win32 Application Wizard Problem in VS2005 under Vista

Farhad K

I have narrowed the problem further. It seems not to be related to VS2005 after all (will need to move the post). In my system, if I open an IE 7 window from an administrator command prompt, it behave diferrently than an IE 7 window launched from the start menues.

On the surface they look the same and display same security levels. Under taskmanager, the first instance has no entries under 'Virtualization' or 'Data Execution Prevention (DEP)'. The second instance has 'Virtualization' enabled and DEP disabled. This is the only difference that I can see.

The first instance cannot run any scripts, even those that IE7 uses itself. For example, if I right click on a blank page and select 'Properties' I receive script errors. The second instance (direct invokation) has no such problems.

Now, I am not very familiar with process security and inheritance in Vista. Somehow, the indirection is causing the problem even though the parent has administrative privilages. I am almost sure that the same is happening to my VS2005/VS2008 templates.

The Vista Premium came with my Gateway laptop. I am not convinced that a complete rebuild will solve this problem. The version number for IE7 is 7.0.6000.16546CO. The CO means that they have altered the configuiration. Maybe that is the problem.

Farhad





Re: Visual C++ General Win32 Application Wizard Problem in VS2005 under Vista

Farhad K

Resolution / workaround.

When IE is launched from an Admin process, it is not virtualized and cannot execute scripts. If it is launched from a regular command prompt, it works identical to as if it is directly executed. I had to start VS2005 without administrator privilages in order to execute app wizards. In other words, the script capabilities are disabled if the parent has admin rights. I guess there is some logic to this. Can also execute scripts in my ASP.NET project provided I:

1. Use visual studio development server and not IIS 7 (IIS 7 requires admin rights).

2. Launch VS2005 without admin rights.

I was using admin in the shortcut to my VS2005 and never thought that elevation could actually restrict a program or its offsprings.

This post has been a long rumbling on my part but I hope that it will help someone save a day in return for a day that I totally wasted.

Farhad