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
ADVERTISEMENT
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
Apr 15, 2011
How to generate the API of my Site ... www.volvobusesindia.com so that i can provide my site API to agents so that cthey can vbook tickets using our API ?
i want the bus booking search box appear in the site will be displayed in others website ?
View 2 Replies
Dec 10, 2011
I use this code to populate combobox1&2:
'Main form on load events
Private Sub frm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
[Code]....
View 3 Replies
May 4, 2012
Private Sub frmbranch_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try str = "select * from EnquiryEntry Where EnquiryId=" & EnquiryId & ""
[code]......
View 1 Replies
Oct 27, 2009
I'm trying to write code to generate a random code for a textbox. It has to contain both numbers and alphabets. This is what I have so far
Function HomeIDCode(ByRef random As Random) As Random
Dim strValue As String
Dim strAlpha As String
[code]....
View 2 Replies
Sep 12, 2011
how can i get the html code via WebBrowser control?
View 1 Replies
May 27, 2010
I Was trying to make a program in vb.net, its idea like that
1) Check site titles name in every web browser that opened in the computer
2) find a specified word in the site titles
3) if the program found it , it Msgbox the site URL
I have tried this to check site titles name in every browser For Each a As Process In Process.GetProcesses
Dim x As String = a.MainWindowTitle
x = x.ToLower
If x.Contains("microsoft") Then
MsgBox("microsoft website is opened")
[code]....
but the problem in this code that if i'm opening some tabs and specified title in site is opened but i'm in another tab (another site) it does not work !
View 7 Replies
Mar 12, 2009
Last month (i think) i needed help with regex which i used to find MP3 urls in the source code of a site.Now the code doesn't function properly
[Code]...
View 2 Replies
May 27, 2010
I Was trying to make a program in vb.net, its idea like that
1) Check site titles name in every web browser that opened in the computer
2) find a specified word in the site titles
3) if the program found it , it Msgbox the site URL
I have tried this to check site titles name in every browser [code]but the problem in this code that if i'm opening some tabs and specified title in site is opened but i'm in another tab (another site) it does not work !so how can i fix it ? and how can I make the program gives me the URL if specified word in title is found in IE and Firefox?
View 3 Replies
Oct 9, 2010
Macosxnerd101 - Site Feedback | Dream.In.Code?
View 7 Replies
Jul 4, 2011
I have signed up for office 365.which provides sharepoint site,
I am able to edit the html content of the site.(using Microsoft SharePoint Designer 2010 and Web interface)
Question 1. How to edit the C#/VB code of the site web pages?
Question 2. I have created some asp.net pages and want to upload them to my site, How to use FTP for sharepoint site?
Question 3. How to access data from database for a sharepoint site?
View 3 Replies
Mar 26, 2010
I am not sure if this is possiable but I am looking to build an application that will login to a web site, navigate the site and download files. I would like to do this all in code and able to run multiple instances of the program to get information from many different web sites. Is something like this possiable in VB.net?
View 3 Replies
Feb 9, 2010
Ive got an app that holds a list of site we have, At each site there are a few devices. The idea is when they click on a site all the details for the site are loaded and then a second thread sits and pings each device to see if its live. Im trying to do this in a seperate thread so if they click another site while its still pinging them it doesn't wait before it switches site. This all seems to be workling fine except if you click through the sites quickly, when you do that it will eventually come up with
Quote:
{"Collection was modified; enumeration operation might not execute."}
The error flags up on the "Next" line in "ThreadedPing"
Thread stuff
Public Sub ThreadedPing(ByVal dt As DataTable)
Try
Dim dr As DataRow
[CODE]...
View 2 Replies
Oct 13, 2010
When i publish my program i choose to let the application check for updates via a website and if their is one update automatically when the program starts. Is their a way were on the main user form i can make it so that the user can change the update site with out me building the program again with the new site. I want to do this becuase the site i use goes down alot so when i changed the update url no one was able to download the update for the new update server.
View 16 Replies
May 19, 2011
I'm deploying a VB.Net app (VS 2010 Pro) that requiers the user click a command button to open IE to a financial WEB site and download informaion from the site. The app works fine in every detail when installed on the development computer. But, on the target computer when the command button is clicked an unhandled exception occurs which says: System.IO. FileNotFoundException:File Not found.My code behind the button is Shell("C:Program Files (x86)Internet Exploreriexplore.exe www,fidelity.com",AppWinStyle.NormalFocus)
This works fine on the development computer. Do I need a way to code this as a relative path? If so,can you tell me how this is done?Throughout the app I have written relative paths to needed files using paths like (Open(Environment. GEtFolderPath (Environment. SpecialFoldder.Desktop) + "File Name). They all work fine when deployed.
View 7 Replies
May 18, 2012
I'm being asked to maintain several internal-only web apps for my company. For testing, after making my changes, I've created some staging sites which make use of separate databases. As such, if my users were to mistakenly use this site as if it were the production site, they may enter important data and wonder where it "disappeared" to thinking it was the production server.
I'd like to create a big banner of some sort across the top of the staging site (which ONLY appears on the staging site) to remind my users that they are on the test site. I'd like recommendations on the best way to do this, with the following considerations:
IDE: Visual Studio 2008
Server: Windows 2003 with IIS 6
Language: VB.NET 2.0
View 2 Replies
Jan 8, 2010
i want to know how can i code my button when i click it will open my site ... i Think i was clear.
View 1 Replies
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
May 26, 2009
I am trying to make a cnc program i have learnt a little about g-code .i want to know how i can generate g-code from an image?Also how i can use this g-code in my program to move motors?
View 5 Replies
Sep 5, 2011
I am generating new code for a transaction.
View 11 Replies
Nov 13, 2011
I have a materials library that I am adding into a database, the library has a number of columns, the one I am concerened with here is the Item Code column.
All Item codes start with 'M' and then have an integer after them (M1, M2, M3.....M9999 etc) What I want to do is to auto generate the next available item code when a new line is added.
The next available code should be based on the last value in the 'Item Code' Datagrid View column but I don't know how to do this.
I have tried getting the next available code from the database but this doesnt work as I want it to.
[code...]
View 2 Replies
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
Jan 11, 2011
This in ref to this question that i asked but never got answered ASP.NET 4 ACCESS DATA TO APPLY TO NavigateUrl but suppose thats redundant now.
I need to generate dynamic URLs from a database in code behind and then use them in a list view but i cannot find anywhere on the internet or in my book that covers something like this.
Im getting data out using below in a code behind page:
'portfolio navigation data
Dim rdrPortfolioNav As SqlDataReader
Dim cmdPortfolioNav As SqlCommand = New SqlCommand()
[Code]....
how to loop through each record on the code behind page to generate all the urls then how to show these on the actual page within the list view.
View 1 Replies
May 18, 2010
I have CodeSmith and MyGeneration tools. I have SPs in SQL server. I want generate VB.Net code for SPs (not for Tables). Which templates will support for this? Please share if you know any templates that generates VB.net code from SP?.
View 1 Replies
Jan 7, 2011
I am in the process of creating a crystal report and assingining a database and table to my report can some one help me or just point me in the right direction.[code]...
View 3 Replies
Jul 27, 2010
I build a component class it extends a combo box and generates some random numbers. But when I drag and drop my component from the toolbox to a form it auto generates Me.Randtest1.Items.AddRange(...) in the Designer which uses static numbers. The idea was to have different numbers each time and not the same.[code]
View 1 Replies
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
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
May 3, 2011
I am trying to save changes to a record, however I am getting the error
[code]...
View 1 Replies