Deployment - Ignoring Bad References At Compilation

Feb 8, 2012

I've got a problem with a program that references a third party ActiveX component that I've been refused permission to distribute. The AX component is used on some user defined controls which the user can add programatically, which makes isolating them fairly easy. However, the problem is that if the program is installed on a machine without the third party component then it just crashes, where I would much prefer it to just alert the user to the missing component and then disable the functionality that requires the component.

In the past I've tried adding the reference programatically but have found that this solution doesn't work with this particular control.

View 1 Replies


ADVERTISEMENT

Deployment :: Add 'Application Block' Something To References

Nov 24, 2009

So I created an application with vb.net, I added Messenger type Api in preferences, compiled my program and everything was fine. However I can't run the program from other directories. It says that the .dll is missing. I'm trying to include the .dll to the program somehow - no success, how that should be done? Friend tried to help me and said I should add "Application block" something to the references. I can't find that though.

View 6 Replies

Deployment Involving DLL References And Global Assembly Cache (GAC)

Jun 19, 2009

I created a Windows Application using VB.NET 2005 Express Edition.In my project I have two references to DLLs from a 3rd part product, so that I could access its API (Ascent Capture 7.5 from Kofax if you needed to know).For the two references, I have set the Copy Local property to False, and in the app.config file I am using assemblyBinding to reference one of the DLLs.When I build the application and then execute the EXE file in the inRelease folder, everything works fine. When I do a publish and try to run the setup.exe application that is created, I get an error message that basically states the DLL I referenced in the app.config file needs to be installed in the GAC.So why does my application work fine from the Release folder without having to do anything to the GAC, but I cannot install using the setup.exe from the Publish? I would like to use the setup.exe because I need to install this on other machines than my own.

View 1 Replies

VS 2008 Insert References From Application Settings CrystalDecisions References Are Missing

Mar 9, 2011

I have Crystal Reports 2008 installed on my win7 laptop but when i go to insert references from my application settings the CrystalDecisions references are missing and im not able to find them. Note: they do exist in my "c:windowsassembly" folder.

View 3 Replies

Deployment :: Deployment Of SQLEXPR32.EXE Using Template.ini File

Feb 24, 2009

I am deploying sql express as a prerequisite. I have created a custom prerquisite using bootstrap manifest generator. The problem I have is replacing the template.ini file which exists in the sqlexpr32.exe cab file. Winrar and winzip allow me to open the sqlexpr32.exe but will not allow me to edit, add or replace the template.ini.I also cannot find the path where the sqlexpr32.exe extracts to as I want to use that path for the settings file eg "template.ini".[code]

View 1 Replies

Deployment :: Setup And Deployment Project With Ms Sql Server?

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

Compilation And Execution

Nov 12, 2011

read the COMPLETE email before giving me instructions.I say that because it seams like who ever is responding is only reading part of the email and responding.I have followed your instrutions and I still can not get myhello.vb to compile.

Both vbc.exe and mylello.vb is in the same folder c:program files

"C:Program Filesvbc.exe myhello.vb"

You stated that I should run command prompt as administrator and tye the same command as you do. what (as administrator) is. Please walk me through the complete process. Please do not tell me to run the command prompt as administrator because I do not know what that mean.I can not speak to my administrator. Also I attempting to compile a sample VB that came with the software, so using Visual Studio is not the solution.

View 5 Replies

Vb6 - File For Compilation Of CLS To DLL?

Dec 20, 2010

I have a vb 6.0 file that compiles a CLS file in the same folder to a dll without the creation of any windows forms. Does anyone know of an example for this in VB.NET?

View 1 Replies

Asp.net - Converting New With From C# To .NET - Compilation Error

Dec 19, 2011

I have the following code in C#:

