Use SubSonic In Program Web Application?

May 18, 2009

I am using Subonic in a VB.net application for the first time (I have used it succesfully in a WebSite project plenty of times). I followed the 2nd part of the 'Getting Started' video to actually generate the DAL source files as opposed to the build provider method and everything APPEARS to have gone like expected. However, nothing I do will get my generated namespace to appear. I feel that it has to with the fact that I am running my Web Application in VB.Net and Subsonic generates in C#.

Here is the process I followed:

1) I created a blank Web Application Project in Visual Studio

2) I configured the web.config to have the necessary parts, connection strings, etc.

3) I ran subcommander and it generated all the classes I needed into a folder called DAL.

4) I built the Web Application Project

5) I opened up a code behind, typed 'Imports' and I do not see the namespace that was generated.

I have even opened the actual Subsonic Source files and seen that there is a namespace statement for the generated namespace I configured. I tried briefly to move the subsonic files to a separate class library project, compile the .dll and use that in my project, but it still did not work.

View 2 Replies


ADVERTISEMENT

C# - Use SubSonic Or Dynamic Data For A New CRUD Asp.net Application?

Mar 3, 2009

I need to throw together a quick CRUD asp.net site, but this may become a bigger application down the road. I have some experience with SubSonic, but it has been so long since I did a project with it I have to relearn it. I am also considering using Dynamic Data.

View 5 Replies

Using Subsonic With .net?

Oct 4, 2010

I'm quite comfortable with VB and have a very large project i need to do. I've come across SubSonic and it looks awesome. I am not clear if i can use it in VB. I've seen a a couple of posts that suggest they did but on the site it specifically shows C#.Can I use SubSonic with VB.NET?

View 1 Replies

Asp.net - Subsonic With Webservice?

May 6, 2009

I am trying to get subsonic to run work in a webservice I am not sure how to return the data. I only get the word Object in my results when It return anything instead of values. What am I missing?

<WebMethod(Description:="Method to retrieveCptCode subsonic List")> _
Public Function GetSubCptCodes() As CPTCodeCollection
Dim coll As CPTCodeCollection = New CPTCodeCollection()
Dim qry As Query = New Query(CPTCode.Schema)
coll.LoadAndCloseReader(qry.ExecuteReader())
Return coll
End Function

View 1 Replies

C# - Subsonic 3 - Namespace Hidden

Apr 17, 2009

Followed Rob's webcast, did as he did, watched T4 generate the code, went to use the new namespace and oh. No namespace. I can see the namespace Test.Data in each of the generated .cs files, the tt files are included in the project as is subsonic.dll, there are no errors (I managed to get rid of a warning for the duplicate directives) but I just can't see the namespace. To test it out I am building a simple vb.net console application so wondering if there is a conflict there. Using v2.2 against the same db works fine.

View 1 Replies

Subsonic Can't Find By String

Jul 17, 2009

[code] will both give the error "The method 'CompareString' is not supported". If I make the same call searching for an integer (ID field) it works fine. .SingleOrDefault (Function(x As Account) x.Id = 12)So interger matching is fine but strings don't work Is this a problem with the VB.net templates?

View 3 Replies

SubSonic Save() Changes Not Working?

May 3, 2011

I am trying to save changes to a record, however I am getting the error

[code]...

View 1 Replies

Subsonic And The .net 2005 Interop Toolkit?

Nov 10, 2009

I have an application I am converting over from vb6 to vb.net 2.0/3.5. Using Subsonic 2.2 and the vb.net Interop Toolkit 2005. Cannot seem to get the .net form using subsonic to work inside the interop environment.It keeps saying it cannot find the subsonic service provider in the app.config. But I know it is there. Has anyone used these two toolkits together successfully? Will subsonic even work inside the interop environment in that way?

View 1 Replies

Transactionscope Not Working On SQLite In Subsonic?

Jul 24, 2009

I have trouble using the transactionscope on SQLite, i am using the following code. Changes are still commited to the database while i don't call the ts.Complete() function.

Using ts As New System.Transactions.TransactionScope()
Using sharedConnectionScope As New SubSonic.SharedDbConnectionScope()
' Do your individual saves here'

[Code].....

View 2 Replies

.net - Subsonic 3.0 - Separate Generated Code From ActiveRecord.vb?

May 18, 2010

I moved from SubSonic 2.x to 3.0 and noticed that all my classes are combined into the ActiveRecord.vb(cs) file. Is there a way to have my classes generated individually in a separate folder (DAL) as I was doing with 2.x?

View 2 Replies

InvalidCastException When Generate Code Via Subsonic With A Web Site?

Dec 10, 2009

I'm trying to use Subsonic 3.0.0.3 with an existing web site created in vb.net. I've added a reference to SubSonic.Core.dll and added the ActiveRecord tt/ttinclude files. I also added a contextmenu entry to run the t4 templates using instructions I found here.Whenever I try to run any of the tt files, I receive the following exception. Does this have something to do with me using a web site as opposed to a web application?

f:Documents and SettingsdbollardLocal SettingsTempSQLServer.ttinclude(85,15) : warning CS0219: Compiling transformation: The variable 'parameters' is assigned but its value is never used
ActiveRecord.tt(0,0) : error : Running transformation: System.InvalidCastException: Unable to cast object of type 'Microsoft.VisualStudio.TextTemplating.CommandLine.CommandLineHost' to type 'System.IServiceProvider'.

[Code]...

View 1 Replies

Subsonic 3 Work Virtual Basic .net Project?

Sep 15, 2009

i download subsonic 3 today (subsonic 3 preview 2) but this don't work in vb project.i think because .tt file (for generation) is C# template so this don't generate vb code.

