Removal of virus removed ability to use Vault

If you are having a problem using Vault, post a message here.
Post Reply
CityOfOrlando
Posts: 24
Joined: Tue Aug 01, 2006 2:18 pm
Contact:

Removal of virus removed ability to use Vault

Post by CityOfOrlando » Sun Jun 09, 2013 4:46 pm

Hi,

This is not regarding a "work" computer, but my home computer where I also use Vault.

I was blessed with a very nasty virus. Techs were able to remove it, but now I can't connect to Vault. I have Windows 7, Vault Pro version 5.1.1. Error I'm getting is

"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the temp directory is denied. Identity 'NT AUTHORITY\NETWORK SERVICE' under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the user doesnt have access to system temp directory, you will not be able to compile. Use Path.GetTempPath() API to find out the temp directory location."

Following that advice and also trying c:Windows\temp only gets me the following error.

"Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'."

There was more html, with the title being "Object reference not set to an instance of an object."

I can't afford any more delays, so I'm working without a net. I really hate that. I hope someone can help me out.

Thanks,

JT

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Removal of virus removed ability to use Vault

Post by lbauer » Mon Jun 10, 2013 6:34 am

Could you tell us a little more about your setup?

Are you using just the Vault Client, or integration with Visual Studio?
Where are you seeing the error?


Do you have a Vault Server on your machine or are you connecting to a Vault Server on a different machine?

If you Vault Server is installed on the machine that had the virus you might check out these links:

http://stackoverflow.com/questions/5423 ... -is-denied
http://social.msdn.microsoft.com/Forums ... 46870d8a4/

Another is to uninstall and reinstall Vault, keeping the databases. The installer should set the proper permissions.
Linda Bauer
SourceGear
Technical Support Manager

CityOfOrlando
Posts: 24
Joined: Tue Aug 01, 2006 2:18 pm
Contact:

Re: Removal of virus removed ability to use Vault

Post by CityOfOrlando » Mon Jun 10, 2013 8:27 am

Hi,

I use both the client and also the Visual Studio plug-in. After I enter my credentials to log in it goes off and tries to connect and after about 5-7 seconds I see that first message. The Vault server is on my machine. The leading answer at the first link indicates that I should reinstall IIS. There are 32-bit and 64-bit versions of .NET 2.0 and .NET 4.0. I just ran aspnet_regiis -lv and it shows that all are installed except the 32-bit version of .NET 2.0. Is that the particular one your service is using?

Interestingly, the 32-bit v2.0 of aspnet_regiis sees itself installed, but 64-bit v4.0 doesn't see 32-bit v2.0 IIS installed.

The other link just talks about giving NETWORK SERVICE the necessary access to whatever tmp folder is identified, which I've already done.

Thanks for your help.

CityOfOrlando
Posts: 24
Joined: Tue Aug 01, 2006 2:18 pm
Contact:

Re: Removal of virus removed ability to use Vault

Post by CityOfOrlando » Mon Jun 10, 2013 1:20 pm

Okay, so here's what I've tried. I ran aspnet_regiis -iru for 32-bit version of .NET 2.0. I specified "-iru" because I didn't want existing 4.0 application pools reverting to 2.0. The implication was that they would all use the newly installed version if I just did "-i". That didn't help, and it still was only detected by that version and not by 4.0 version of aspnet_regiis. I reinstalled both the client and server portions of Vault. I first did the client and it made no difference. After I did the server, it now gives me this error when trying to connect:

"Unable to connect to http://[My Machine Name]/VaultService. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>Compilation Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/VaultService' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i>Compilation Error</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

<b> Description: </b>An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
<br><br>

<b> Compiler Error Message: </b>CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.dll' -- 'Access is denied. '<br><br>
<b>Source Error:</b><br><br>
<table width=100% bgcolor="#ffffcc">
<tr><td>
</td></tr>
<tr>
<td>
<code><pre>

[No relevant source lines]</pre></code>

</td>
</tr>
</table>

<br>

<b>Source File:</b>
   <b>Line:</b> 0
<br><br>
<br><div class="expandable" onclick="OnToggleTOCLevel1('compilerOutputDiv')">Show Detailed Compiler Output:</div>
<div id="compilerOutputDiv" style="display: none;">
<br><table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>

