Is there a way to use BTSTask to add a non dll assembly to a BizTalk application? If I use the "AddReference" command it seems like it only allows you to add BizTalk assemblies?
Yes you can add any .NET assembly as resource and package it in the MSI. See this topic http://msdn.microsoft.com/en-us/library/aa561819(BTS.70).aspx
Related
I am using NLog for logging in my asp.net 4.5 website. I have used NLog 4.0. Now I need to use session variables in my logs. So i tries to use AspNetSession layout renderer. This layout renderer is included in Nlog.Web. I have added this dll and also under the extensions tag in NLog config file. But it gives the following error:
ArgumentException: LayoutRenderer cannot be found: 'aspnet-session'
I have also added NLog.extended dll and also under the extensions tag in NLog config file. But it also didn't help.
Please let me know what should i do.
You need to install NLog.Web assembly from NuGet by using the following command.
Install-Package NLog.Web
Added to project.json file for logging:
"Microsoft.Framework.Logging.NLog": "1.0.0-beta1"
The Framework.Logging.NLog depends internally upon NLog, which I tried installing via Nuget, project.json, Package console. It doesn't help.
Also wasn't able to find a way to configure NLog logging and a tutorial/guide to place the config sections of NLog.
NLog does not ship for CoreClr hence you need to define the dependency under aspnet50. Do look at the sample https://github.com/aspnet/Logging/blob/dev/samples/SampleApp/project.json
Are any/all dependencies included in a BizTalk exported application MSI?
Specifically any referenced assemblies in the GAC?
They can be if you add them to the Application in BizTalk Administrator before exporting the .msi.
When you do, be sure to check one of the "Add to the global assembly cache on MSI file import/install" options.
I just updated my website from MVC 4 to MVC 5.
Now when I want to run it on my web server instead of my development machine it does not work.
It think it is because I need to install the MVC 5 libraries on the server but I can't find them.
I downloaded WebMatrix 3 hoping it would provide a way to install it but it only gives me the ability to install MVC 4.
What should I install to be able to run a ASP.NET MVC 5 application?
(without installing Visual Studio 2013)
EDIT:
I disabled custom errors and eror what I have:
Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
EDIT 2:
I found out that the problem was due to one of my dependencies which was using the version 2.0.0.0 of razor.
When you deploy your app just make sure that all the assemblies are being deployed to your production environment in the bin folder. ASP.NET MVC is an xCopy deployment, so you don't have to install anything.
You might want to check that your Production environment has ASP.NET 4.0 and 4.5 registered.
MVC5 and future version of MVC doesn't require to installed on Windows Server. MVC5 app have everything as packages. You didn't need anything to install it.
What is required on server is copy of every library and assembly that you have used in your app. For fix this, Just make sure that everything on your bin folder is called same on server instead of server is looking for it's own GAC for assembly used in your app.
If you didn't found all the packages then you can install nuget packages on server by cmd.
The best is to do a Publish, right click on your project in Solution Explorer and select 'Publish'. Basically it will compile your solution and dump all the assemblies/artifacts to either your webserver, ftp or a local folder.
Make sure all your assembly references are being copied to the deployment directory. To do this you can change the <Reference...> tag in your .project file. Optionally, you can use visual studio's property setter to set the "Copy Local" property of each dll reference to "True".
I have to call functions from a custom dll from BizTalk orchestrations (similar to this solution Call a custom .NET component from BizTalk 2006). The dll calls functions of a third party dll, which uses some other third party dlls (we are using to communicate with a legacy system).
The article Global Assembly Cache Tool (Gacutil.exe) says that my best bet would be to "include" the referenced dll into the dll I put into the GAC, but I don't know how to do this from Visual Studio (2010).
Any ideas to get this work ?
It looks like putting them into the system PATH solved this problem.