Avatar of johnhardy
johnhardy
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Windows7 IIS and Dreamweaver

I am trying to get a website running with iis in windows 7 with Dreamweaver cs3.
I am using an access database.

(It was working correctly in XP and IIS but IIS in win7 is a lot different!)

I found this helpful page but it did not solve the problem
http://www.codeproject.com/Articles/43132/How-to-Setup-IIS-6-0-on-Windows-7-to-Allow-Classic

The error message I am getting is not informative to say the least,
"An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error."

I have created a  new application pool and applied it in IIS via to the site under
Content View - Advanced settings,
The local site has started to show the database content but if I go to
Features view Basic Settings under Pass-Through and test settings I get an error Invalid application path.
Can anyone say what may be causing this please?

I am beginging to  wonder if it is possible to create a .asp website in Dreamweaver CS3 in Windows 7 using iis6?

Many thanks
john
Adobe DreamweaverWindows 7Microsoft IIS Web Server

Avatar of undefined
Last Comment
johnhardy

8/22/2022 - Mon
Paul MacDonald

Do you get the same error / error message if you browse the site on the IIS server itself?  

Are there any other errors in the error logs on the IIS server?  

What if you try to open a page that's not the index/home page?

What if you try to open a page that doesn't access the database?
johnhardy

ASKER
Thanks paulmacd

Do you get the same error / error message if you browse the site on the IIS server itself?  
I am only getting the error message now on a page which sends a cdo mail

Are there any other errors in the error logs on the IIS server?  
I am new on IIS Server, how  can I find these?

What if you try to open a page that's not the index/home page?
Its OK now

What if you try to open a page that doesn't access the database?
Thats OK

My main concerns are:
The local site has started to show the database content but if I go to
Features view Basic Settings under Pass-Through and test settings I get an error Invalid application path.
and
The error message does not show any technical help details
ASKER CERTIFIED SOLUTION
Paul MacDonald

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
johnhardy

ASKER
Thanks Paul
Can you say where the event viewer is please?

I checked many pages with Browse and the only one bringing up the message is the cdo thank you page. I will investigate the reason for this later. The error message is the same.

I notice in The site Features view "Failed Request Tracing Rules has a red cross on it"
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Paul MacDonald

Event Viewer is found in roughly the same place on all Windows machines.  
Start -> Programs -> Administrative Tools -> Event Viewer
Alternately
Start -> Control Panel -> Administrative Tools -> Event Viewer

I agree this is likely a problem with the CDO control on that page.  It's not clear if you're running a Dreamweaver control or something else (like ASP or ASP.Net) so more information would be useful.
johnhardy

ASKER
Thanks you Padas
I am using win7 with iis6
What is data scrubbing please?

Re the Event Viewer There are quite a few Errors listed plus warnings
Browser
The master browser has received a server announcement from the computer NET-100-3 that believes that it is the master browser for the domain on transport NetBT_Tcpip_{AA323012-14CC-4D22-9382-DA10BA31CF12}. The master browser is stopping or an election is being forced.
Side by Side
Activation context generation failed for "C:\Windows\WinSxS\x86_microsoft.vc80.mfc_1fc8b3b9a1e18e3b_8.0.50727.163_none_0c187ef99ee1d25a\MFC80U.DLL". Dependent Assembly Microsoft.VC80.MFCLOC,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" could not be found. Please use sxstrace.exe for detailed diagnosis
DistributedCOM
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{0C0A3666-30C9-11D0-8F20-00805F2CD064}
DISK
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{0C0A3666-30C9-11D0-8F20-00805F2CD064}
Scott Fell

From what I read above, if you create a brand new asp page and the only thing on the page is below it will work?
<%
x="Hi there"
response.write x
%>

Open in new window

Then if you use your old cdo code it fails?

Please try the code from  http://www.paulsadowski.com/wsh/cdo.htm

There are multiple points of possible failure.  You should post your code and exact error messages.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
johnhardy

ASKER
Thanks padas
The above code works OK

The code below which fails with the following message:

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

 (slightly ammended) from the thank you page is:

The error message is always the same although at the moment the Thankyou.asp page is the only one failing locally.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Session("sess_name") = cStr(Request("name"))
Session("sess_myemail") = cStr(Request("myemail"))
Session("sess_description") = cStr(Request("description"))
Session("sess_telno") = cStr(Request("telno"))
%>
<%
message = message & "<table width=""600px"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
message = message & "<tr><td width =150>&nbsp;</td><td>&nbsp;</td></tr>"
message = message & "<tr><td colspan=2>Thank you for your message to  Marketing. We will be intouch shortly</td> </tr>"
message = message & "<tr><td>&nbsp;</td><td>&nbsp;</td></tr>"
message = message & "<tr><td>Enquiry From:</td> <td> "&Request.Form("name")&"</td></tr>"
message = message & "<tr><td>Your Email:</td><td>"&Request.Form("myemail")&"</td></tr>"
message = message & "<tr><td>&nbsp;</td><td>&nbsp;</td></tr>"
message = message & "<tr><td>Your Enquiry:</td><td>"&Request.Form("description")&"</td></tr>"
message = message & "<tr><td>&nbsp;</td><td>&nbsp;</td></tr>"
message = message & "<tr><td>Your telephone number:</td><td>"&Request.Form("telno")&"</td></tr>"
message = message & "</table>" 
Set MailObj=CreateObject("CDO.Message")
MailObj.Subject="Thank you for your Enquiry "
MailObj.From="xxxx@gmail.com"
MailObj.To=""&Request.Form("myemail")&""
'MailObj.bcc="xxxxx@gmail.com"
MailObj.bcc="info@yyyyyy.co.uk"
MailObj.HTMLBody = message



