Solved

Visual Studio 2005 not building web site

Posted on 2007-11-14
10
860 Views
Last Modified: 2013-12-17
I have a web site I'm building in Visual Studio 2005.

However, when I select Build or Rebuild, all I get is:

------ Rebuild All started: Project: R:\WebApps\Dashboard\, Configuration: Debug .NET ------
Validating Web Site

Validation Complete
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

It clearly doesn't actually build the website. If it did, it would have the line:

Building directory '/Dashboard/'.

Between the two about Validating. It would also spit out some errors, which I know are there.

So far, I've tried a number of things to fix this:
1.    Created a new site, and copied all the content into it (in case it was the .sln or .suo file causing the problem)
2.    Reset all the settings in Visual Studio (Tools | Import and Export Settings ...) I tried both C# and Web development settings. However, I did not entirely expect this to work as settings apply to all projects and...
3.    I loaded another web project, and tried building that - it worked fine. The other project was on the same web server as the problem project
4.    I deleted all the files in the .Net temp folder for this project (at %systemroot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files). After restarting VS 2005, the problem was still there.

Any ideas? This is really frustrating. Although the project will build on the server when the first page is requested after an update, any compilation errors are only ever presented one at a time, which makes the whole development/debug process very slow.

Help me please!
0
Comment
Question by:Cyber-spy
  • 4
  • 4
  • 2
10 Comments
 
LVL 11

Expert Comment

by:cmhunty
ID: 20280498
Not an ideal solution but may get you going - can you copy all your items to another folder, create a new website in VS2005 and then add existing items and select all?

0
 
LVL 11

Accepted Solution

by:
cmhunty earned 350 total points
ID: 20280507
Does the solution consist of just the one web project? Can you put a new web.config file in there to ensure this hasn't been messed up?
0
 
LVL 33

Expert Comment

by:raterus
ID: 20280582
Two things you can try,

1.  Under the VS toolbar, hit "Build" | "Configuration Manager", is the "Build" checkbox checked next to your website in the release you want.

2.  Go to the "property pages" of your website.  Have you accidently unchecked "Build Web site as part of solution", under the "Build" options.
0
 
LVL 12

Author Comment

by:Cyber-spy
ID: 20280701
raterus
Point 1 you suggested is OK - it is checked.
Point 2 is strange - the menu link to 'Property pages' in the 'View' menu is greyed out, but I'm not sure why. Any ideas?

cmhunty
I've already tried copying all the files into a new project, but to no avail - the problem stayed. I haven't tried the web.config replacement yet (you normally get an error when running a web app if this is corrupt) but I'l try it soon

Thanks for the responses guys!
0
 
LVL 33

Expert Comment

by:raterus
ID: 20280734
I get to "property pages" by right-clicking my website node in the solution explorer (usually on the far right in visual studio)
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 12

Author Comment

by:Cyber-spy
ID: 20280942
raterus
That worked (to open Property Pages). However, the "Build Web site as part of solution" option is checked.

cmhunty
It seems it was the web.config file. I excluded the original, and created a new one, and it all started to work again. I copied the lines from old file to the new one a section at a time, recompiling as I went.

I turns out that this is the line that makes the difference (with obvious changes to protect the innocent!):

<identity impersonate="true" userName="domainaccount" password="somethingsecure"/>

I wouldn't have thought this impersonation would be used during a build.
I've given the account modify access to the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dashboard folder, and it has read access to the rest of the path to this folder by being a member of the local Users group on my PC.
It obviously works OK on the live server, as the site compiles and runs there.

Any ideas what folders this account needs access to in order to allow compilation on my PC?
0
 
LVL 11

Expert Comment

by:cmhunty
ID: 20281249
That's strange. If you set impersonate to false, does that still build? Trying to work out whether the problem is with the whole entity or whether its a problem with the impersonation itself.
0
 
LVL 12

Author Comment

by:Cyber-spy
ID: 20281553
Yep, it builds OK if I just change impersonate to false.

As I've said, I've tried to make sure the domain account that's being impersonated has all the permissions it needs to do the job, both on the web server and my PC.

I just tried adding it to the local Administrators group - I even went as far as logging off and back on again in order to ensure the group membership change had been recognised, but it still doesn't work.

Very strange.

Any other ideas would be most appreciated.
0
 
LVL 11

Expert Comment

by:cmhunty
ID: 20281582
Sorry, I've got no more suggestions why this may be happening. At least it's working now! ;-)
0
 
LVL 12

Author Closing Comment

by:Cyber-spy
ID: 31409181
Thanks guys, both of you, for your help.
I'll have to work out how the impersonate tag affects the build process, but that's a job for another time!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Two different visual studio versions 3 23
Server Error 11 47
Advice on Xojo as a development tool over VB. 4 40
How can my static class become undefined?? 8 21
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now