473,405 Members | 2,354 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,405 software developers and data experts.

How to Enable Anonmous Access to a File under a Site


Hi,
I need a help regarding configuring IIS programmatically using VB / VB
Script.
I have created a WebSite in IIS using VB and even enabled Windows
Authencation for that site.
But now, for a File and Folder alone, I want to enable the Anonymous
Access. I could not able to do that, I have tried many options.

This Exapmle scripts I got from Microsoft.com:
'Get a directory subordinate to the Web server root.
Set VDirObj = GetObject("IIS://MyComputer/W3SVC/1/Root/Vdir1/Dir1a")
'Overwrite the inherited value for write access
'by using the dot method equivalent to Put.
VDirObj.AccessWrite = True

'Save the changed value to the metabase.
VDirObj.SetInfo
I tried the same code in my scripts:

strFullVirtualDirectoryPath =
"IIS://localhost/W3SVC/3/Root/VPM/Menu.asp"

Set objWebFileOrFolder = GetObject(strFullVirtualDirectoryPath)
The object fails to create saying,
"Automation error
The system cannot find the path specified. "

The given path is right. I can able to create object till the Virtual
Directory, but not to its folder or any file inside Virtual Directory.

If any of you have any sample scripts or know how to do that pls help
me.

Thanks in Advance
Vivek

--
vikky_25
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message1039795.html

Jul 22 '05 #1
0 1029

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

Similar topics

7
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere...
4
by: Dan Avni | last post by:
I have a site that has been working for a few years now. the web site is using a DB Access DLL written in VB. the DB's connection string is passed to the DLL using the COM+ enable object...
3
by: Lyle Fairfield | last post by:
In a recent thread there has been discussion about Data Access Pages. It has been suggested that they are not permitted on many or most secure sites. Perhaps, that it is so, although I know of no...
4
by: Sheldon Penner | last post by:
I have been working my way through an ASP.NET tutorial and I find that any code that attempts to update an Access table evokes the error: "Operation must use an updateable query." A search of...
0
by: gabedog | last post by:
What would be a good (and safe) way to enable/disable a web site in a web farm that needs to come down for maintenance? Periodically, we have db folks that run db scripts. I'd like to put a back...
1
by: Jeremie Legault | last post by:
Hi, I have written an ASP.NET 2.0 application that uses Active Directory or ADAM to manage account users - the site has a page that allows people to create an account (much like any site). The...
0
by: Jeremie Legault | last post by:
Hi, I have written an ASP.NET 2.0 application that uses Active Directory or ADAM to manage account users - the site has a page that allows people to create an account (much like any site). The...
3
by: MLH | last post by:
Some sites I've rolled out mde's to allow user to press F-11 & bring up database window. Others do not. Anybody know what setting controls this? Strange is that the app is the same in each...
0
by: kpg* | last post by:
Hi all, I have a web service with two similar methods, one for production and one for testing. On the test method I enable session state so I can dump out debug files named with the session...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
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
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...

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.