View 1 Replies

Subsonic Invalid Cast From System.Int32 To System.Byte[]

Feb 22, 2010

Subsonic 2.2 is throwing the error

subsonic Invalid cast from System.Int32 to System.Byte[]

When I do the following

If template.Content Is Nothing Then
MsgBox("Blank Document")
Else
MsgBox("Document Present")
End If

"template" is a SubSonic object of which it's "content" field is of type Byte()

View 1 Replies

SubSonic 3 Step By Step WinForm App .Net Generating And Setup?

Aug 27, 2009

write SubSonic 3 Step By Step WinForm App VB.Net: Installation,Setup And Generating.

View 2 Replies

Either End The Program Or Start The Program Over In A Visual Basic Console Application - Based Upon User Input?

Apr 8, 2012

I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.

[Code]....

View 1 Replies

Make A Code That Sends One Application Or Program In 1 Core And Other Application In Other Core?

Jan 29, 2010

I'm using VB 2008, and I have a dual core computer.Is it possible to make a code that sends one application or program in 1 core, and other application in the other core?

View 1 Replies

Use Program And C# In Same Application?

May 14, 2009

I am developing a GUI based application in MS Visual Studio 2005, I just want to know if it is possible to use both VB.NET and C# in the same project. Or can I include a module written in C# in my VB.NET project?

I have a class written in C# which I want to use in my VB.NET based project, so if I can include and call functions from that project than I won't have to write the class again in VB.NET.

View 6 Replies

.net Program Is A Console Application?

Apr 13, 2010

I am maintaining some VB.net code and I am more of a C# programmer. I have taken over maintaining several projects from people who have since left the project. The manager tells me that some of the VB.net programs are console applications. Yet in looking through the source code I am not able to distinguish wether the code is for a console application or for some other VB.net program like a VB.net windows application. Can someone tell me if there is a way to determine if a VB.net program is a console application.

View 3 Replies

Calling Another Application From Within A VB Program?

Feb 9, 2011

I have written a VB Program for calculating Power requirements for Heating Water, Air etc. There are some standard formulae, which require inputs in fixed units. The user may have data in other units, which will then need conversion.Example: Formula needs Airflow in Cubic Meters/ Minute, where as user has data in Liters/Second.I do not want to write code to do Unit Conversions from within my Program. There are readily available FREE Applications for doing the conversions. I have one such Application, which I want to bundle with my VB program.How can I Code in my program, so that when the user clicks a Button " Unit Conversion ", the bundled program will open.This is like clicking on a Hyperlink in a Program or Document and a Web Browser opens.

View 1 Replies

Know If And Which Program Started Own Application?

Dec 4, 2009

I'm having troubles finding a way to retrieve informations about which program started my own application. The situation is this: I have a VB .net application which launch another VB .net application (both made with the .net framework 2.0) using process.start(), the second application need to know which software or process started it, if it was started by another software and not directly by the user, and I can't access to the source code of the first application so there's no way I can send a specific command line to the second application.

View 2 Replies

Making A .NET Application The Only Program Which Can Run?

Oct 18, 2011

What would be the best way to make a Windows .NET application be the only program that can be used on a computer? I have come across timers or events to switch windows back to a window with matching text and some api32 calls to make a form top most.

Is it possible to make an application like the windows lock screen where nothing can be done except that what is on screen? I want to block users from doing other things and only let administrators get to the desktop.

View 3 Replies

Program An Application On For Net Framework 1.0?

May 23, 2011

I have a Windows 7 machine and I see that Microsoft does not recommend Visual Studio 2003 on the computer (Windows 7). How can I develop an application for the .net framework 1.0 then?

View 2 Replies

Publish My Application In Program?

Sep 20, 2009

I'v tried using the 'Publish *APPLICATION NAME*' button under 'Build', but i don't know where to go from that dialog.

View 5 Replies

Publish My Program Application?

Jun 5, 2009

Im using visual basic 2008 express edition. How can i publish it to company server.

View 1 Replies

Run An Application From Inside Program?

Dec 13, 2009

How I can run an application from inside the vb ?

View 2 Replies

Running A Wmv Application With A VB Program?

Dec 14, 2008

I'm a beginner and I have a problem with Visual basic 2008 Express edition . I would like to launch a *.wmv movie when you click on a button. First i tried it with shell command, but it seems it only works with vb created exe files. So I would like to: -Open a file, which is in the same directory as the program

View 1 Replies

Target A Program With An Application

Oct 14, 2011

I was wondering, how do I target a program with an application, E.G.

A Program is running in the background and I want my program to hit spacebar (I got that much) but I don't want to have the program in the foreground for my program to work.

View 5 Replies

Use Function Example In The Application Of Program?

Apr 19, 2012

How do I use this Function example in the application of Program

PHP
Public Function nichlist(ByVal message As String, ByVal keys11 As String) As String
nichlist = Nothing
Try
Dim keys() As String = Split(keys11, " ")

[Code]...

View 1 Replies

Use Program Or C# For Desktop Application?

Oct 27, 2009

I'm coming from unix / server / c++ /java background with no GUI experience .i need to build windows GUI application , i need to build it fast i was told that the .net family is the exact thing for such job . but there is VB.net and c# what should i choose what is faster and better for such job ? what will be easier for none teachi user to install and for me to deploy the end product

View 10 Replies

Application That Can Manipulate Images For Program?

Jul 21, 2010

Basically functionality i need is:

easy integration with ASP.NET application.user ability to crop image with handle prior to save image optimization from any image type to jpg (compression levels) during the save saving images with proper h/w ratios during the save user ability to rotate the image prior to save ability to translate application to foreign language as it won't be used on international site

View 4 Replies







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