Solved

ASP are not working all of a sudden on a Windows 2008 server and WMSvc that has stopped and won't restart?

Posted on 2014-11-26
18
147 Views
Last Modified: 2014-11-28
ASP are not working all of a sudden on a Windows 2008 server and WMSvc that has stopped and won't restart?

I don't know what to do.  Need help so I can get my ASP scripts working again.  :(

When I try to go to any of my ASP scripts, it then seems to redirect to another site (of ours).  Very odd.  I don't know what's going on and need assistance.

If someone can help, I'd greatly appreciate it.

Thanks
Gary
0
Comment
Question by:garymgordon
  • 9
  • 8
18 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40468218
You said the scripts don't work but when you go to an asp page you are reditected?

Do you have a web.config file that you can download and look at.   Can you see any redirection there?

Do you have any pages that have a response.redirect that you did not see before?

Can you add a <% response.end%> at the top of the page and not be redirected?  Then move that to just below the starting <html> tag and keep moving down the page until you are redirected.  That could help pinpoint the issue if it is on the page.

Manually look through your db to see if you have any injections you do not recognize and script tags like <script> in your db data.  That could signal an injection.
0
 

Author Comment

by:garymgordon
ID: 40468322
1. I set up a simply ASP script and this only had an ASP date that it needed to resolve.  It was basically a test ASP script. And when I attempt to go to it at  http://web.njcu.edu/its/testasppage.asp ... instead of displaying the simple content, it forwards me to http://www.njcu.edu/  (which is on a different server all together).  There's no database involved, just a simple and basic ASP page.

2. If I try going to any other page or application that uses ASP on our web.njcu.edu server, it seems like it is trying to find the 404 page on the server (but not able to) .. and in turn, it forwards the person to http://www.njcu.edu/.  The odd thing is, the page exisits .. so it's not that the page isn't there .. it's just happens when you try to go to any ASP page.

