"Incorrect Format" Reference Error While Building Web Deployment Project In TeamCity
Nov 17, 2010
I began setting up a TeamCity server a couple days ago for use in automated testing and CI. We mainly do VB.net web apps and up until now, it had been checking out things and building just fine.
A problem came up when I tried to add actual deployment into the mix. I saw this article: [URL]
referenced all over the place as a good guide, so I followed the steps relating to setting up a Web Deployment project and rigging TeamCity to run it. Basically, it recommends setting up a new build configuration in VS2010 called "Deployment" which builds the Web Deployment project, then creating a build configuration in TC that targets it.
The issue is that the web deployment project won't compile when run under TeamCity. The regular build works just fine, but if I set MSBuild to use the build configuration that includes the Web Deployment project, it crashes halfway through and gives an error about attempting to load the System.Data.OracleClient assembly in an incorrect format. I assume this means a 32-bit/64-bit error, especially since my development machine is a 32-bit box, and the build server is 64, but I don't know why this is happening, especially when the regular build works, and nothing in my project involves using an Oracle database.
I saw in the log that there's a warning about missing reference assemblies for the 4.0 framework, so I headed off to the MS website and downloaded the SDK, but that didn't change anything. At this point, I'm stuck, and I didn't see anything already here on Stack Overflow that looked quite like this. I'll attach the log below. Have I missed something simple?
[10:46:05]: Project "MyTools.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build target(s)):
[10:46:05]: [Project "MyTools.sln.teamcity.patch.tcprojx" (TeamCity_Generated_Build target(s)):] Project "MyTools.sln" (Rebuild target(s)):
[CODE]...
View 1 Replies
ADVERTISEMENT
Jun 21, 2009
When i am creating a setup project and building it then i am getting a setup file using which if i install then it is getting installed to single user only i want the setup to build run for every user in that system and the users can access it.
View 1 Replies
Jun 22, 2009
I have a project that I am attempting to deploy. In my project I was using a SQL Express DB and after my first build I installed on my test PC only to find that it was going to make me install SQL Express which I defiantly do not want so I decided to scrap the DB.
I excluded the DB from the project, when into the project properties pages and removed all references to SQL and system.Data, Went into the code and removed all the "Imports" statements for SQL and Data and commented out all the SQL DB code. I then tried another build and had the same results. I started looking at the files and then I realized I did not change the app.config file. I went into it and deleted out the connection string entry. I built the project again only to have the same result. I cannot seem to see what could still be referencing SQL. Isn't commented code ignored?
View 3 Replies
Nov 8, 2005
I got "Unrecoverable build error" when building setup project.I try the solution in [URL].. but did not work out.
View 1 Replies
May 3, 2010
My pc is 32bit and run vs2008.Once I try to install my windows app into a client laptop which is 64bit, I got an error said that
An attempt was made to load a program with an incorrect format
View 4 Replies
Dec 7, 2010
I have a batch file. It includes two lines, as follows: pkgmgr /n:unattend.xml pause I have run this batch file manually and it works (installs IIS on the local machine). But when I try to run it in code I get an error: "An attempt was made to load a program with an incorrect format". Here is my code to run the batch file:
[Code]...
View 2 Replies
Apr 25, 2011
I have 2 projects, one built in VB.NET and another in C#.NET. I want to use certain functionality of VB.NET into C#.NET and hence I have added the dll file of VB.NET solution into C#.NET as a reference by browsing the dll from my system. Say dll name for VB.NET is myData.dll. In my C#.NET project I am trying to declare it as a namespace i.e. "using myData;" and its giving me an error of "Type or namespace name could not be found"
View 1 Replies
Nov 3, 2009
i'm developing an application vb.net with mssql server as database. on my pc it works. but i don't know how to make it works on my customer's pc.anybody have some tutorial regarding the creation of a setup and deployment project with ms sql server.my first doubt is: how can i determinate the right connection string?
View 1 Replies
Mar 4, 2012
I am trying not to become intimidated or give up.I created a simple database and added stored procedures to read the data on a Windows form using Visual Basic in VS 2010.First I tried the Data Grid Example and all worked, I was able to view the data using a connection string to call the Stored procedure.I have stepped it up a notch by trying to bind data to form controls and I am getting this error message when I try to navigate through the data.
System.NullReferenceException was unhandled
[code].....
View 2 Replies
May 7, 2012
Have built a project and associated it with a Setup&Deployment Project. The S&D project needs to contain 2 main folders (under User's Desktop) with various formats of files (xmls, txts, dlls) inside them and several subfolders. How can i copy/import these 2 folders and there sub-files/folders into my s&d project?
When adding them in the usual way, they are copied and defined a source path onto the current pc. You can understand what errors this might create when an another targeted pc does not contain those files to the exact location. Is there any way to copy them locally or somehow import them?
View 5 Replies
Mar 14, 2011
I was tried to working with session. I have a login page, when user click the login button. i have save the User name and Password in the session. below are the code snippet on yhe login event:
[Code]...
View 5 Replies
Jul 16, 2010
I have a strange problem in my VB.NET project when I want to compile it as x64. If I set the target CPU to Any CPU, it will be fine and on x64 systems it will run as x64. But if I set the target CPU to only x64, my project will show up some error/warnings and won't compile at all, here are them:
Error 1 : An attempt was made to load an assembly with an incorrect format
Warning 2 : Possible problem detected while building assembly 'x': Referenced assembly 'mscorlib.dll' targets a different processor
Warning 3 : Possible problem detected while building assembly 'x': Referenced assembly 'System.Data.dll' targets a different processor
Warning 4 : Possible problem detected while building assembly 'x': Referenced assembly 'System.EnterpriseServices.dll' targets a different processor
This is very strange, those are system assemblies and my project is .NET Framework 2.0. How they can run when my application is set to any CPU but not at x64 only?!
View 2 Replies
Nov 4, 2010
however, i'm copying this directly from the book in its example format and still getting an error.
FormatException was unhandled
Input String was not in correct format
Public Class Form1
[Code].....
View 2 Replies
Oct 15, 2011
I have a problem with building a project. When I build a project and when I create .exe file, I cannot run it on other computers.There is an error: "The application failed to initialize properly (0x0000135). Click OK to terminate the application.".ca i have any chance to solve this error without installing framework 3.5
View 2 Replies
Jul 20, 2009
I have a problem with building a project. When I build a project and when I create .exe file, I cannot run it on other computers. There is an error: "The application failed to initialize properly (0x0000135). Click OK to terminate the application.". When I install .NET framework on the computer, than there is no this error. Is there any chance to create a file that will run on the other computers without installing the .NET framework?
View 8 Replies
Feb 3, 2010
We are trying to write an application that uses the NServiceBus library in a VB.NET environment. We've been stymied by errors similar to the following: Reference required to assembly 'NServiceBus,Version=2.0.0.1071, Culture=neutral, PublicKeyToken=9fc386479f8a226c' containing the implemented interface 'NServiceBus.IMessageHandler`1'. Add one to your project.Our project already includes references to NServiceBus.dll and NServiceBus.Core.dll from the same NServiceBus 2.0 RC2 distribution.
[Code]...
Any ideas about how to solve this problem? (And, yes, my preferred solution is switching to C#, but no, that's not an acceptable one at the moment.)
View 2 Replies
Feb 20, 2012
I am successfully using a dll reference in VB.NET project. When I export the application to another PC by using a deployment setup, the application does not start at all. I have included the dll file inside the deployment setup so that this file is copied in the application folder. If I remove the dll file from the deployment setup, the application starts normally.I was wondering how I should set the properties of the reference in the .Net project. I am attaching a view of the references dialog where the used reference is highlighted.
View 4 Replies
Nov 23, 2009
System.InvalidOperationException was unhandled.
An Error occurred creating the Form. The error is: The Parameter is incorrect
View 1 Replies
Nov 5, 2009
how do I check if a project is up-to-date?
I'm basically trying to programmatically build each project in a list but only if they have changed. So does anyone know of a way (using EnvDTE maybe) to check if a project changed and therefore needs to compile?
View 1 Replies
Jun 5, 2009
I have written a program in VB.NET 2008 Express that references a .NET managed dll. I simply added a reference to the dll to the project. I then 'Imports' the dll at the beginning of the program and then can use it. Everything works fine when I am running the program in debug mode (and it uses the dll as intended), but as soon as I go to build the project I get an errors that it "Could not reslove this reference" and "Namespace of type specifier in the Imports 'ModbusTCP' doesn't contain any public member or cannot be found." The dll is located in a different location on my hard drive to the project location, but this was referenced when I 'added reference'.
View 2 Replies
Jun 10, 2011
I'm building a database control layer DLL for my project.HelpDB is the project.HDB is the class name.I've written a few methods for connecting to the db, querying, and the usual.I've recently included a public class HDB_ParamValue in HDB to handle query parameters.
[Code]...
Note 1: I'm moving from VB6, so you'll appreciate that I have little experience with this real OOP. If there is a link or article you can recommend that might answer this, recommend away!Note 2: I'm not concerned about databases and parameters per se, but more the _concept_ of class in a class (or class of a class).
View 5 Replies
Mar 9, 2012
Both projects are set to build in release modeBoth projects are in the same solutionThe solution is set to build in releaseBoth projects output to a Release folder in bin / objEverything seems to be okay except for one thing.When inspecting the files with a tool such asI tracked this down to a setting in the Advnced Compiler Options for the pdb files.If the debug info output for VB is set to anything other than none - then the project builds in debug mode (keep in mind it still outputs to the release folder).
View 1 Replies
Jun 14, 2010
When ever i publish the project, i get a bunch of deployment files and a setup file. Even after running the set up there is no .exe file.Is this just VB .Net way of opening the file now? Do i even need to use the installer? My program uses very basic math with list's and datagrid views.
View 2 Replies
Aug 22, 2009
Well i finally finished my Maths Quiz project made using VB. Now, all i have to do is create a wizard that installs the program on the users pc.What i did was clicked bulild--->publish build then follow the simple instructions:location--->loadfromacd/dvd--->finish although when i went to install it, it didnt create a desktop icon although it creates it in the start menu as well as so thats good but it doesnt create a shortcut to the desktop is there anyway i can make it install a desktop icon when installing?
View 3 Replies
Oct 20, 2009
I have the following code under a button labeled "Exit" for exiting my application. Code:Application.Exit()It has been working fine. I added a reference to System.Deployment and the compiler suddenly doesn't like Application.Exit(). Can I not use Application.Exit() and have a ref to System.Deployment at the same time? Upate: I got it. I used the Object Browser and found "System.Windows.Forms.Application.Exit" which works with System.Deployment referenced
View 2 Replies
May 25, 2012
Currently I am building a Connectship (Shipping Service Provided by UPS) project in VB 10. This is my first project in 10, in the past I have always used 2003. We decided to upgrade due to the connect ship API(.dll) wasn't compatible with 2003.
My current problem is as follows:I've built a program that uses ADOBD, some XML httprequests and a little bit of integration with there API they have. I also built it to use .net Framework 4.0. I can run the project just fine on the machine I built it on (XP SP3), but when I go to run it on the other machine, it acts like it runs but just doesn't do nothing. Basically just starts and stops.. The machine is not the same model as mine, but has all the updates (SP3) & the .net 4.0 framework on it. I've also tried installing the software package that comes with Connectship on the machine, this is how the .dll work but it still doesn't bring anything up so I don't think it's that messing it up.I was also wondering, to run VS 10 projects you should at least have SP3 correct or could you use SP1 also in XP?
View 6 Replies
Aug 11, 2010
What actually is required to consider something installed on a machine. What happens in the background? I know VB offers an installer but Im trying to build my own from scratch. What do I need to do to accomplish this?
View 13 Replies
Jun 7, 2012
I'm developing application that is plugable. The plugins are loaded via Assembly.LoadFrom(). In my solution I have 4 projects. A WPF, 2 DLL and another DLL that is a plugin for the app. The plugin project references one of the other DLLs. When I build the Solution and run I was getting an error trying to use the plugin dll because it was expecting an older version of the referenced project. I had to clean and rebuild the plugin project to get it to run correctly.
[Code]...
View 1 Replies
Dec 1, 2011
I am working on a Project which uses SQL Server,Crystal Report. And the project is almost complete and i am going to publish it.Now I dont want to add the Prerequisites for the project as it will make the size of the exe to some 400mb but my application exe is just 4mb.
Now currently i have seen something in the Reference Section of Project Properties.That is the dll Control that i am using for Buttons has the Column called Copy Local with a value of True but for CrystalDecission.Shared its just False, so is this value changing to True helps me or not... that is i should not have to include as Prerequisites for crystal report..
View 1 Replies
Jun 21, 2010
My suggestion is how to use the setup/deployment project - and also how to add it/incorporate it into the project being built.
View 3 Replies