public static ArrayList GetGenders()
{
return new ArrayList()
{
new { Value = 1, Display = "ap" },
new { Value = 2, Display = "up" }

[Code]...

View 3 Replies

IDE :: Having Slow Compilation Time?

Jan 22, 2012

I'm using Visual Studio 2010 Pro on a Windows 7 PC, to build simple VB Windows Form Applications (I've just started learning VB). Lately when I try to debug my applications, it takes unusually long. For example, an application with just a blank form and nothing else will take about a minute to build, and then it will sit for another minute or two until the app window pops up. It didn't use to do this!

View 1 Replies

Speed Up Web Application Compilation?

Jan 19, 2011

I have tried looking at "related" questions for answers to this but they don't seem to actually be related...Basically I have a VB.Net application with a catalogue,administration section (which can alter the catalogue, monitor page views etc etc) and other basic pages on the customer front end.When I compile and run the app on my local machine it seems to compile fairly quickly and run very fast. However when deployed on the server it seems to take forever and a day on the very first page load (no matter what page it is, how many stylesheets / JS files there are, how many images there are, how big the page markup is and so on). After this ALL the pages load really fast. My guess is this is due to having to load the code from scratch; after that, until it is recycled, the application runs perfectly fast. Does anyone have any idea how I could speed this part of the application up? I am afraid that some customers

View 1 Replies

Access Compilation Element In Web.config?

May 18, 2010

I want to be able to determine if the web.config element

<compilation defaultLanguage="vb" debug="false" />
if the property is debug is set to true or false.
Public Shared Function isDebug() as Boolean

[code].....

View 1 Replies

Changing EXE Name Based On Compilation Constant

Sep 21, 2011

I have a project in VB.NET 2010 (compiling to x86, .NET 2.0 runtime) that I want to compile into two separate EXEs - a "lite" version and a "full" version. Unfortunately I cannot make two separate projects as it uses the Adobe Reader COM control - and sharing a form using that control between two projects seems to confuse the IDE (something to do with COM Interop, I assume - if someone knows how to share a form hosting the adobe reader control, that would solve my problem too).

I have found this thread: C#: VS.NET: Change name of exe depending on conditional compilation symbol however I don't have any MSBuild experience so I need more explicit instructions. On the "My Project>Compile" tab there is a "Build Events..." button. I was wondering if anyone knows how to set a conditional compilation constant and use that to determine the EXE name (or change it after build). If all else fails I can rename the EXE manually I suppose, but I'd prefer it to be automated.

View 1 Replies

Code Converted To C# Compilation Error?

Oct 12, 2010

I had a code for getting the hdd id written in vb.netNow I need to re-write the code into c#. I have converted the vb.net code to c# but it is not compiling.Below is the vb.net code

Dim hdCollection As ArrayList = New ArrayList()
Dim searcher As ManagementObjectSearcher = New ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")

[code].....

View 4 Replies

Conditional Compilation On A Single Line?

Nov 27, 2009

How can you write a #If statement on a single line?

vb.net
#Const Debug = True #If Debug Then Console.WriteLine("Debug")'I also tried:#If Debug Then : Console.WriteLine("Debug") : #End If'

But that didn't work either?

View 2 Replies

Managing Resources Via Compilation Flags?

Feb 3, 2010

Now days it is done in Resources.Designer.vb we have there following lines:

Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then

[code]...

View 3 Replies

Remove The Debug .PDB File From My MSI Compilation?

Dec 25, 2009

In Debug mode my application compiles to a 4MB .msi file plus setup.exe at 368kb, and the installed app includes the .pdb file @ 2.3MB. If I change to Release mode I'd expect to avoid including the debug symbol file and considerably reduce the .msi size, but surprisingly the .msi goes up to 4.45MB and setup.exe to 420kb. Am I missing something here? I want to reduce the upload size of the application by avoiding the unnecessary debug file, but clearly I've misunderstood what's happening or maybe what I can do.

View 1 Replies

VBNET2008 Application Compilation Procedures?

Sep 12, 2011

I am using VBEt2008 to develop application. After completed development. I do not know how to compile the applications.brief me of the procedure and steps to compile the application.I tried to look for options at the Menu ToolBar and also the TookKits options and in vain.

View 5 Replies

Deployment :: Deployment And MS Power Pack?

Jun 25, 2009

I have a windows app that uses the shape control which is part of the MS power pack and requires Microsoft.VisualBasic.PowerPacks.Vs.dll. I am using Publish to build my app and I have tried to change the dll to Include in the properties page but nothing seems to work.

I need a way to have the file included and I am unable to find a external copy and I understand that I cannot just copy the dll from my PC into the installation folder

View 1 Replies

C# - Generic Method Overloading Compilation Error In VB?

Aug 5, 2009

I have a problem with the VB.NET compiler failing to compile a class (in a separate C# assembly) which contains two overloads of a method with generic arguments. The equivalent code in C# compiles against the same assembly with no errors. Here are the two method signatures:

protected void SetValue<T>(T newValue, ref T oldValue)
protected void SetValue<T>(T? newValue, ref T? oldValue) where T : struct

Here is the code to three assemblies that demonstrate the problem. The first is the C# assembly with a Base class that implements the generic methods. The second is a C# class derived from Base and calls both overloads of SetValue correctly. The third is a VB class also derived from Base, but fails to compile with the following error message:

[Code]...

Am I doing something wrong in the VB code, or are C# & VB different when it comes to generic overload resolution? If I make the method arguments in Base non-generic then everything compiles correctly, but then I have to implement SetValue for every type that I wish to support.

View 2 Replies

Error Displaying Crystal Report After Compilation

Dec 27, 2011

I'm running 64bits Windows 7 and using MS Visual Studio 2010. I'm doing a VB program connecting to mySQL database using 32bits ODBC connection. the program have no issues loading crystal report in Visual Studio IDE environment. However, after Build and install in the same machine the following error msg appeared when trying to load the crystal report with data call from database (ABLE
to display report when NO data call):

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

[Code].....

View 8 Replies

Project-level Conditional Compilation Constant?

Aug 19, 2009

I am getting a project-level conditional compilation constant error while trying to build my vb.net project. It reads:

project-level conditional compilation constant 'VB_VER=9.0,TARGET="exe",CONFIG="Debug",_MyType="Console",PLATFORM="AnyCPU",DEBUG;^^ ^^ TRACE' not valid: Character is not valid.

I recently upgraded it to the latest version (from 2.0), and I have a feeling that this has something to do with it.

[Code]...

View 1 Replies

VS 2005 Compilation Error Deletes Properties?

Apr 2, 2009

We were working with a VB.Net app that contains something like 2200 VB modules/forms/classes and got a not-uncommon error message when we went to compile it. (Didn't write down the exact message, but it's basically unable to copy an image file that's in use.)Problem, of course, is that not everybody got out of the app when we told them to. Like I said, not uncommon. (It's a shared app that runs from a server.)Now, the weird thing. After kicking the offenders out, when we recompiled the program the image, which we use on search buttons, was gone. The file was still there but all of the property settings that referenced it were gone. Looked into the Designer code & they were gone from there, too. Seems to me that a compiler should *mark* the code that won't compile, not delete it.Anyway, I only see two courses. Either we restore our app from a backup, losing all our changes, or we go thru all the forms (like I said, there are 2200 modules-not sure how many are forms, but it's a bunch) and manually replace the properties on all the search buttons. Either way it's going to cost us at least a day's work.

View 2 Replies

Asp.net - Keep Selected ListItem From Ignoring Other ListItems?

Aug 16, 2011

When I run code the below, the If statement never resolves to 'True'. It always shows 'Assm' as the SelectedItem, even if I check all the checkboxes. So how do I allow 'Assm' to be checked by default AND have the code-behind see that the other checkboxes are checked?

<asp:CheckBoxList ID="qualityChecks" runat="server" RepeatDirection="Horizontal" TabIndex="8">
<asp:ListItem Text="Assm" Selected="True"></asp:ListItem>
<asp:ListItem Text="Qual"></asp:ListItem>

[code]....

View 3 Replies

Ignoring Assembly Info When Deserializing

Feb 5, 2011

I'm writing a solution in VB.NET that consists of a number of different components (UI manager, Outlook add-in, etc.). In the main UI program I'm serializing out an arraylist to a data file that contains the data the other components will need to do their jobs. That part works fine, and I can serialize and deserialize with no problem. Now I want to read (deserialize ) in the data in my Outlook add-in, and I ran into the dreaded 'Unable to find assembly' issue where it's looking for the original assembly that serialized the data. I found a hint for workaround

[Code]...

View 2 Replies

Ignoring Properties In Fluent NHibernate With (2.0)?

Jul 29, 2010

Because there is so little information about VB.Net and (Fluent) NHibernate to be found, I decided to write this question to all other developers finding themselves looking for more information.On of the things i had to struggle with was how to Ignore properties in NHibernate.The reason i had to ignore properties was because we used a Webserivce which cannot serialize Interface classes (ILists). Which are used a lot with NHibernate.

View 1 Replies

Ignoring Specific Speech Words In VB?

Mar 21, 2011

I'd like to know if anyone has a code for or can direct me on how to select keywords given in a speech command and to ignore the other words. Example: Speech "The beach looks great today"

I want to use the word "beach" to trigger a function and ignore the rest of the speech.

View 2 Replies

Powershell Ignoring Quotation Marks?

Jul 20, 2011

I have a Powershell script and no matter what I try it completly ignores any quotation marks in the script. The error occurs when I run the script from my VB.NET code yet, I have been running scripts sucessfully through VB.NET for a while now. For example, my script starts with finding out the server name...

[Code]...

View 3 Replies

Show Integer Ignoring Decimals In Value?

Mar 16, 2012

I have only started programming in VB recently and I am not very good on the coding side. I have two values a and b. When I divide them, I want only the integer part to show up ignoring all the decimals and storing it into the variable c.

i.e.:
a = 24, b = 11
c = 2

Output: 2

View 3 Replies

VS 2008 Ignoring Text In A TextBox?

Oct 3, 2009

How would I make the program ignore text? For example if I type in Notepad.exe the program will ignore .exe

how would I make the contents in a textbox NOT case sensative?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved