Quantcast
Channel: biztalkdeployment Forum Rss Feed
Viewing all 1089 articles
Browse latest View live

New Post: Error deploying Virtual DIrectory

$
0
0
Perhaps someone can take benefit from my experience.

I got the same error "Cannot create a file when that file already exists." and here is what I did that fixed the issue.

I manually created a new virtual directory using the same settings which I have defined in the btdfproj file e.g: same VDir name, same physical path and same Application Pool.
Restarted the IIS.

Redeploy the MSI and it worked.

Tahir

New Post: CreateVirtualDirectory cannot find the path specified.

$
0
0
I'm trying to help solve a problem for another developer. He has an msi that deployed fine in several environments, but on one server it gets this error:
Target DeployVDirs:
                ...\BizTalkDeploymentFramework.targets(1701,5): error MSB4018: The "CreateVirtualDirectory" task failed unexpectedly.\r
                ...\BizTalkDeploymentFramework.targets(1701,5): error MSB4018: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)\r
               
The virtual directory is supposed to go under the Default Web Site.

As far as I can tell, the physical directory is present and in the correct place, and the service account that is doing the scripted deploy has the appropriate rights to it.

This is a production server, so there is a limited amount of testing I can do on it, and the msi doesn't have a problem deploying anywhere else.

Any ideas where to look for the source of this problem?

Thanks

New Post: automated build and deployment using TFS

$
0
0
Hi Tom,
Thanks for all valuable input .Can you please let me is it possible to integrate BTDF with TFS as I am working over the integrating BTDF with TFS .

Thanks
Abhishek

New Post: automated build and deployment using TFS

$
0
0
Hi Abhishek,

You can find the documentation here. If you get stuck somewhere please post a reply.

Thanks,
Tom

New Post: CreateVirtualDirectory cannot find the path specified.

$
0
0
It's definitely hard to diagnose when the same MSI deploys successfully on other machines. I've been trying to get a DirectoryNotFoundException out of CreateVirtualDirectory and cannot find a case where it happens. Even if I give it a bogus physical directory path, it happily creates it anyway. You don't have a stack trace anywhere in the deploy output?

What version of the Deployment Framework are you using?
What version of Windows Server (and thus IIS)?
Have you overridden the IISMetabasePath property in your .btdfproj?
What else is different or unique about IIS on this machine?

Here's an MSBuild project file that you can use to directly test the task (save as, say, CreateVDirTest.targets):
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <UsingTask AssemblyFile="C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.Tasks.dll" TaskName="CreateVirtualDirectory" />
  <UsingTask AssemblyFile="C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.Tasks.dll" TaskName="DeleteVirtualDirectory" />

  <Target Name="TestCreateVirtualDirectory">
    <CreateVirtualDirectory MetabasePath="IIS://localhost/w3svc/1/Root" Name="TestBTDF" Path="C:\Invalid" />
  </Target>

  <Target Name="TestDeleteVirtualDirectory">
    <DeleteVirtualDirectory MetabasePath="IIS://localhost/w3svc/1/Root" Name="TestBTDF" />
  </Target>
</Project>
Run MSBuild.exe CreateVDirTest.targets /t:TestCreateVirtualDirectory from an admin Command Prompt. You'll have to change the DLL paths to one of the installed app directories on the server.

Thanks,
Tom

New Post: Automated Build and deploy for BizTalk 2013 Applications

$
0
0
Hi Gnani,

You do need to install the Deployment Framework on the TFS build server because your BTDF build is in two steps -- build the BizTalk solution then build the BTDF MSI. In the build configuration you will end up building both the .sln and the .btdfproj. You can find the documentation on setting up TFS builds here.

You may need to install Visual Studio and possibly more components of BizTalk to get your .sln to build successfully (completely unrelated to the BTDF). For instance, I've used some of the EDI pipeline components in a custom pipeline, which forced me to install the EDI component of BizTalk on the build server.

Thanks,
Tom

New Post: CreateVirtualDirectory cannot find the path specified.

