473,412 Members | 4,957 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Server.CreateObject problem - ASP

Win 2003
IIS 6.0

My users got this error message trying to run a simple ASP application
(sending email using CDO). I have no problem ( with Admin permission):
Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/gsic_completion/lib/utility.ASP, line 75

The call to Server.CreateObject failed while checking permissions. Access is
denied to this object.

Tracing to the app, line# 75 shown below. Please help to set the
permission/config right.

Thanks

Bill

Dim objConfig ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields

line 75 -> Set objConfig = Server.CreateObject("CDO.Configuration")

Set Fields = objConfig.Fields
With Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort '
..Item(cdoSMTPServer) = "exchangeserver"
..Item(cdoSMTPServerPort) = 25
..Item(cdoSMTPConnectionTimeout) = 10
..Item(cdoSMTPAuthenticate) = cdoBasic
..Item(cdoSendUserName) = "web"
..Item(cdoSendPassword) = "net"
..Update

End With
Mar 20 '06 #1
4 7262
http://support.microsoft.com/default.aspx/kb/198432

--
blog: www.thinkingMS.com/pandurang
"Bill Nguyen" wrote:
Win 2003
IIS 6.0

My users got this error message trying to run a simple ASP application
(sending email using CDO). I have no problem ( with Admin permission):
Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/gsic_completion/lib/utility.ASP, line 75

The call to Server.CreateObject failed while checking permissions. Access is
denied to this object.

Tracing to the app, line# 75 shown below. Please help to set the
permission/config right.

Thanks

Bill

Dim objConfig ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields

line 75 -> Set objConfig = Server.CreateObject("CDO.Configuration")

Set Fields = objConfig.Fields
With Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort '
..Item(cdoSMTPServer) = "exchangeserver"
..Item(cdoSMTPServerPort) = 25
..Item(cdoSMTPConnectionTimeout) = 10
..Item(cdoSMTPAuthenticate) = cdoBasic
..Item(cdoSendUserName) = "web"
..Item(cdoSendPassword) = "net"
..Update

End With

Mar 22 '06 #2
Thanks but it won't work!
This err is specific to CDO. I think it has something to do with IIS
permissions than with anything else.

Bill
"Pandurang Nayak" <pandurangATthinkingmsDOT(nospam)com> wrote in message
news:38**********************************@microsof t.com...
http://support.microsoft.com/default.aspx/kb/198432

--
blog: www.thinkingMS.com/pandurang
"Bill Nguyen" wrote:
Win 2003
IIS 6.0

My users got this error message trying to run a simple ASP application
(sending email using CDO). I have no problem ( with Admin permission):
Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/gsic_completion/lib/utility.ASP, line 75

The call to Server.CreateObject failed while checking permissions. Access
is
denied to this object.

Tracing to the app, line# 75 shown below. Please help to set the
permission/config right.

Thanks

Bill

Dim objConfig ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields

line 75 -> Set objConfig = Server.CreateObject("CDO.Configuration")

Set Fields = objConfig.Fields
With Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort '
..Item(cdoSMTPServer) = "exchangeserver"
..Item(cdoSMTPServerPort) = 25
..Item(cdoSMTPConnectionTimeout) = 10
..Item(cdoSMTPAuthenticate) = cdoBasic
..Item(cdoSendUserName) = "web"
..Item(cdoSendPassword) = "net"
..Update

End With

Mar 25 '06 #3
pen

1.when cann't connect the smtp ,explore'll report a error that could not
access 'cdo.message' object. you maybe have a firewall or your smtp
server does not exist.
2.you have not enough access authorization.

--
pen
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 30 '06 #4
pen

Bellow is my example. I hope it will be helpful for you

Const
cdoSendUsingMethod="http://schemas.microsoft.com/cdo/configuration/sendusing"

Const cdoSendUsingPort=2
Const
cdoSMTPServer="http://schemas.microsoft.com/cdo/configuration/smtpserver"

Const
cdoSMTPServerPort="http://schemas.microsoft.com/cdo/configuration/smtpserverport"

Const
cdoSMTPConnectionTimeout="http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"

Const
cdoSMTPAuthenticate="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"

Const cdoBasic=1
Const
cdoSendUserName="http://schemas.microsoft.com/cdo/configuration/sendusername"

Const
cdoSendPassword="http://schemas.microsoft.com/cdo/configuration/sendpassword"

Dim objConfig ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields
Set objConfig = Server.CreateObject("CDO.Configuration")
Set Fields = objConfig.Fields

With Fields
..Item(cdoSendUsingMethod) = cdoSendUsingPort
..Item(cdoSMTPServer) = "smtp.163.com" ' change into a external SMTP
you have.
..Item(cdoSMTPServerPort) = 25
..Item(cdoSMTPConnectionTimeout) = 10
..Item(cdoSMTPAuthenticate) = cdoBasic
..Item(cdoSendUserName) = "zhixp_2008" 'this is my name in smtp.163.com

..Item(cdoSendPassword) = "12112182518" 'my password
..Update
End With

Set objMessage = Server.CreateObject("CDO.Message")
Set objMessage.Configuration = objConfig

With objMessage
..To = "pe*@liray.com.cn" 'addressee
..From = "zh********@163.com" 'addresser
..Subject = "CDO TEST" 'title
..TextBody = "Test CDO without SMTP which is setuped on your computer."
'Textbody
'.AddAttachment "C:\Scripts\Output.txt"'attachment
..Send
End With

Set Fields = Nothing
Set objMessage = Nothing
Set objConfig = Nothing

--
pen
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raúl Martín | last post by:
I´ve a function in asp that run correctly but If I tried to change it forasp.net in asp: xmlHTTP = CreateObject("Microsoft.XMLHTTP") And I thought to use this sentence for asp.net but the...
12
by: karen | last post by:
Hi all : this is going to be a long post. So i apologize in advance :) i am converting a java program in VB right now. I am a java programmer by trade. so i am no expert in this department. I...
28
by: Gil | last post by:
can i have a client pc trigger access.exe to open on the server side pc? i want to have the server run special functions and return the output to the clients without having the clients run the...
4
by: Andrew Hilton | last post by:
When you create an object in classic asp code, should you always use Server.CreateObject("ProgID")? Are there implications with stability (ie memory leaks) if you create COM objects in other ways...
14
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that...
7
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function Body_Onload() ' create the object Set obj = Server.CreateObject("UploadImage.cTest") ' use method of the object...
0
by: quintesv | last post by:
hi all, Running VS.2003 , framework 1.1. I have a COM object written in Delphi which im trying to call through ASP.NET. The COM object connects to a folder on another machine and opens a...
0
by: kwilliams1130 | last post by:
I am having a problem with data that is being posted to another server. The problem is I collect the data from our database through an .cfm file (and all data is correct), which then the data is...
1
by: ashish | last post by:
Dim oCon Err.Clear Set oCon = Server.CreateObject("ADODB.Connection") If Err.Number = 0 Then '// '// Open an ADODB.Connection to the folder URL '// oCon.Provider = "ExOLEDB.DataSource"
3
by: Sagar | last post by:
I am working on a project where Server.CreateObject is replaced with CreateObject all over the project. Though I know that this will improve performance in terms of Memory overlhead because of how...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.