Sharing Objects Across WCF Services

Aug 16, 2010

Problem with WCF and Multiple Namespaces.The major difference I am having is that I don't control both ends of the wire.My setup is similar to this:[code]The first thing you do is login via the login service and receive a security ticket. The ticket object is located in the My.Objects namespace. For each subsequent call in My.Service1 and My.Service2 you have to pass in the security ticket to authenticate the call. The issue I am having is that instead of the client (a .net one for now but Java and others in the future) seeing one My.Objects.Ticket the references are resolving as My.LoginService.Ticket, My.Service1.Ticket, and My.Service2.Ticket. When the client tries to pass the object retrieved during login to any other function it is receiving an object mismatch error.How can I make each service resolve objects to the My.Objects namespace?

View 3 Replies


ADVERTISEMENT

Sharing Code Between 2 Separate Web Services?

Jun 2, 2010

I have 2 seperate web services. They both run on the same machine.One of the functions is the same between the 2 web services. It is a huge function and i hate having to repeat code. Is there any way to share the code between the 2 services other than having one service request the function from the other service? I'm a bit hesitant doing it that way because im worried about performance. It would mean for each request into service A i'd need to create a service B instance and call it.

View 5 Replies

Sharing Microsoft Office Events With Processes (i.e. Windows Services) Via VB

Mar 27, 2009

Is it possible to expose an event in an Microsoft Office product to a Windows service? That is, are the Office product events shared with other processes like Windows services? I know I can handle these events in VBA code in Word/Excel. However if the code is disabled the handling does not occur. I want to be able to have a service run in the background to log these events as they occr.

View 4 Replies

Sharing Parent Variable With Child Objects?

Nov 5, 2010

I am developing a new class which is a control that inherits from the "Panel" class. In this new class, I have three objects that are generated every time I create a new instance of the class. For simplicity, I will call this class "garage" and the three objects "BMW," "Lexus," and "Acura." So each new garage has three types of cars.

how can I share a variable from the Parent class with all of it's child objects? i.e. The garage has an array variable called "tires" which all three cars use. Rather than create each car object with the tires parameter, I would just like to keep the tires parameter in the parent class so that all my child objects can use it. I know that normally the parent class should provide the child class with all information when creating the child but it would seem redundant to pass the entire tires array each time since all three cars use the same tires and the tires object never change.

View 4 Replies

What Is Ado.net Synchronization Services And How To Use These Services

Mar 14, 2009

What is ado.net synchronization services and how to use these services

View 1 Replies

Make Objects From The ToolBox Using Code Instead Of Changing Existing Objects Invisible Then Visible Later?

Dec 5, 2011

make objects from the ToolBox using code instead of changing existing objects invisible then visible later?

View 7 Replies

Sql - Error The SqlParameterCollection Only Accepts Non-null SqlParameter Type Objects, Not Int32 Objects?

Jun 23, 2012

I am getting this error, Not sure why it is happening "Error The SqlParameterCollection only accepts non-null SqlParameter type objects, not Int32 objects."I have tried with all sorts of possibilties, now try to enter default data as dummy data,

Using connection As New SqlConnection
connection.ConnectionString = ConfigurationManager.ConnectionStrings("DentalDeviceConnectionString").ConnectionString
connection.Open()[code].....

View 1 Replies

Modifying Objects Inside For Each Loop Sets Properties Of All Objects With Values Of Last One?

Jan 29, 2011

I have a program like this.

Module Module1

Public Class Mstr
Public Property Prop1 As String
Public Property Prop2 As String[code]....

But it is not working as I expect it to. You can see it from.The DtlsB properties of all three DtlsA objects are having values from last iteration.

View 1 Replies

Random Objects - Let The User Input Objects To A Richtextbox 1 Object On Each Line?

Jan 6, 2011

I want to let the user input objects to a richtextbox 1 object on each line, and somehow use Random.Next to select pseudorandomly a few objects, the number 'few' inputted in a textbox.

View 9 Replies

The SqlParameterCollection Only Accepts Non-null SqlParameter Type Objects Not String Objects?

Jan 18, 2012

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Using conn As New SqlConnection("Database=Clinic_Management_System;Data Source=.SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|Clinic Management System.mdf")
Dim cmdRecord As SqlCommand

[code]....

View 2 Replies

VS 2008 Inherit ListView - Dispose Of Two Objects When The Form's Disposing Of It's Objects

Feb 7, 2010

I have a user control that inherits the FW ListView and I need to dispose of two objects when the form's disposing of it's objects. Here's what I've concluded already, am I on the right track?

[Code]...

View 3 Replies

Child Objects Raising Events In Parent Objects?

May 1, 2009

long story short, I have created a ListView type control, using UserControls for the parent control and the ListViewItems. Most the of the control is written and works fine, right up to the point where I tried to replicate the 'Control.SelectedItems(0).Index' property and the 'SelectedIndexChanged' event.