$
0
0
What version of the Deployment Framework are you using? - version 5.0

What version of Windows Server (and thus IIS)? - 2008 R2 (IIS 7)

Have you overridden the IISMetabasePath property in your .btdfproj? no - using Default Web Site

What else is different or unique about IIS on this machine? - Nothing I know of. It should be a clone of another production BizTalk server where virtual directory deployments have worked fine. I'm guessing something is different though, just trying to figure out where to look for it.

I'll give the project file a test. Thanks!

New Post: First time BTDF Deploy Error

$
0
0
I got the similar error. I'm using BizTalk 2013 and BTDF 5.1. After I installed the BTDF on the build server, the issue went away. This is not a prerequisite in the documentation. Perhaps the documentation needs to be updated.

"C:\Builds\10\CSIKomondor\CSI.Common.Build\Sources\CSI.Common.Deployment\Deployment.btdfproj (147): The imported project "C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk."

New Post: CreateVirtualDirectory cannot find the path specified.

$
0
0
TestCreateVirtualDirectory worked fine. I put the proj file and the dll in the same folder to test it. Are there any dependent files that that the dll could be trying to access? Maybe a permissions problem?

New Post: CreateVirtualDirectory cannot find the path specified.

$
0
0
It turned out that the root of the problem was an early (non-BTDF) version of the application was still installed on the server, but not deployed to BizTalk. Once it was removed, everything worked fine. It must have had some kind of hold on the virtual directory. The test project helped track down the problem.

Thanks for your work on this framework, and your quick answers on the discussion threads.

New Post: InitSettingsFilePath Not Set By BTDF

$
0
0
I think we've discussed this in other threads, but here was the solution:

Adding this line to btdfproj file.
<DeveloperPreProcessSettings>$(MSBuildProjectDirectory)\EnvironmentSettings\LOCAL_Exported_Settings.xml</DeveloperPreProcessSettings>   
My predecessors used a slightly non-standard name for the EnvironmentSettings files.

Neal

New Post: CreateVirtualDirectory cannot find the path specified.

$
0
0
You're welcome and thanks for the update. Glad to hear that you figured it out!

Tom

New Post: Getting Error when ToolsVersion value is set to 4.0

$
0
0
We are receiving the following error when ToolsVersion value is set to 4.0. It works when I remove ToolsVersion value ( default is 2.0) on my computer. Can someone please help me understand what is happening behind?

C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\BizTalkDeploymentFramework.targets(1744,5): error MSB4062: The "Microsoft.Sdc.Tasks.BizTalk2006.Application.Delete" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\Microsoft.Sdc.Tasks.BizTalk.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\DeploymentFrameworkForBizTalk\5.0\Microsoft.Sdc.Tasks.BizTalk.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Thanks!
Pavan

New Post: Getting Error when ToolsVersion value is set to 4.0

$
0
0
Hi Pavan,

It sounds like you are using an old version prior to the 5.0 release. If you're using a build server, make sure that you have the same version of the Deployment Framework installed there. What version do you have installed?

Thanks,
Tom

New Post: Automated Build and deploy for BizTalk 2013 Applications

$
0
0
Hi Tom,

I am trying to deploy biztalk 2013 application using TFS 2012 automated build. I have created Successful build with Sol and .btdf proj in build proj list.

Now to automated Deploy my understanding is
I have to Copy MSI to stage environment from build server, undeploy the existing app, uninstall MSI, Install new MSI and than Deploy it. So i created four batch file with psexec and its ok. but I get into trouble when sometime the uninstall MSI asks for reboot because Bistalk is working or when undeploy fails. So I got this article which has further detail of the steps
http://geekswithblogs.net/RobBowman/archive/2013/02/12/biztalk-automated-multi-server-deploy.aspx
Specially this workflow
http://gwb.blob.core.windows.net/robbowman/Windows-Live-Writer/a78213296850_9183/image_22.png

he also mentined about the powershell script he has created which I am not able to access. I would appreciate if you could provide some assistance with deploying the biztalk msi automatically using TFSbuild