3. When I looked in the log file, it seemed to indicate that there was an entry showing it failed to find the 404 page.  So I just wanted to also mention this (which is part of #2 above).

4. This just seemed to happen recently?  Could it be due to a Windows update on the server?

5. When I look in IIS, I see that the Web Management Service is not running.  And when I click to start it .. it says:
Failed to start Web Management Service.  The service changed to an unexpected state.  So it won't start.

6. I was having an issue with McAfee as well today, so I uninstalled it from the server (temporarily).  And I noticed this entire thing after that point.  But I'm not sure if it was there before hand.  It did seem like a strong coincidence.  So pretty much after that was when this whole thing seemed to start as a problem.

7. I'm not thinking it's an injection, but based upon what I mentioned above, what do you think?

PS:  See my off line message I sent to you.

Thanks,
Gary
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40468400
That page is sending a 302 redirect.  When I go to  http://web.njcu.edu/its/ or  http://web.njcu.edu/ there is a simple javascript redirect.  If I go to a fake page I get the 404 on http://web.njcu.edu/.  I think you either have a web.config tarting that specific page or you have some asp/vb or asp/js code that is creating the 302.
0
 

Author Comment

by:garymgordon
ID: 40469176
Scott,

I have a redirect for web.njcu.edu to http://www.njcu.edu/it/.  I want this redirect so anyone that goes to the root of the site (not any other page within the web.njcu.edu server, just the root web.njcu.edu alone).  But I even tried disabling the redirect script in the index.html file for web.njcu.edu and .. it still redirects to www.njcu.edu.

I removed the web.config files (in the wwwroot folder) and it still redirects.  I removed the web.config file in other folders in which I was trying to connect to, and it still redirects to  www.njcu.edu.

It doesn't appear to be this, but I, of course, could be wrong.

I don't suppose (tomorrow) you'd be willing to jump into a Join.me session with me and let me know show you the server, show you the settings, test some changes with you, etc.?  Would this be possible?

Maybe this would help.

Thanks,
Gary  PS:  Have a nice holiday (if you celebrate Thanksgiving .. here in the US).
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40469273
Can you post the the complete code of  http://web.njcu.edu/its/testasppage.asp  or look to see if you have code that looks similar to below on your page
<%
Response.Status=”302 Found”
Response.AddHeader “Location”,”http://njcu.edu”
%>

Open in new window

I would be surprised if it is something in your web.config because it seems like it is targeting the one page.  If you place a new blank page on that same folder does it redirect?

Try a blank page like this and name it test2.html and then again as test2.asp.  Does it get redirected?
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>test</title>
</head>
<body>
testint 1..2..3..
</body>
</html>

Open in new window



Look at your iis to see if there are any redirects.
http://www.iis.net/configreference/system.webserver/httpredirect
http://blog.pluralsight.com/iis7-redirect-windows-server-2008
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40469282
As far as a join.me session goes, let's try and keep it here so it benefits others.   Or you can click on the hire me button in anybody's profile and offer to hire out for one on one service.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 40469519
For what it's worth, the IP address just brings up a 404 page.
0
 

Author Comment

by:garymgordon
ID: 40469777
Scott,

The code in the testasppage.asp is:

<%@ LANGUAGE="VBSCRIPT" %>
<!--- You should get --->
<!--- current system date and time --->
<HTML>
<HEAD>
<TITLE>ASP Test Page</TITLE>
</HEAD>

<BODY>
Today's date and time is <%=Now()%>.
</BODY>
</HTML>

If I create an .html page (in the folder of  web.njcu.edu/its  .. it works fine.)  See http://web.njcu.edu/its/testasppage.html

I even went into the Web Services Manager and turned off "HTTP Redirection" to see what would happen.

Now .. (after disabling http redirection) when I go to:

http://web.njcu.edu/joblistings/hr/ .. it displays:

Service Unavailable
HTTP Error 503. The service is unavailable.

When I go to http://web.njcu.edu/its/testasppage.asp, it still redirects to  http://www.njcu.edu/home.aspx

I was hoping that you could "take a look" at the server (using Join.me) because evidently I'm missing something that I was hoping you might see and that it would be easier for you to take a look .. than assuming that I'm actually seeing what you want me to see and doing what you are telling me.

I didn't think I'd have to hire you one on one to just help in this manner.  I would greatly appreciate it if we could jump into Join.me session.

Gary

PS:  Dave, that is odd.  I just emailed out Network people about the IP question.  I'm finding it very odd that my web.njcu.edu server (when you go to an asp page) .. redirects you to another server and a completely different website at  www.njcu.edu.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40469978
You still have a meta refresh on http://web.njcu.edu/joblistings/hr/  (there is javascript code to do the redirect) and you have something targeting the specific uri  http://web.njcu.edu/its/testasppage.asp.

Try changing the name from testasppage.asp to testing123.asp and see if you get the redirect.  

The idea with Experts Exchange is to have multiple Experts assist you with your issue.  I feel our role is to help you help your self.  We volunteer our time and I am probably like most in multi tasking my own projects and answering multiple questions here as time allows. When we start getting into one on one time that could easily take 30 to 60 minutes or more. I think that is out of the scope of what we are doing.   What if at  the suggestion of an Expert while in a one on one session, something goes wrong after you make an adjustment?  Do we leave you hanging or spend another hour helping to get things back.  There are multiple types of risk involved as well as time and that is why I make the suggestion of hiring somebody.    I hope this makes more sense.

It may take some trial and error, but we should be able to help you here.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:garymgordon
ID: 40470408
Scott,

There's no meta refresh on web.njcu.edu/joblistings/hr/.  There is a piece of asp code in the index.file in the hr folder that is:   <!--#include virtual="/joblistings/hr/applications/JobListingManager/inc_joblistingmanager.asp" -->

Here's the full code of  web.njcu.edu/joblistings/hr/index.asp

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>NJCU: Human Resources : Job Listings</title>
<style type="text/css">
<!--
body,td,th {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 12px;
      color: #000000;
}
body {
      background-color: #FFFFFF;
      margin-left: 0px;
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
}
-->
</style></head>

<body>
<!--#include virtual="/joblistings/hr/applications/JobListingManager/inc_joblistingmanager.asp" -->


</body>
</html>


If you're seeing a meta refresh on web.njcu.edu/joblistings/hr/ I'm presuming it could be coming from somewhere else. Any thoughts??

I also copied  http://web.njcu.edu/its/testasppage.asp and made it  http://web.njcu.edu/its/testingasppage.asp and it still redirects, yet the code on this page is:  

<%@ LANGUAGE="VBSCRIPT" %>
<!--- You should get --->
<!--- current system date and time --->
<HTML>
<HEAD>
<TITLE>ASP Test Page</TITLE>
</HEAD>

<BODY>
Today's date and time is <%=Now()%>.
</BODY>
</HTML>

and .. in the "its" folder, there's a web.config file that contains this code:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <remove name="CGI" />
        </handlers>
    </system.webServer>
</configuration>

That's all I see.

What else?
Thanks,
Gary
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40470432
By testing out different urls, I think you have a redirect set up for anything in the folder (with the url) web.njcu.edu/joblistings/hr/

If you go to something that I am pretty sure is not there like http://web.njcu.edu/joblistings/hr/xyz/abc/123  you can see it redirects. That means there is a redirect set up looking for http://web.njcu.edu/joblistings/hr  If change the "hr" folder http://web.njcu.edu/joblistings/hrx/xyz/abc/123 then no redirect.

In this case, I don't think it is on the page.   It would have to be in IIS/web.config file and that could be top level.

You were originally asking about,  http://web.njcu.edu/its/testasppage.asp.  And that folder (its) does not seem to have the same type of redirect as the hr folder.  If you don't see any asp code that redirects, then look at the code for any include file.

If no redirects are in the code and you don't see one on the web.config, the next thing is to check for a custom error page that redirects.  Maybe you don't have classic asp turned on and it is going to an error page that is redirecting.

Make sure that classic asp is in fact turned on.
http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
0
 

Author Comment

by:garymgordon
ID: 40470466
Scott,

I had original said .. "WMSvc that has stopped and won't restart".  

Could this be related?  And if so, what do I need to do so it will restart.  When I try to click start it says:

"Failed to start Web Management Service." "The service changed to an unexpected state."

Would this have anything to do with it?

Also, when I look at my Error Pages in IIS, under Actions I click on "Edit Feature Settings ...".  Then it is set to "Custom error pages."  And the Default Page Path .. for the error page is set.  And the Path type is "File.".  But under Alerts it says "This feature configures IIS error pages. To learn more about how to configure custom ASP.NET error pages, click here."

The code in the Error page includes:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>NJCU 404 Error Page. We apologize that the page or file cannot be found.</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
  BODY { font: 12px verdana, san-serif; }
  H1 { font: 24px verdana, san-serif; }
  H2 { ffont: 18px verdana, san-serif; }
  A:link { color: red }
  A:visited { color: maroon }
</STYLE>
</HEAD><BODY>

<div style="text-align: center;"><a href="http://www.njcu.edu/"><img src="http://www.njcu.edu/images/NJCU_logo-569-96.jpg" /></a></div>

<div style="width: 520px; margin: 0 auto;"><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1 style="text-align: justify;">We apologize that the resource (page or file) that you're looking for could not be found.</h1>
<p style="font-size: 13px; margin-bottom: 25px; margin-top: 20px;">For more information, please visit the main <a href="http://www.njcu.edu/" target="_blank">NJCU website</a>.</p>
<hr>
<p style="font-size: 14px; font-weight: 700;">Please allow us to help you with this issue:</p>
<ul>
<li>First, make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. If not, please try again.</li>
<li>If you reached this page by clicking a link, contact the <a href="websupport@njcu.edu">NJCU Website Administrator</a> by email, to alert them that the link is incorrectly formatted. Any additional information you can provide would be appreciated.<br /><br /><br />
</li>
<li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
</ul>
<hr>
</TD></TR></TABLE>
</div>
<br />
<div style="margin-bottom: 300px;">&nbsp;</div>
<span style="color: #dddddd;">c:\Windows\Help\iisHelp\common\404b.htm</span><br />
<br />
<br />
<br />
</BODY></HTML>

I'm hoping with this information, it might indicate what I need to do?  Please let me know.

Gary
0
 

Author Comment

by:garymgordon
ID: 40470502
It's also odd, that if I try going to:

http://web.njcu.edu/its/gmg/sdfsdf.sdfsd  - since the page doesn't exist, it displays the 404 error page. This is how it should work.

And if I try to go to  http://web.njcu.edu/its/gmg/testsdfsdfsdf.asp   - since the page doesn't exist, it also displays the 404 error page, which is good, and this is how it should work.

But if I try to go to http://web.njcu.edu/its/gmg/test.asp  .. even though this file "does" exist,

But if I go to  http://web.njcu.edu/its/gmg/test.asp  .. since the page DOES exist, and it is a working ASP page, it automatically forwards me to  www.njcu.edu  (which is the home page on a totally different server.

Where on earth could this be set .. that it's controlling this .. but only for ASP pages.

Thoughts?
Gary
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40470668
It looks like it is for specific files.  You can see the results below where  a non existent page gets a 404 http://web.njcu.edu/its/gmg/testabc.asp.  That means there is either vb script in the asp code that is doing the redirection (or in an include file) or there is redirection set up in iis/webconfig.  Did you look at the top level web.config?

http://web.njcu.edu/its/gmg/test.asp 

HTTP/1.1 302 Redirect
Content-Type: text/html; charset=UTF-8
Location: http://www.njcu.edu
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Fri, 28 Nov 2014 17:16:14 GMT
Content-Length: 142

Open in new window

http://web.njcu.edu/its/gmg/testabc.asp 

HTTP/1.1 404 Not Found
Content-Type: text/html
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Fri, 28 Nov 2014 17:17:24 GMT
Content-Length: 1909

Open in new window


http://web.njcu.edu/its/gmg/

HTTP/1.1 302 Redirect
Content-Type: text/html; charset=UTF-8
Location: http://www.njcu.edu
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Fri, 28 Nov 2014 17:19:19 GMT
Content-Length: 142

Open in new window

0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 40470679
The problem may be on the main server.  When I did a reverse IP for both web.njcu.edu and njcu.edu, I can see the subdomain is at both IP's.  That means you probably have the redirection set up on the other server if you can not find it on the web.njcu.edu server.

njcu.edu (130.156.5.27).
130.156.5.27
njcu.edu
video.dmotorworks.com
web.njcu.edu
www.njcu.edu

web.njcu.edu (130.156.5.18).
aliengroup.bigcartel.com
web.njcu.edu
0
 

Author Comment

by:garymgordon
ID: 40470682
Scott,

Where would this be on the "main" www.njcu.edu server?  Where should I look?

Gary
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 40470706
Ultimately it would be in a web.config file.   You can also look in iis for each of the folders. I would start with the top level.

http://www.iis.net/configreference/system.webserver/httpredirect
0
 

Author Closing Comment

by:garymgordon
ID: 40471040
Thank you very much.
Part of the issue was a redirect in a base config (not web.config) file under Windows, etc.
The second part of the problem was due to McAfee and changes in the registry.
All fixed now.  Had to involve Microsoft.
Gary
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

708 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

13 Experts available now in Live!

Get 1:1 Help Now