Each child object knows its index value, and could pass this value via the SelectedIndexChanged event (assuming this is how it works in a normal ListView control -- user clicks on an item, and that item fires an event updating the selected index value in the parent object).

How does the child object raise an event in the parent object? I have a feeling this could be done with Delegates, but I'm still learning about their usage.

View 1 Replies

ASP.NET Cast ArrayList Of Objects To Custom Objects?

Aug 9, 2011

getting the following error Unable to cast object of type 'System.Object[]' to type 'OrderService.webdirect_WebLinesRow[]'. On the line

webdirect(web_companyID, web_locationCode, web_customerNumber, web_orderNumber, web_orderReference, web_orderDate, webLinesArray.ToArray(), o_Company, o_LocationCode, o_CustomerNumber, o_OrderNumber, o_OrderStatus, o_OrdDescrip, webRespArray)

I created the webLinesArray.ToArray() array as such

Dim webLinesArray As New ArrayList()

Am I missing an additional cast or something ?

View 1 Replies

Compare Two Objects To Check If All The Properites Of Both The Objects Have Same Value Or Not?

Aug 28, 2008

I want to compare two objects to check if all the properites of both the object have same value or not. for this i need to use the reflection to enumarate through all the properties of an object and check the value of the property. To try the code just i have written a Employee Class having Two Properties EmployeeNo and EmployeeName. I am creating an object of the Employee class and need to write a function that can list the values of all the properties in the class.

[Code]...

View 2 Replies

File Sharing Without Using LAN

Jun 6, 2011

We are given a task to create a software that can share files between two computers without using lan (internet connection) but the presence of hardware devices can be used like cable, rs232, usb to usb or can be bluetooth to bluetooth file sharing. We searched about file sharing without using lan. The result was "socket programming". Is socket programming is applicable for vb.net? If yes, how is it program?

View 1 Replies

Sharing A Private Sub?

Jul 10, 2011

how to make projects which span multiple files and classes just fine. I've had big multi-file things working.I've been told explicity that my classes have to be private...yet at the same time I'm supposed to have a main method elsewhere and somehow call a menu in my main working file.I can get the program working perfectly when I do it in a logical manner but I just can't figure out how to call a private sub. I keep getting the error reference to a non-shared member requires an object reference.I've tried breaking the rules a bit and making one initial sub which is public, shared, etc... but all this does is delays the error until it tries to call its first private sub.

View 3 Replies

Bind Objects With Nested Objects?

Jul 21, 2009

I am tring to bind a class to a form where the class contains other class variables. For example:

Class Character
Private _name as String
Property Name as String

[code]......

View 5 Replies

C# - Sharing Code Between 2 Projects Without A Dll

Dec 2, 2010

How can I have code-sharing between two projects without making a dll?

The issue is: I have a tool that syncs users & groups from LDAP to a database.

Now the tool is a windows service, but testing it as such is very difficult and time consuming.

Which is why I made a console application where I can test the LDAP syncing, and then just copy the respective sourcecode-files over to the service project.

But... keeping the common files in sync is a bit of a problem. I don't want to make a dll, because this probably creates me a problem with the 3rd project, a windows installer (for the service) where I have to use ExecutingAssembly path...

Is there a way to share the code without making a separate dll? Automagic statical linking, so to say ?

View 6 Replies

Can't Enable Net.tcp Port Sharing

Jul 13, 2011

I'm doing my dev work on a Window 7 x64 machine, deploying to a Windows 2008 x32 server. At the moment I'm adding WCF services to some internal apps so that we can build smaller clients using net.tcp bindings that report to the user what the server is doing without running multiple instances of the server. To cut back on how much administration the apps will require, I tried enabling port sharing on my first server app. I'm using the app to self-host the WCF service so they can be easily moved from one server to another if necessary. Here's the code starting the server:

Dim _service_host As ServiceHost
Dim active_server_address As Uri = New UriBuilder("net.tcp", "localhost", CInt(My.Settings.ServerPort)).Uri

[Code].....

I get the following error when I put a breakpoint at the last line: Unable to automatically step into the server. Connecting to the server machine 'nettcpportsharing' failed. The requested name is valid, but no data of the requested type was found. The Try...Catch block housing that code says the exception type is AddressAlreadyInUseException...but when I run netstat I don't see anything else listening on that address. There's no occurrence of 'nettcpportsharing' anywhere in my solution. I've checked to make sure that the Net.Tcp Port Sharing service is started.

View 1 Replies

P2P Chat And File Sharing?

Jun 10, 2011

I am working on developing p2p chat system and also file share system....But only thing is that ...i can't find out the way to find how to implement it...i have worked on client server programs but i m not able to get p2p...The concepts of P2P are:-

1. All nodes connected can act both as server and client depending on requirement....

2. They can connect to each other find file who is the owner of file and then ask for file....

View 1 Replies

Sharing Data Between Forms?

Nov 17, 2009

