[RESOLVED]Visual Studio 2008 project migration issues

Vista 64 Ultimate, Visual Studio 2008, VWD express 2008;  ….. moved from XPpro

I’m now trying to re-run my old web projects with mixed success.

Test2SQL is a VERY simple project which runs ok when:
- using Visual Studio Development Server OR
- when changing project to use IIS; however, then I must start VWD  ‘as administrator’ … even when I start it in the ‘Admin’ account!!!

If I start VWD NOT ‘ as administrator’  I get below error message:
"" start of message
The Web application project Test2SQL is configured to use IIS.
To access local IIS Web sites, you must run Visual Studio in the content of an administrator account.
In addition, you must install the following IIS components.

IIS 6 Metabase and IIS 6 Configuration compatibility
Windows Authentification
- end of message

I certainly installed suggested functions as mentioned in message! … and read tons of forum suggestions!

a) why do I need  – when in ‘admin’ account – open VWD ‘as administrator’?
b) how can I force that VWD by default opens in the administrator context? .. e.g. adding some more privileges?!
b1) of course I’d like to do this also in the ‘user’ account! ?

c) are there any special considerations when migrating old web projects (Framework 2.0) onto Vista (Framework 3.5).
   Any articel suggestions? advise, hints ……

Thanks for your time and hints

You need to run as an administrator when integrating with IIS because of how the debugger gets attached to the IIS process, it’s a Vista security thing. 

To make VWD or VS run under the Administrators account by default:

Right click on VS/VWD icon in the Start menu, choose Properties, then Compatibility and check ‘Run As Administrator’.  After doing this you must open your projects using the IDE rather than double clicking on the project / solution file.




Hi William, thanks for your time

your suggestion worked, However, I ran into another problem as follows:
when loading a framework 2.0 project and run it using IIS I get below error:

""Unable to start debugging on the Web server. The web server is not configured correctly.

See help for common configuration errors. Running the web page outside of the debugger may provide further information.""

when running without debugger I get an error in web.config at statement:

<authentication mode="Windows">  </authentication>

I checked the forum(s) and followed a suggestion to use CREATE in IIS for this project (the problem: I didn’t find the CREATE as mentioned; assume it was for an older IIS). Instead I found in IIS 7 – when right clicking the project – ‘add application’. Doing
that made disappear the error msg but now my project does NOT come up correctly anymore i.e I only see the text ie. no formatting …

I know this is trial and error but might be you have an idea what I really need to configre in IIS!?

any suggestions where to find hints … the forums are full of ‘unable to debug ….’ but I didn’ find anything which helped me!

thanks again for your time, ed



Doing that made disappear the error msg but now my project does NOT come up correctly anymore i.e I only see the text ie. no formatting

When you say this do you mean the css styles an/or images are not showing up but the text/layout is?

Hi William, thanks again

yes you are right: no pictures, CSS styles BUT text is ok! E.g. the menues are even expanding (as text only ; no styles).

It ‘must’ have to do the way I configured IIS –

when I run the site with the VS default Web server ALL is ok!
Only if I run with the ‘custom server’ (http://localhost/project) I do not get CSS styles/images!?

? do I need to tell IIS something about the ‘CSS environment!?!?

thanks for your time and advise, ed

If you are using the built in authentication for your site you will have to add some entries into your web.config file to allow them to be visible see



View the source of your page when it is loaded in the browser and take a look at the path to the css and or images does it look right?  Are there leading forward slashes in the paths (ie. /) if so you may be pointing to the wrong location for your images
and styles.  For any path you use that is handled by .NET code and or any ASP.NET control that has some kind of path property if you use (~/path/to/my/resource.jpg) like this .NET resolves the ~/ for you to the root of your site regardless if it’s in a virtual
folder or not see


Hi William, thanks

sorry for my ignorance … I guess my problem in the end is (as usual) a simple one … I just don’t see it!

Again: when running with the VS Web server ALL is ok; only when I run through IIS I don’t get the formatting. Below the source code – it is ecactly the same in both scenarios! I.e get the CSS info always from href="App_Themes/…..

1    <head><meta http-equiv="X-UA-Compatible" content="IE=7" /><link
"shortcut icon" href="Images/favicon.ico" /><title>
2    Eddie’s WEB site
3    </title><meta name="description" content="Eddie’s WEB site" /><meta
"keywords" content="capeliere capelière cap con" /><meta name="generator"
"My Web Pages Starter Kit 1.2.1" /><link

4    href="App_Themes/SwirlBlue/CustomControls.css" type="text/css" rel="stylesheet"
5    href="App_Themes/SwirlBlue/FormElements.css" type="text/css" rel="stylesheet" /><link

6    href="App_Themes/SwirlBlue/Navigation.css" type="text/css" rel="stylesheet" /><link

7    href="App_Themes/SwirlBlue/PageLayout.css" type="text/css" rel="stylesheet" /> ……

…. etc

any hint is appreciated, ed

after changing to IIS integrated mode and pick ‘static content’ option all is ok
thanks to all for your time, ed

Leave a Reply