I had a working project, a web service with a .vbproj_deploy project around it and a setup around that that produced an .msi file that worked like a champ.
I left to work on another project, and when I came back I started working on a new computer and had to get VS2005 installed there. Pulled in the old project from source safe and everything built correctly except this one part, where I was told it couldn't
find anything to assemble.
Then, going into source safe, I checked in what minor changes I'd made and the next time I loaded VS2005 it told me that deploy project did not have correct source safe binding anymore. I said go a ahead and try to build it.
then I get this error:
Error 1 Unable to copy file "\pagefile.sys" to "C:\_wrk\DateCalcProject\ErulesDatesService.vbproj_deploy\Source\pagefile.sys". The process cannot access the file '\pagefile.sys' because it is being used by another process. 1 1 ErulesDatesService.vbproj_deploy
Obviously this web deployment project is FUBAR. I will start over. There are two other web deployment projects in this solution, and the others work fine.
What I would like to know is what happened? What changed that made this guy first be unable to find assemblies and then to go totally off the map trying to copy pagefile.sys? I've read through the vbproj file multiple times and can't see anything there.
JustWantAnAn...
Member
78 Points
164 Posts
Can't find assemblies, then becomes can't copy pagefile.sys?
May 19, 2008 03:28 PM|LINK
I had a working project, a web service with a .vbproj_deploy project around it and a setup around that that produced an .msi file that worked like a champ.
I left to work on another project, and when I came back I started working on a new computer and had to get VS2005 installed there. Pulled in the old project from source safe and everything built correctly except this one part, where I was told it couldn't find anything to assemble.
Then, going into source safe, I checked in what minor changes I'd made and the next time I loaded VS2005 it told me that deploy project did not have correct source safe binding anymore. I said go a ahead and try to build it.
then I get this error:
Error 1 Unable to copy file "\pagefile.sys" to "C:\_wrk\DateCalcProject\ErulesDatesService.vbproj_deploy\Source\pagefile.sys". The process cannot access the file '\pagefile.sys' because it is being used by another process. 1 1 ErulesDatesService.vbproj_deploy
Obviously this web deployment project is FUBAR. I will start over. There are two other web deployment projects in this solution, and the others work fine.
What I would like to know is what happened? What changed that made this guy first be unable to find assemblies and then to go totally off the map trying to copy pagefile.sys? I've read through the vbproj file multiple times and can't see anything there.
this is the last version that was working:
<!--
Microsoft Visual Studio 2005 Web Deployment Project
http://go.microsoft.com/fwlink/?LinkId=55111
-->
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.60403</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5B1E7912-F76F-49E1-9A36-08C65118E2DC}</ProjectGuid>
<SourceWebPhysicalPath>..\WebService1</SourceWebPhysicalPath>
<SourceWebProject>{84A1ECE7-BDB0-4D45-89B8-2FCC6CEB786F}|WebService1\ErulesDatesService.vbproj</SourceWebProject>
<SourceWebVirtualPath>/ErulesDatesService.vbproj</SourceWebVirtualPath>
<SccProjectName>"%24/Adrules/ERulesDatesService/WebService1", OQSAAAAA</SccProjectName>
<SccLocalPath>..\..\..</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>MSSCCI:Microsoft Visual SourceSafe</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>.\Debug</OutputPath>
<EnableUpdateable>true</EnableUpdateable>
<UseMerge>true</UseMerge>
<SingleAssemblyName>ErulesDatesService.vbproj_deploy</SingleAssemblyName>
<UseWebConfigReplacement>false</UseWebConfigReplacement>
<ValidateWebConfigReplacement>false</ValidateWebConfigReplacement>
<UseExernalWebConfigReplacementFile>false</UseExernalWebConfigReplacementFile>
<VirtualDirectoryAlias>DateCalcService</VirtualDirectoryAlias>
<ReplaceExistingVirtualDirectory>true</ReplaceExistingVirtualDirectory>
<DeleteAppDataFolder>true</DeleteAppDataFolder>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<OutputPath>.\Release</OutputPath>
<EnableUpdateable>false</EnableUpdateable>
<UseMerge>true</UseMerge>
<SingleAssemblyName>ErulesDatesService.vbproj_deploy</SingleAssemblyName>
<UseWebConfigReplacement>false</UseWebConfigReplacement>
<ValidateWebConfigReplacement>true</ValidateWebConfigReplacement>
<UseExernalWebConfigReplacementFile>true</UseExernalWebConfigReplacementFile>
<VirtualDirectoryAlias>
</VirtualDirectoryAlias>
<ReplaceExistingVirtualDirectory>true</ReplaceExistingVirtualDirectory>
<DeleteAppDataFolder>true</DeleteAppDataFolder>
</PropertyGroup>
<ItemGroup>
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.vshost.exe" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.sln" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.csproj" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.user" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.obsolate" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*Copy of*" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.psd" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.cmd" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\obj\**\*.*" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.Publish.xml" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\test\**\*.*" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.aspx.resx" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.asax.resx" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.vbproj*" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\.svn\**\*.*" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.WebDeployment.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="BeforeMerge">
</Target>
<Target Name="AfterMerge">
</Target>
-->
<Target Name="AfterBuild">
<!--Web.config This replaces the entire Web.config and then deletes the unneeded files. -->
<Copy Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " SourceFiles="$(SourceWebPhysicalPath)\QA.config" DestinationFiles="$(OutputPath)\Web.config" />
<Copy Condition=" '$(Configuration)|$(Platform)' == 'Staging|AnyCPU' " SourceFiles="$(SourceWebPhysicalPath)\DEV.config" DestinationFiles="$(OutputPath)\Web.config" />
<!--Delete extra files -->
<Delete Files="$(OutputPath)\QA.config" />
<Delete Files="$(OutputPath)\QAWeb.config" />
<Delete Files="$(OutputPath)\DEV.config" />
<!-- <Delete Files="$(OutputPath)\PrecompiledApp.config" /> -->
<!-- <Delete Files="$(OutputPath)\bin\erulesdatesservice.asmx.cdcab7d2.compiled" /> -->
<Delete Files="$(OutputPath)\bin\erulesdatesservice.xml" />
</Target>
</Project>