Solved

Visual Studio 2008 Website not reflecting changes

Posted on 2013-12-13
3
412 Views
Last Modified: 2013-12-13
I inherited a website that acts as a Vacation request workflow.  Each year, as the company announces the holidays for the next year, the website gets changed and republished.  I've done this for a couple of years, but this year republishing doesn't reflect the changes.

I've rebuilt it with the changes, published and restarted IIS, am I missing a step?

The only difference (that I can think of) is that this year we are using Windows 7 and in previous years XP.
0
Comment
Question by:urthrilled
  • 2
3 Comments
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 39717719
Is windows 7 the host server or the development enviroment?
if it is the host then  IIS versions are completely different (Windows 7 is IIS 7 whereas XP is IIS 5.1) and you will need to check that your site in configured to run in IIS 7.
0
 
LVL 4

Author Comment

by:urthrilled
ID: 39717791
The site resides in a Server 2003 environment with IIS 5.2

Our workstations use Windows 7.  I don't understand if I published the rebuilt site how it acknowledges the old dates and not the new ones?   I left the remaining dates (Christmas and New Years) and added the new holidays for 2014.

Here's the statement I changed

old:

        While startDate < endDate
            If (startDate.Date = CDate("11/27/13") OrElse startDate.Date = CDate("12/24/13") OrElse startDate.Date = CDate("12/31/13")) Then
                total += 0.5
            ElseIf Not (startDate.DayOfWeek = DayOfWeek.Sunday OrElse startDate.DayOfWeek = DayOfWeek.Saturday OrElse startDate.Date = CDate("1/1/13") OrElse startDate.Date = CDate("2/18/13") OrElse startDate.Date = CDate("5/27/13") OrElse startDate.Date = CDate("7/4/13") OrElse startDate.Date = CDate("9/2/13") OrElse startDate.Date = CDate("11/11/13") OrElse startDate.Date = CDate("11/28/13") OrElse startDate.Date = CDate("11/29/13") OrElse startDate.Date = CDate("12/25/13") OrElse startDate.Date = CDate("1/1/14")) Then
                total += 1.0
            Else
            End If
            startDate = startDate.AddDays(0.5 Or 1.0)

        End While

new:

        While startDate < endDate
            If (startDate.Date = CDate("11/26/14") OrElse startDate.Date = CDate("12/24/13") OrElse startDate.Date = CDate("12/24/14") OrElse startDate.Date = CDate("12/31/13") OrElse startDate.Date = CDate("12/31/14")) Then
                total += 0.5
            ElseIf Not (startDate.DayOfWeek = DayOfWeek.Sunday OrElse startDate.DayOfWeek = DayOfWeek.Saturday OrElse startDate.Date = CDate("1/1/14") OrElse startDate.Date = CDate("2/17/14") OrElse startDate.Date = CDate("5/26/14") OrElse startDate.Date = CDate("7/4/14") OrElse startDate.Date = CDate("9/1/14") OrElse startDate.Date = CDate("11/11/14") OrElse startDate.Date = CDate("11/27/14") OrElse startDate.Date = CDate("11/28/14") OrElse startDate.Date = CDate("12/25/13") OrElse startDate.Date = CDate("12/25/14") OrElse startDate.Date = CDate("1/1/15")) Then
                total += 1.0
            Else
            End If
            startDate = startDate.AddDays(0.5 Or 1.0)

        End While
0
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 39718034
If the site still works with the old dates, ti means that publish has not been successful in update your site. (This is nothing to do with code changeshown above, there may be issues with VS2008 dealing with older IIS versions though)

In VS, please rebuild solution and publish it again (as per instructions here. .
If it does not work, please send me the output window messages (when publishing) and any warnings when you rebuild solution.
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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

912 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

23 Experts available now in Live!

Get 1:1 Help Now