Solved

Visual Studio 2008 Website not reflecting changes

Posted on 2013-12-13
3
413 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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 …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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