Note- BTW MSI and batch files were copied already during Build application ( by setting drop location as stage env in tfsbuild) . In Deploy Build defination I am just executing four batch file.

New Post: BTDF 5 not supporting BizTalk 2013

$
0
0
Hi, Please let me know whether BTDF5 supports Biztalk 2013 in VS 2012. I have installed but there is no deployment project shown in 'new projects'. Is there any fix for this? Thanks

New Post: Do Not Update BTSNTSvc.exe.config file while BTDF deployment

$
0
0
Hi

As BTDF deployment updates the Biztalk configuration file (BTSNTSvc.exe.config) on the server where deployment is done, My requirement is , It should not update the config file (BTSNTSvc.exe.config) while deployment is being done.

Please suggest an appropriate approach to achieve the same.

Thanks

New Post: BTDF 5 not supporting BizTalk 2013

$
0
0
You can use the stable V5.1 beta release here for BizTalk 2013.

Thanks,
Tom

New Post: Using Biztalk Deployment Framework with multiple BizTalk Applications

$
0
0
Hi,

We had a similar requirement for our project where we had one solution containing multiple BizTalk Applications. I came up with a workaround so that the Deployment Framework Visual Studio add-in still worked with multiple .btdfproj in one solution. Taking the above example:

Solution "mySolution"
---Deployment (folder)
------Deployment.btdfproj
---BizTalk (folder)
------"Application1" (Folder)
-----------Deployment (folder)
--------------Deployment.btdfproj
-----------Orchestration
-----------Schemas
-----------Transforms
-----------etc
------"Application2" (Folder)
------"Application3" (Folder)

There was one .btdfproj per application for managing deployment, undeployment, creating msi etc. for each application. At the solution level, I also added a master Deployment.btdfproj file under the Deployment folder. This is the .btdfproj file that the Visual Studio add-in will invoke.

In the master Deployment.btdfproj file, it has a list of targets that matches those that the add-in invokes, e.g. "Deploy", "Undeploy", "Installer". Under each target, it calls MSBuild to subsequently call the "child" .btdfproj in each application in the order defined to carry out the corresponding actions. Below is a sample master Deployment.btdfproj file:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Installer" ToolsVersion="4.0">
  <PropertyGroup>
    <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <ApplicationListToDeploy>..\BizTalk\Application1\Deployment\Deployment.btdfproj;..\BizTalk\Application2\Deployment\Deployment.btdfproj;..\BizTalk\Application3\Deployment\Deployment.btdfproj</ApplicationListToDeploy>
    <ApplicationListToUndeploy>..\BizTalk\Application3\Deployment\Deployment.btdfproj;..\BizTalk\Application2\Deployment\Deployment.btdfproj;..\BizTalk\Application1\Deployment\Deployment.btdfproj</ApplicationListToUndeploy>
  </PropertyGroup>
  <Import Project="$(DeploymentFrameworkTargetsPath)BizTalkDeploymentFramework.targets" />
  <ItemGroup>
    <BizTalkHosts Include="MyHost" />
  </ItemGroup>
  <Target Name="Deploy">
    <MSBuild Projects="$(ApplicationListToDeploy)" Targets="Deploy" Properties="Configuration=$(Configuration)" />
  </Target>
  <Target Name="Undeploy">
    <MSBuild Projects="$(ApplicationListToUndeploy)" Targets="Undeploy" Properties="Configuration=$(Configuration)" />
  </Target>
  <Target Name="Installer">
    <MSBuild Projects="$(ApplicationListToDeploy)" Targets="Installer" Properties="Configuration=$(Configuration)" />
  </Target>
  ... etc.
  </Target>
</Project>
For example, when the Deploy button of the add-in is clicked, it will deploy all the applications in the solution in the defined order.

Hope this helps.

Kit

New Post: Do Not Update BTSNTSvc.exe.config file while BTDF deployment

$
0
0
ANy answer to the above question ?
Viewing all 1089 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>