views:

151

answers:

0

I am attempting to use a virtual directory on my Windows XP machine that has IIS 5.1 installed. I have configured the virtual directory as "When connecting to this resource, the content should come from: A share located on another computer." I typed the network directory in the box (ex. \comptername.companyname.com\sharename), and in the Connect As dialog I specified my company Windows Active Directory login and password--the same one I login with to my company each day when I begin work. In IIS, after making these selections, I am able to browse the virtual directory and see the files, so it seems to be configured correctly with no password issues and the account I am using to connect seems to have access and not be locked out. I am also able to successfully access files using the share when I directly access the file in a browser (ex. http://localhost/virtualDirectoryName/fileName.inc).

However, when I access a web page that uses a server-side include file that points to this same virtual directory (ex. <!-- #include virtual="/virtualDirectoryName/fileName.inc" -->), I get this error:

Parser Error Message: The referenced account is currently locked out and may not be logged on to.

So it seems that this problem only occurs for the server-side include usage. Even after I get that error, I can continue to successfully use the share in other ways, but just not when used as a server-side include. What is causing this error? Given that I must continue to use this server-side include in my web page, how do I resolve this "referenced account is currently locked out" error so that my web page will load successfully?

(I know server-side includes are not ideal, but I need answers that apply within that context of server-side include usage--thanks for understanding)