I am working with several RFID readers that perform different function in my vb.net program. Currently each reader port number is hard coded into the respective form. For example, reader 3 operates on COM1. However, this will be problematic when installing on different machines.

What I would like to do is have a "configuration" form where the user can select each reader and then select the COM port. Then all other code references these settings. What would be the best approach for this.

The only way I know to do it currently is to place this information in a small database and then have the forms reference that database, but it is a lot to do for such a seemingly trivial task.

View 3 Replies

Sharing Memory Between Applications?

May 11, 2009

I have to implement some way of communication between 2 applications:

Program 1 is receiving data at a relatively high rate (sometimes up to 100k in a second). This application receives the data, does only very few computations and saves the received data to disk for later in-depth-analysis or just recall.

Program 2 shall do some real-time analysis on the same data which may at some point become rather complicated.

It is necessary to split up the 2 tasks into separate programs because the data has to be saved under all circumstances and without losses. Program 2 is still in a development phase, it has to be improved, recompiled, debugged. This shall not disturb the data collection and archiving.

Since application 2 has to go through all the data that program 1 receives it would be slowing down everything very much if the programs had to communicate e.g. via TCP. Therefore I am looking for ways to have some shared memory or whatever else might make it possible for P2 to access the data collected by P1 without too much overhead.

View 12 Replies

Sharing Resources Between Forms?

Apr 12, 2010

I have some icons and images that are stored as embedded resources in my form1.resx file. Is there any way I can access these resources from my Form2 without adding the icons as project resources?

View 5 Replies

Sharing Text Between Forms?

Sep 9, 2008

How do I share text between forms?I want a box to popup exactly like a input box, but needs to be multiline, Is there any east way to do this or will I have to create a second form?If so, how do I share the string between forms to then output in a textbox on 1st form?

Also, I have VB 2008 Standard, and I want to build an application for a handheld, Is it possible to build an application and then pass it over to someone who has the professional version to make it work on pocket pc? Or does the entire build have to be on pro already?It's a very simple program...

View 4 Replies

Sharing UI Validation Between Forms?

Jan 25, 2012

I am trying to figure out how to seperate my business logic from my forms. This is my first attempt at doing this, but I would like to figure out how to handle events from multiple forms within a class. I have found myself routinely writing the same logic over and over in each form class and its time I figure out how to completly seperate out that logic in winforms so I can reuse the methods across all of my forms.

So basically I have this click event in form1:
Private Sub btnSubmit_Click(sender As System.Object, e As System.EventArgs) Handles btnSubmit.Click

[code].....

View 1 Replies

Sharing Variable Value Between Forms

Jul 31, 2009

When I declare a variable as public, shouldn't it be available in another form? I am trying to write a windows mobile prg with 12 static mileage points, form1 has the 12 buttons for start point, but when I call form2 with the destination points, my start variable value is not carried over. I intend to then assign a mileage based on the two points and write to file on mobile device. We support 12 schools, and I want my employees to track mileage easily.

Public Class main
Public start As String = "start"
Public dest As String = "dest"
Public miles As Decimal = 0
[Code] .....

View 4 Replies

Sharing Variables Between Forms?

Jun 16, 2010

i've almost completed my Yahtzee game except for the high scores function. I've got everything worked out except how to take the highscore variable from Form1, and share the data with Form 2

View 12 Replies

Two Datasources Sharing One Combobox?

Feb 11, 2011

I have two comboboxes. Depending on what is selected in the first combobox, I want the second combobox to display a different field from a different table within the same database (.mdb).Is this possible?I have the following code, but I get a "Complex DataBinding accepts as a data source either an IList or an IListSource." Error when running the code.

[Code]...

View 5 Replies

Two DatsSets Sharing One Combobox?

Feb 14, 2011

I have a database (.MDB) containing several tables. I also have two comboboxes on a form. I would like to populate the second combobox with a field from one of several tables in the database based on what the user picks in the first combobox.

So... if the user selects Option A in the first combobox, then the second combobox would be populated with contents from a field in table A. If the user picks Option B in the first combobox, then the second combobox is cleared of items from the table A, and repopulated with contents from a field in table B.

I basically created the comboboxes on the form and set the DataSource and Display member of the second combobox through the control's properties. The TableAdapter (is this the corrector terminology) was created automatically by the IDE. I have tried using the code below to switch the tables, but I get an error: "Complex DataBinding accepts as a data source either an IList or an IListSource."

Select Case strTagPrefixTable
Case "BLT"
cboBLTFmt2.DataSource = ECDT_C_V_BOLTSTableAdapter

[Code]....

View 4 Replies

VS 2008 Sharing Development?

Mar 5, 2010

I have been assigned to a project where an existing developer has been working on a web app on VS 2008 storing all files on his local workstation.I need to assist and eventually take over deveolpment of the web app development. My workstation only has VS 2005 but I will be installing VS 2008 in the coming days.

My question is: what is the best way to access all of his work, and make it so that it is acessible to other developers as neccesary.

View 4 Replies







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