MailObj.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=1
'Name or IP of remote SMTP server
MailObj.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="auth.smtp.1and1.co.uk"
'Server port
MailObj.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 
MailObj.Configuration.Fields.Update
MailObj.Send
set MailObj=nothing
'Redirect after sending email
'Response.Redirect "ThankYou2.asp"

%>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000099">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div align="center"><img src="Images/Lepage-Blue.gif" width="612" height="76"></div>
          </td>
        </tr>
        <tr>
          <td nowrap><p align="center">&nbsp;</p>
              <p align="center"><font color="#660099" size="4" face="Verdana, Arial, Helvetica, sans-serif">Thank
                  you&nbsp;<font color="#CC9900"><strong><%= Session("sess_name") %></strong></font> for
                  your message. </font></p>
              <p align="center"><font color="#660099" size="4" face="Verdana, Arial, Helvetica, sans-serif"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We
                  will be contacting you very soon.</font></p>
              <p align="center">&nbsp;</p>
          </td>
        </tr>
        <tr>
          <td><p>&nbsp;</p>
            <p>&nbsp;</p>
            <p><font color="#660099" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Our
            Contact details:</strong></font></p>
            <p><font color="#660099" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><br>
                      </strong></font></p></td>
        </tr>
        <tr>
          <td><p><font color="#660099" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>xxxxx

          </strong></font><font color="#660099" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><br>
              <br>
              Telephone:&nbsp; From UK 123456</strong></font></p>
            <p><font color="#660099" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Telephone:&nbsp; From
                  </strong></font><br>
            </p></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

Open in new window

Scott Fell

Your problem is the smtp server info is not correct.  auth.smtp.1and1.co.uk fails.  When checking mxtoolbox, this works,  smtp.1and1.co.uk
Paul MacDonald

I was able to connect to auth.smtp.1and1.co.uk on port 25 using telnet.  The SMTP server there responded to my EHLO.   It's slow, but it's there.  It may be your CDO SMTP client is timing out waiting for a response.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
johnhardy

ASKER
Thanks very much for the help.

I will look into this asap and come back soon
johnhardy

ASKER
One problem here for me is that I cannot get the asp errors going to the screen it always come back with:

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

Previously in I would get an error message with details of the error and line numbers on screen.
Is there any way  I can get the errors messages back on screen.

In the above I wonder if the port numbers are correct now?
This page was working OK until I changes to Win7 and iis6.
Many thanks
John
Paul MacDonald

If you visit the page from the web server itself, you'll probably see the technical error messages.  Otherwise you have to tell the site to turn off Custom Errors so you can see the errors as compiled.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
johnhardy

ASKER
Thanks
Re:
"If you visit the page from the web server itself"
Can you pleasehow this is carried out
I visited the page turn off custom errors but this seems to concern asp.net rather than classic asp which I use.
Scott Fell

If you have your own server, you can log into your server and view your site from your servers browser directly.  If you have a shared service, you probably can't do this and will need to contact your host to turn on errors.  

http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-script-error-messages-no-longer-shown-in-web-browser-by-default
Paul MacDonald

In IIS, right-click on the page in question and select "Browse".  If there's a problem with the page, you'll get a more technical error message than the friendly message shown to external visitors.

ASP or ASP.Net, either language will show its errors the same way.  If the compiler can't suss out what the error is about you may need to go in and modify your code to give you hints about what is breaking and where.  Ideally, you'd do this from within an IDE like Visual Studio, but I realize that's not an option for you.
Your help has saved me hundreds of hours of internet surfing.
fblack61
johnhardy

ASKER
In IIS if I select Connections panel on the left side  pages do not show it seems only folders show.

I believe there may be some error coding which can be placed at the top of a troublesome page, do you know if that is correct?
johnhardy

ASKER
Well the Pain in the **** look like has final reached a conclusion.

I decided to put the files on a live test domain I have and finally received the error in the browser page.
I rectified the code
Changed
http://schemas.microsoft.com/cdo/configuration/sendusing", "1");
to
http://schemas.microsoft.com/cdo/configuration/sendusing", "2");

In the past I always developed in localhost perhaps I have to load the files earlier?
Anyway thanks for all the help I have learned a lot and will try not to forget.
Regards
John
johnhardy

ASKER
Many thanks for the excellent support,
Regards
John
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.