c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe" /t:library /utf8output /R:"C:\windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\08034340\001e3ad6_798acb01\DragnetLib.DLL" /R:"C:\windows\assembly\GAC_64\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\52c10fd3\00c11be8_798acb01\DragnetServiceLib.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\windows\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\419c6fdb\00ee4ce9_798acb01\DragnetControlsLib.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\82eba3af\00889fef_57ecca01\ICSharpCode.SharpZipLib.NET20.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\6793dcff\00789cd8_798acb01\SGAuth.DLL" /R:"C:\windows\assembly\GAC_64\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\65fdebea\002c61dd_798acb01\VaultPluginLib.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\windows\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\dc80d8b6\00bebdea_84c0ca01\Interop.SourceSafe2005TypeLib.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\5779fd7c\00ff2fdc_798acb01\VaultServiceBase.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\windows\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\d49d152f\00bebdea_84c0ca01\AjaxControlToolkit.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\f41c67b1\00a211ee_798acb01\VaultService.DLL" /R:"C:\windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\7c83ad39\00ee4ce9_798acb01\InlineEditExtender.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\3bb34c8d\00bebdea_84c0ca01\Interop.SourceSafe6TypeLib.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\d02bcaa6\00f108d5_798acb01\VCDiff.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\a100f236\0094eae6_798acb01\VaultServiceSQL.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\e34a8afc\00ee4ce9_798acb01\VaultWebLib.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\a63c8a44\002c61dd_798acb01\DragnetSQLService.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\windows\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\1e0a28de\002c61dd_798acb01\DragnetServiceAPI.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\d2bf1578\00a5cdd9_798acb01\vs.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\23128326\0097a6d2_798acb01\VaultLib.DLL" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\a9548617\00c11be8_798acb01\VaultServiceAPILib.DLL" /R:"C:\windows\assembly\GAC_MSIL\System.Web.Extensions.Design\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\assembly\dl3\d8a7aa64\002c61dd_798acb01\SosService.DLL" /out:"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.0.cs" "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.1.cs"


Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.5420
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.

error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.dll' -- 'Access is denied. '
</pre></code>

</td>
</tr>
</table>



</div>

<script type="text/javascript">
function OnToggleTOCLevel1(level2ID)
{
var elemLevel2 = document.getElementById(level2ID);
if (elemLevel2.style.display == 'none')
{
elemLevel2.style.display = '';
}
else {
elemLevel2.style.display = 'none';
}
}
</script>
<br><br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456

</font>

</body>
</html>
<!--
[HttpCompileException]: (0): error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.dll' -- 'Access is denied. '
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
at System.Web.Compilation.BuildManager.CompileGlobalAsax()
at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
[HttpException]: (0): error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.dll' -- 'Access is denied. '
at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
-->
--."



It appears as though you're doing some type of runtime compilation and are attempting to write DLLs to certain folders, but your application doesn't have permission to do so. Are you temporarily mapping a folder to the drive letter R:? That's not currently permanently mapped.

I'm going to continue experimenting, but I'd rather have a definitive set of steps to follow or a list of things to attempt. I don't want to just go around turning things on and off.

Any more suggestions?

Thanks,

JT

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Removal of virus removed ability to use Vault

Post by lbauer » Mon Jun 10, 2013 2:11 pm

We wish we had a definitive answer, but we're not sure of all that's changed on the machine.

Could you send me a copy of the Vault installation log?

It's called vault_install.log and is in your user's temp directory.

Also, I'd suggest we schedule a remote session to take a closer look. Email me at support at sourcegear.com attn: Linda

HS 228157
Linda Bauer
SourceGear
Technical Support Manager

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Removal of virus removed ability to use Vault

Post by lbauer » Wed Jun 12, 2013 3:03 pm

CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\vaultservice\83f802e0\c5a7253\App_global.asax.dew6exgh.dll' -- 'Access is denied. '
This error indicated there was a problem accessing the .NET Framework Temporary Internet files directory.

The problem was resolved by uninstalling Vault Server and reinstalling, running the installer As Admin.
Linda Bauer
SourceGear
Technical Support Manager

CityOfOrlando
Posts: 24
Joined: Tue Aug 01, 2006 2:18 pm
Contact:

Re: Removal of virus removed ability to use Vault

Post by CityOfOrlando » Wed Jun 12, 2013 3:53 pm

Additional note: I had previously tried "repairing" the installation of the Vault Server, and did not specifically do it as an "administrator", though I was logged in with an account with administrator privileges. I don't know if repairing would have fixed the problem, but as Linda said, uninstalling and reinstalling worked beautifully, and making sure not to remove the database and then allowing it to keep the database upon installation made it look like there had never been a problem.

Kudos to Linda and all the rest of the excellent team at SourceGear who always treat me and my cohorts right and seem to do it with ease!

Thank you!

JT

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Removal of virus removed ability to use Vault

Post by lbauer » Fri Jun 14, 2013 11:46 am

Thanks for the kind words. Glad we were able to resolve the problem. :D
Linda Bauer
SourceGear
Technical Support Manager

Post Reply