473,796 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server.CreateOb ject 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.CreateOb ject Access Error

/gsic_completion/lib/utility.ASP, line 75

The call to Server.CreateOb ject 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.Configurati on
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields

line 75 -> Set objConfig = Server.CreateOb ject("CDO.Confi guration")

Set Fields = objConfig.Field s
With Fields .Item(cdoSendUs ingMethod) = cdoSendUsingPor t '
..Item(cdoSMTPS erver) = "exchangeserver "
..Item(cdoSMTPS erverPort) = 25
..Item(cdoSMTPC onnectionTimeou t) = 10
..Item(cdoSMTPA uthenticate) = cdoBasic
..Item(cdoSendU serName) = "web"
..Item(cdoSendP assword) = "net"
..Update

End With
Mar 20 '06 #1
4 7283
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.CreateOb ject Access Error

/gsic_completion/lib/utility.ASP, line 75

The call to Server.CreateOb ject 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.Configurati on
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields

line 75 -> Set objConfig = Server.CreateOb ject("CDO.Confi guration")

Set Fields = objConfig.Field s
With Fields .Item(cdoSendUs ingMethod) = cdoSendUsingPor t '
..Item(cdoSMTPS erver) = "exchangeserver "
..Item(cdoSMTPS erverPort) = 25
..Item(cdoSMTPC onnectionTimeou t) = 10
..Item(cdoSMTPA uthenticate) = cdoBasic
..Item(cdoSendU serName) = "web"
..Item(cdoSendP assword) = "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" <pandurangATthi nkingmsDOT(nosp am)com> wrote in message
news:38******** *************** ***********@mic rosoft.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.CreateOb ject Access Error

/gsic_completion/lib/utility.ASP, line 75

The call to Server.CreateOb ject 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.Configurati on
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields

line 75 -> Set objConfig = Server.CreateOb ject("CDO.Confi guration")

Set Fields = objConfig.Field s
With Fields .Item(cdoSendUs ingMethod) = cdoSendUsingPor t '
..Item(cdoSMTPS erver) = "exchangeserver "
..Item(cdoSMTPS erverPort) = 25
..Item(cdoSMTPC onnectionTimeou t) = 10
..Item(cdoSMTPA uthenticate) = cdoBasic
..Item(cdoSendU serName) = "web"
..Item(cdoSendP assword) = "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
cdoSendUsingMet hod="http://schemas.microso ft.com/cdo/configuration/sendusing"

Const cdoSendUsingPor t=2
Const
cdoSMTPServer=" http://schemas.microso ft.com/cdo/configuration/smtpserver"

Const
cdoSMTPServerPo rt="http://schemas.microso ft.com/cdo/configuration/smtpserverport"

Const
cdoSMTPConnecti onTimeout="http ://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout"

Const
cdoSMTPAuthenti cate="http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e"

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

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

Dim objConfig ' As CDO.Configurati on
Dim objMessage ' As CDO.Message
Dim Fields ' As ADODB.Fields
Set objConfig = Server.CreateOb ject("CDO.Confi guration")
Set Fields = objConfig.Field s

With Fields
..Item(cdoSendU singMethod) = cdoSendUsingPor t
..Item(cdoSMTPS erver) = "smtp.163.c om" ' change into a external SMTP
you have.
..Item(cdoSMTPS erverPort) = 25
..Item(cdoSMTPC onnectionTimeou t) = 10
..Item(cdoSMTPA uthenticate) = cdoBasic
..Item(cdoSendU serName) = "zhixp_2008 " 'this is my name in smtp.163.com

..Item(cdoSendP assword) = "1211218251 8" 'my password
..Update
End With

Set objMessage = Server.CreateOb ject("CDO.Messa ge")
Set objMessage.Conf iguration = 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\Out put.txt"'attach ment
..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
6592
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 server don´t response right. xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
12
2073
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 have written the following three class: 1.icoCORE_test 2.icoMINDB_test
28
4847
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 functions itself.
4
10676
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 in IIS? We use Javascript for our ASP coding, using a mixture of Server.CreateObject() and new ActiveXObject(). The web server hangs occasionally (once every 2-3 months) and we were wondering if this might be the culprit... Thanks!
14
7043
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 sql server resides on is not reachable. The error is different depending on the connection string that I use. If I use the following connection string: "server=192.1.1.1; Initial Catalog=master; uid=The_User; password=The_Password; Connect...
7
6210
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 Body_Onload = obj.cTestDelete
0
1835
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 connection to a foxpro database in that folder. I have a problem with even accessing that path through SYSTEM.IO.File.EXists and Peter Bromberg suggested
0
2639
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 saved to an .xml document and posted to another server though an .asp file. The problem is the other server is either not receiving the data (it says it exports without an problems on our end) or it is not receiving the data correctly. The only...
1
6991
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
7054
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 the object creation happens with Server.CreateObject, I would like to create 'visible scenarios' that i create with code to show people that '"look. here's the difference". Is it possible ? I will create a page with 2 calls, 1 with...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10187
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10018
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.