Cannot Delete Shadow Folder

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
Lance.Marrano
Posts: 6
Joined: Fri Sep 22, 2006 3:37 pm

Cannot Delete Shadow Folder

Post by Lance.Marrano » Fri Oct 20, 2006 12:50 pm

We are having problems getting our Shadow Folders to update, so thought we'd delete and re-create. Upon trying to delete, we got the following error:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path "D:\Inetpub\wwwroot\VaultService\VaultShadowFolder\web.config" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlDocument.Save(String filename)
at VaultShadowFolder.VaultShadowFolderService.DeleteWorkingFolderAssociation(String strServerWebPath, Int32 repID, ShadowFolderAssociation sfa)
at VaultShadowFolder.VaultShadowFolderService.RemoveShadowFolderAssociation(Int32 repID, ShadowFolderAssociation association)
--- End of inner exception stack trace ---

The possible "trigger" for this issue is that we enabled SSL yesterday (new server). We have it required for the VaultService, but not the VaultShadowFolder application (didn't know what it would affect). Per one of the other messages, we have checked down in our AllUsers/ApplicationData/Microsoft/RSA/MachineKeys to make sure Everyone has read and execute permission.

I couldn't find any special SSL instructions in the Knowledgebase.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Fri Oct 20, 2006 1:23 pm

Could it be that the shadow folders were in use at the time? Did you try removing those folders while Vault was running and/or users connected?

Your SSL connections are working well otherwise for everyone?

Can you send a the shadow folder log file and a Vault Server Log to me using either the private function here or send it to beth at sourcegear.com and reference this post?

To find the Shadow Folder's log file, look in the temporary directory of the user the web service runs as. Usually this is the ASPNET user, whose temp folder is something like C:\Documents and Settings\<your machine name>\ASPNET\Local Settings\Temp. If you have configured the Shadow Folder service to run under an impersonated account, check that user's Local Settings\Temp folder.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Fri Oct 20, 2006 3:17 pm

One more thing to try. Open up a browser and type in this address:
http://<name of server>/VaultService
That is the path that shadow folders use. If it does not work, then something is in the way of the path.

One thing it could get in the way is if you only have the ssl port enabled and not the regular http port that you were using before. Both ports need to remain open for the shadow folder to continue working here.

You can also check what you have configured in the web.config file for the shadow service which is normally found C:\Inetpub\wwwroot\VaultService\VaultShadowFolder. The path you are looking for will look something like:
<add key="shadowfolder_vaultserver" value="http://<servername>/VaultService" />
Besides the path you will want to see that it has http instead of https.

Lance.Marrano
Posts: 6
Joined: Fri Sep 22, 2006 3:37 pm

Post by Lance.Marrano » Fri Oct 20, 2006 3:59 pm

Beth wrote:One more thing to try. Open up a browser and type in this address:
http://<name of server>/VaultService
That is the path that shadow folders use. If it does not work, then something is in the way of the path.

One thing it could get in the way is if you only have the ssl port enabled and not the regular http port that you were using before. Both ports need to remain open for the shadow folder to continue working here.
It is true that I configured https to be required. Can I not not require users to connect through https?
Beth wrote: You can also check what you have configured in the web.config file for the shadow service which is normally found C:\Inetpub\wwwroot\VaultService\VaultShadowFolder. The path you are looking for will look something like:
<add key="shadowfolder_vaultserver" value="http://<servername>/VaultService" />
Besides the path you will want to see that it has http instead of https.
So can I go in manually and set the value attribute of this connection string to "https"?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Mon Oct 23, 2006 9:52 am

Your users can connect using https without you requiring it, but they can also then not use it.

It will not work properly using https for shadow folders.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Oct 24, 2006 3:17 pm

Did you receive my email I sent as well?

Locked