|
|
 |
| 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

January 14th, 2005, 04:03 AM
|
|
Registered User
|
|
Join Date: Jan 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ASP Access Denied Error
I am trying use follow statement
Set objExcel = CreateObject("EXCEL.APPLICATION")
But Error "Permission Denied" returned.
Who can help me!!!!
Thanks!!
Jason
|

January 25th, 2005, 05:37 PM
|
|
Authorized User
|
|
Join Date: Jan 2005
Location: Kolkata, West Bengal, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
Please Follow these steps :
1. From command prompt type "dcomcnfg.exe"
2. You will see ‘Component Management’ window
3. Component Services --> Computer--> My Computer--> DComConfig
4. From the tree view select ‘Microsoft Excel Application’
5. Right-Click on it & select ‘Properties’
6. From the property window select the ‘Security’ tab.
7. Then for all the three options select ‘Customize’ Radio button (or according to your need) :)
8. Add ‘ASPNET’ user account to all the three
9. Give appropriate permission to them
10. Then click Apply.
Hope It Helps !!
Bhaskar Ghosh
|

December 14th, 2005, 03:08 AM
|
|
Registered User
|
|
Join Date: Dec 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am still getting a error "PERMISSION DENIED" even after adding ASPNET and gving it a permission
|

December 19th, 2005, 06:52 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2005
Location: Rotterdam, , Netherlands.
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Did you give write and read permissions on the directory in IIS
This is my junk I'm gona eat it
|

January 8th, 2008, 03:44 AM
|
|
Authorized User
|
|
Join Date: Jan 2007
Location: durban, Africa, South Africa.
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Hi, need help with this - i've done as the replies but can't get it going:
My inital error was Permission Denied.
I'm using Flowcentric which executes the script from the server added the ASPNET user but now i get a complete different error:
A scripting error has occurred in FG10120Save: Microsoft Excel cannot access the file 'C:\Documents and Settings\Default User\My Documents'. There are several possible reasons: • The file name or path name does not exist. • The file you're trying to open is being used by another program. Close the document in the other program, and try again. • The name of the workbook you're trying to save is the same as the name of another document that is read-only. Try saving the workbook with a different name.. For further details please check the event log.
Script code:
|

January 8th, 2008, 06:51 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,666
Thanks: 6
Thanked 9 Times in 9 Posts
|
|
DjKat's suggestion is what I would have said 9IMO stay away from the command prompt)
You are trying to write to a .xls file in some way are you? If so you will need more than read permissions.
Wind is your friend
Matt
|

January 11th, 2008, 04:12 AM
|
|
Authorized User
|
|
Join Date: Jan 2007
Location: durban, Africa, South Africa.
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Hi, i'm using flowcentyric which executes the scripts on the server but unsuccessfull - i'm not to sure what i'm doing wrong! It just hangs & writes nothing
Dim objXL
Dim File_name
'Option WScript
File_name="C:\Inetpub\wwwroot\fcParmalatTest\trans form\custom\test.xls"
Set objXL = CreateObject("Excel.Application")
Set wb = objXL.Workbooks.Add
Set ws = objXL.Worksheets(1)
r = 2
objXL.Visible = False
Set objConn = CreateObject( "ADODB.Connection")
Set resultSet = CreateObject ("ADODB.RecordSet")
objConn.Open fcCustom.Value(Process.Company, "Connections")
strSQL = "select id,ProcessID from dbo.fcEventArchive where EventHistID = 2523"
resultSet.Open strSQL, objConn, 1, 2
resultSet.MoveFirst
Do While Not resultSet.eof
ws.Cells(r, 1).Value = (resultset.fields(0).value)
ws.Cells(r, 2).Value = (resultset.fields(1).value)
resultSet.MoveNext
r = r + 1
Loop
'wb.Save
'ws.Save
WS.SaveAs(File_Name)
resultSet.Close
objConn.Close
Set resultSet = Nothing
Set objConn = Nothing
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |