SunQuest
           ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 17th, 2003, 01:24 AM
jehanzeb_bs jehanzeb_bs is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 jehanzeb_bs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SCripting.FileSystemObject probelm

hi,
I havw written this code in ASP

Dim oFSO
Dim oTempFolder

Set oFSO = Server.CreateObject("Scripting.FileSystemObject")
Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder)

Response.Write "<br>Temporary Folder Name is " & oTempFolder.Name
Response.Write "<br>Temporary Folder Path is " & oTempFolder.Path

It hangs forever on the line
Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder)

However it works perfectly if I write the same code in VB Application. Can anybody tells me what's wrong in it.

Thanks in advance

Regards,
Jehanzeb

Reply With Quote
  #2  
Old July 17th, 2003, 01:40 AM
Uga Uga is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Moscow
Posts: 21 Uga User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In VBScript TemporaryFolder should be explicitly declared. Try adding the following:
Const TemporaryFolder = 2

Reply With Quote
  #3  
Old July 17th, 2003, 01:42 AM
jehanzeb_bs jehanzeb_bs is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 jehanzeb_bs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have tried this too, but still it hangs forever

Reply With Quote
  #4  
Old July 17th, 2003, 01:52 AM
Uga Uga is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Moscow
Posts: 21 Uga User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, this one worked on my computer (IIS 5.0, Win2k server):
<%
Dim oFSO
Dim oTempFolder
Const TemporaryFolder = 2

Set oFSO = Server.CreateObject("Scripting.FileSystemObject")
Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder)

Response.Write "<br>Temporary Folder Name is " & oTempFolder.Name
Response.Write "<br>Temporary Folder Path is " & oTempFolder.Path
%>

Reply With Quote
  #5  
Old July 17th, 2003, 02:06 AM
jehanzeb_bs jehanzeb_bs is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 jehanzeb_bs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It was working on my system, but from yesterday I am facing this problem. Can u tell me how I can view the version of IIS on my system. I am also using Win2K.

Thanks for cooperation,
Jehanzeb

Reply With Quote
  #6  
Old July 17th, 2003, 02:22 AM
Uga Uga is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Moscow
Posts: 21 Uga User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
While you are running IIS Manager press F1 for help and see Installing IIS section. The version is written there.

Reply With Quote
  #7  
Old July 17th, 2003, 02:27 AM
jehanzeb_bs jehanzeb_bs is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 jehanzeb_bs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for cooperation

Reply With Quote
  #8  
Old July 17th, 2003, 06:27 AM
jehanzeb_bs jehanzeb_bs is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 jehanzeb_bs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have debugged that code and founded that IIS can't create the "Scripting.FileSystemObject". Can u tell me what security settings I've to give to IIS so that it can create the object.

Thanks in advance,
Jehanzeb

Reply With Quote
  #9  
Old July 17th, 2003, 10:00 AM
jehanzeb_bs jehanzeb_bs is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 jehanzeb_bs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for you guys for cooperation.

I have sorted out the problem. I was facing because I have installed Nortrn AntiVirus and its "Script Blocking" was enabled.
Luckily I find material related to this problem in Microsoft Knowledgebase Article Q295375.

Reagrds,
Jehanzeb

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > SCripting.FileSystemObject probelm


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway