Solved

Visual Studio 2008 Website not reflecting changes

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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