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


ADVERTISEMENT

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

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

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

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

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

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

Translate PHP Json Webservice Request TO .Net Json Webservice Request?

Jun 13, 2011

I have to send a request to Webservice and I have a working PHP solution, that I have to translate in VB.net

Here's the code working in PHP

//fill in the details of the contacts.userId is obtained from loginResult.
$contactData = array('lastname'=>'Valiant', 'assigned_user_id'=>$userId);
//encode the object in JSON format to communicate with the server.

[code]....

Naturally I imported a reference to a Json library and Imported (Imports Newtonsoft.Json)?

View 1 Replies

.net - Webservice To WCF?

May 11, 2011

we had developed a webservice in vb.net,framework 2.0. We would need to rewrite this websevice in WCF with framework 3.5. Please provide some guidance regarding this and also there are many othersystems consuming our webservice url. Will this conversion have impact on the source system or does it involve any build activity for the source system to consume the url that will be developed with WCF method?

View 3 Replies

Asp.net - Building A WebService In ASP 4 - VB

Aug 31, 2011

I have a search engine that will use a webservice to search through my database to find 3 specific things. I don't even know if it will work like this, but I have a dropdown list on my main page to select Product, Feature, Description. From what the user selects, the webservice should then go to an if statement to use the correct SELECT statement and find results for the search.

Will someone help me figure out how to fix what I've written to make it work? Please don't be too critical, I don't have a lot of experience. I have also been researching SQL Injection because I have a lot of code that is vulnerable so keep that in mind when you look at my code.

I can't get the blue squiggly lines to go away that are underneath the DropdownList1.Value instances on the WebService page.

WebService:

<WebMethod()> _
Public Function GetCompletionList(ByVal prefixText As String, ByVal count As Integer) As String()
Dim Feature As String = DropDownList1.Value
Dim Description As String = DropDownList1.Value
Dim Product As String = DropDownList1.Value

[CODE]..........................

Default.aspx page - Here I need the dropdownlist to tie to the database somehow.

<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>

[CODE]........................

View 2 Replies

C# - While Invoking A Webservice?

Mar 2, 2011

I am invoking a webservice and got this error..Do anyone know what is the exact problem..System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: An error occurred when verifying security for the message.

[Code]...

View 1 Replies

Emulate ASP Webservice

Jul 21, 2009

I have a webservice created using classic ASP which i am trying to get working in .Net.

Currently i am using the following ASP to post an XML file to [URL] . This then sends back an XML response.

Code:

I am trying to emulate this in VB.Net so that i can receive an XML response from the xml_url.

However i get an error warnign me that the following cannot be created:

Code:

View 2 Replies

Get Access Of Php Webservice From .net?

Jul 9, 2009

I want to get access of php webservice from vb.net

View 1 Replies

Get The Session Value From Webservice?

Jun 3, 2012

As in the title, How to get the session value from asp.net web-service ?

View 1 Replies

Schedule A Webservice In .net?

Jun 11, 2011

Is there an easy way to schedule a webservice that was created in vb.net. Would I need to create a .asmx file or do I create an executable in vb that calls a webservice?I have created a webservice using SOAPUI 3.6.1. would it be easier to schedule that instead of creating a vb app.

View 5 Replies

Set Timeout On Webservice?

Sep 2, 2010

Setting timeout on a vb.net webservice.

View 2 Replies

Using Collections In A WebService?

Mar 18, 2011

I created a website that contains a Webservice that transfers data to a windows application Using a collection, however, I get this Error that says that anything that inherits the ICOllection, it must implement Add(System.Object)

View 2 Replies

VB With Dynamic Webservice URL

Aug 4, 2011

Writing a VB app that uses a webservice. The URL for this webservice will change based on where the app is running from so I need to change it at runtime. I see that by default the web reference URL has its behavior set to "Dynamic" which means I should be able to change it at runtime, but at the same time the app.config file has the Scope set to "Application," which means it's read-only at runtime. I'm looking to use My.Settings.WebServiceURL = "new url" but in order to do this the scope has to be set to User... I think. But if that's the case then what does the "Dynamic" behavior do for me? Can someone give me a code example of how I can change this at runtime?

View 2 Replies

.net - DataMember Name Property Is Ignored In Webservice?

Jan 4, 2012

In my project I have a view model City that is exposed by wcf. One of the properties is named differently then the already exposed contract dictates. Therefore I added the DataMember attribute and set the Name value like so:

<DataContract(Namespace:=ServiceNamespace)> _
Public Class City
private mySelectedTranslation as String

[Code]....

View 1 Replies

.net - Webservice Needs To Be Accessible Through Website?

Apr 22, 2010

I have a .exe program which has an embedded webservice running on port 800.I can access it locally via 127.0.0.1:800 just fine once the program is executed.I need to be able to send the service commands such as: * 127.0.0.1:800/dev * will get a list of devices attached to the program.

To my knowledge i need to forward port 800 on my router and then access my internet IP externally and I should be able to view/access this web service? am i correct?I am then wanting to create a PHP site which will send the desired commands back to the web-service running on my home pc.

View 1 Replies

.net WebService - Bypass Ssl Validation

Apr 6, 2009

Well im working agains a webservice that has a certificate that is not 100% correctly setup the certificate is setup for the domain [URL] and the api is located at [URL] now i cant connect to this webservice as i then get a WebException "Could Not establish trush relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure. Now my question is there any way to bypass this check i use a normal Web Reference (2.0) not a Service Reference..

View 5 Replies

Access A Webservice Method From VB?

Jun 23, 2010

i am trying to access a webservice method from vb .net

dim xml as string
long id = 123
string[] accountList = new string[]{"1234"};
xml = ws.test(ID,accountList);

i am not getting my result in xml string.

View 2 Replies

Attachments Using REST WebService

May 26, 2011

I am currently developing an application using VB.NET in which I am using the REST WebServices. I have been able to do the basics with REST, however, I have not been able to add an attachment (more specifically upload a file, using REST which gets attached). I have done extensive research online, but so far I have not been able to find any working examples in VB.NET. To actually upload the data I use System.Net.WebClient. The following VB.NET code does the important work:[code]As you can see, the postString is converted to bytes and then uploaded to the server. However, I do not know where or how I should be posting the raw attachment itself. The documentation for the service we are specifically using states to use a variable "attachment_ 1," which I added to the postString variable, but I am not sure what the next step should be. Should the file be converted into bytes and appended to the postBytes variable?

View 1 Replies







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