Im trying to convert the nServiceBus PubSub .net4 example into vb and I'm struggling at one point which I think is a language issue but I thought I would ask the experts. The code in question is from the publisher:
In my code I can easily use "where Obj.Feld = String", but using "where Obj.Feld.StartsWith("a")" doesn't work. See the following two functions:
[Code]...
The first function (byFileName) works fine. The second function (LikeFileName) doesn't. Using Startswith I get "Object reference not set to an instance of an object." What am I doing wrong?Database is an array of Objects, a structure consisting of strings
I am having trouble with the insert command, my code is:
Protected Sub btnTestator_Click(sender As Object, e As System.EventArgs) Handles btnTestator.Click Dim WillsDataSource As SqlDataSource = New SqlDataSource() WillsDataSource.ConnectionString = ConfigurationManager.ConnectionStrings("ConnectionString").ToString()
[code]....
aatblWills1 is my sql server table with 3 fields: WillID(PrimaryKey, integer auto increment); UserName(nvarchar(150)) and TestatorName(nvarchar(150)) (there are some other fields in the table but I've set them to allow nulls)I am not getting an error message, it is just not inserting any records into the database.
I'm updating an old process that already exists, which works as follows:The user submits a form which runs the following asp (simplified, names changed):
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.)
I am trying to run simple application (e.g. generated from template by VS.NET 2010) on IIS6. I changed it to run with .NET 4.0 (its application pool) and checked with regiis (this pool has 4.0). I also changed all possible httpHandlers (svc etc), to run with NET4.0. All possible rights are checked (i think so). Almost every request results in "Server Application Unavailable" (sometimes it is empty page with -2146232576 (0x80131700) value) and "...Please review this log entry to discover what caused this error to occur." but EventViewer and IIS Log are empty.
my project was intially mandated to be done in c#.however a large contributor to the project wrote much of the business logic, which he knows well, in vb.net.How difficult would it be to convert the following c# code into vb.net.
i wanna try to convert this ASM code into vb.net or at least find a solution that will allow me to enable this script after creating a handle on a kernel32 process.
I am looking for some library or code that will allow me to convert mp4 video to mp3I want it to be for free and compatible with the latest .NET framework (4).Also, if possible, I am looking for a free ffmpeg wrapper than I can have in my vb.net application without trial or messageboxes.
Will Microsoft Visual Studio 2008 convert my app to an app I can use on the Internet. I've used it to help convert up from 2005 but I'm looking so save time in creating a web app version.
I developed a windows application in VS2008 as 2.0 . I would like to migrate to 3.5 . This really basic but how do I do that? It seems like I should just change a few parms somewhere, but I can't find it.
Dim hex as String = "FFFF" Dim int as Integer = Val("&h" & hex)
The problem is that it only returns a signed integer, so the example above gives -1 instead of 65535. Is there a way to make Val return a Long instead f.ex. , or an other way ?
I'm currently converting a VB6 app to vb.net 2010 and i'm struggling to convert the following code and was hoping that someone could assist me. Im rather new to .Net [code]...
I have the below code that searches through directories and displays the largest file in the directory. the problem is that it displays it in KB - how on earth do I convert it to MB? The file size comes out way too large so want easier reading
Private Sub btnGetMax_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetMax.Click ClearList()
How can I convert mdf to mdb thru vb.net code? I know it can be done using Access Import but I don't want my client to open Access just to convert a database from mdf to mdb. It will be more convenient for my client to just click a button in my vb.net apps to convert mdf to mdb.
Will Microsoft Visual Studio 2008 convert my app to an app I can use on the Internet. I've used it to help convert up from 2005 but I'm looking so save time in creating a web app version.
in the project I'm currently working on, One of the requirements is to convert the characters (in my case it's hebrew) to DOS 7 BIT format, is there an easy way to do this in VB.NET ?