Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2007, 03:39 PM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default OLE-DB

Hei!

I am using OLE-DB, but I do get an error msg;

The account that is being used to access the page does not have access to the HKEY_LOCAL_MACHINE\SOFTWARE\ODBC registry key.

My app has been ok until suddenly this error displayed. Can you explain this? Tank you for your attention!

Mvh
grstad :~)

Internet has become favorable with that tool...thank you Tim Berners-Lee!
__________________
Internet has become favorable with that tool...thank you Tim Berners-Lee!
 
Old January 25th, 2007, 04:28 PM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...it comes into my mind that I have just updated VB-script via Microsoft update-page. Does that matter..?

Internet has become favorable with that tool...thank you Tim Berners-Lee!
 
Old January 25th, 2007, 08:25 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a permissions issue.
What is your operating system? 2003, I bet.
The update probably had some security patches. You might need to open permissions up a bit on the registry, or run as a user who has permissions.

Woody Z
http://www.learntoprogramnow.com
 
Old January 26th, 2007, 10:34 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hei!

The permission question is solved I think. I have now the previous version of VB-script.

But when using cdonts(newMail) it seems that I am missing a .dll?

Feiltype:
Serverobjekt, ASP 0177 (0x800401F3)
Ugyldig klassestreng.
/M/s.asp, linje 156

Do you know how to update my XP 2002 regarding .dll's and MDAC. Is that what I need?

Mvh
grstad :~)





Internet has become favorable with that tool...thank you Tim Berners-Lee!
 
Old January 26th, 2007, 11:52 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not to strong with Norwegian, but I think that is the "The call to Server.CreateObject failed. The request object instance Cannot be created.
" error message.

This can also be a permissions issue. The IUSR account potentiall might not have permissions to access the Directories and files of cdonts (although I am not certain it would apply) or the registry entries for cdonts.
How do you know you are missing a dll? It might not be registered properly as well. I don't recall anything about MDAC and cdonts - maybe someone else here knows about that - but I do recall there is a separate install for cdonts. I haven't done that in a long time.

What I suspect (since this all just happened after an update) is the permissions. Much of what is made available in each update is security patches, and therefore things like what you are experiencing can often be traced to that.

Woody Z
http://www.learntoprogramnow.com
 
Old January 26th, 2007, 12:33 PM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...about the .dll; as far as I have read now, the win XP do not include the cdonts. This w3schools says use cdo;

<%
    Set cdoConfig = CreateObject("CDO.Configuration")

    With cdoConfig.Fields
        .Item(cdoSendUsingMethod) = cdoSendUsingPort
        .Item(cdoSMTPServer) = "<enter_mail.server_here>"
        .Update
    End With

    Set cdoMessage = CreateObject("CDO.Message")

    With cdoMessage
        Set .Configuration = cdoConfig
        .From = "[email protected]"
        .To = "[email protected]"
        .Subject = "Sample CDO Message"
        .TextBody = "This is a test for CDO.message"
        .Send
    End With

    Set cdoMessage = Nothing
    Set cdoConfig = Nothing
%>

so I am trying that now. But what am I to type in instead of "<enter_mail.server_here>" in the script. I do run my script locally (IIS). Do you know that? What will my SMTP server path be?

Mvh
grstad :~)




Internet has become favorable with that tool...thank you Tim Berners-Lee!
 
Old January 26th, 2007, 03:19 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am not experienced in this area. I believe you need to have smtp set up on the same box as the IIS.
Sorry I can't be of much help. Perhaps it would be good to start a new thread with a better title to attract an expert on this.

Woody Z
http://www.learntoprogramnow.com
 
Old January 28th, 2007, 09:25 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...I am getting an error-msg and Microsoft says;

"The account that is being used to access the page does not have access to the HKEY_LOCAL_MACHINE\SOFTWARE\ODBC registry key."

But can it be possible that I shall give any anonym iusr access to the registry? Besides, I am not using an ODBC!

Mvh
grstad :~)

Internet has become favorable with that tool...thank you Tim Berners-Lee!





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS OLE DB error frank.svs SQL Server DTS 0 July 18th, 2007 03:41 AM
If any one knows How to develop ole db anjicafe Visual C++ 0 June 15th, 2005 09:01 PM
Err with OLE Db Connection DARSIN General .NET 2 June 9th, 2005 11:21 PM
OLE DB Driver knowledge76 Access VBA 2 April 21st, 2005 11:34 AM
Connecting to Access via OLE-DB mairejo Access 3 October 26th, 2004 02:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.