Build Correct Way Of N-tier Apps Without Service And Remoting?

Jul 4, 2009

How to build the n'tier application. I have read some book tell about this, like "Building Client/Server Applications With VB.NET" by Jeff Levinson, beth massi video tutorial "building simple n-tier applications", and other else.

In my practice, i create 3 projects to handle each layer progress. That are DAL (Data Access Layer), BLL(Business Logic Layer) and UIL (User Interface Layer).

My problem is i don't want to use web service like beth massi do, and i don't want to use remote object like Jeff L do. So i decide to create it by my rules. Here above something that i do.

In DAL Section, I put all datasource like Beth Massi do over here. I also create a manager class like massi do to handle datasource over here. Also in this class, i create the UML structure of this datasource.

[code]...

View 1 Replies


ADVERTISEMENT

Build N-Tier Web Application?

Oct 14, 2009

Im trying to build my first N-Tier web application. And it seems like im doing it wrong. Ive been kinda working out of this book, but to me it doesnt seem like the right way to do this. In the book the guy builds User and Data centric objects but everywhere I see ntier everyone is always talking about BLL and DAL ive seen nothign on UC and DC objects.Right now I have Interfaces and serializable structures, user and data centric objects. The data centric object does all the validation and connecting to the db, as well as returns any violated rules, but when I once i started pulling it all together it just doesnt seem right.Ive already wrote a ____ load of code and now am kinda stuck. I dont know if i am doing this right and dont want to continue writing any code if this is all messed up.Ive been reading as much as humanly possible and im still just a little confused. I mean I understand the concepts of seperating the logic into different layers and tiers and all that but as far as my implementation of that I just feel somethings a bit off.

View 3 Replies

Show User Form On A System Service Event Via IPC Remoting?

Jul 7, 2009

I am struggling with this issue for serveral days now.My application needs to work like wsus (windows updates) does. On a certain event triggered by a windows service working under SYSTEM account it needs to show a (second) form under the user context.The IPC Remoting works fine so I think my issue is in the threading.When I use form2.Show() form2 appears but the form freezes.When I use form2.ShowDialog() the form appears but I cannot get the focus on it.

Service running under system account (in this example a simple console application)

Code:Imports ClassLibrary1Module Serv
Sub Main() Dim SDSIPC As Semaphore = CType(Activator.GetObject (GetType(ClientFromServer), "ipc://Client/SreeniRemoteObj"), Semaphore)
SDSIPC.DoSomething()

[Code]...

View 5 Replies

Use Window Form App To Manage Windows Service Apps My.settings?

Aug 26, 2009

I have a solution with two applications in it. One is a windows form application that I want to use to set and manage a windows SERVICE application app settings.

For example. The form has the database connection string on it, when updated. The windows service application settings are updated.. I can get it to work for the windows application, but I need to jump boundries to the other application( Windows Service) and update the app settings there.

View 5 Replies

Build A Web Service Using .net?

Jun 17, 2010

im want to learn how to build a web service using vb.net.

View 1 Replies

WPF Service Control App Won't Build

Mar 10, 2009

I have the following code:

XAML code for Window1.xaml and the VB.Net code for Window1.xaml.vb.

The error I get is the following[code\...

I can't see any problem in the code and what it should do is trigger an animation depending on the status of a service (spooler service in this case). It may be because I am manually referencing to the System.ServiceProcess namespace, which is not available in WPF framework by default, but I'm not sure.

View 1 Replies

Asp.net - Correct Syntax For VB Web Service Code Sql Insert FOR XML AUTO, ELEMENTS?

Nov 30, 2011

I am having some trouble getting the correct syntax for a bit if code. I am using vb to insert data into a db and outputting the data as XML, here is the code

<WebMethod()> _
Public Function addTrack(ByVal tTitle As String, ByVal tAlbum As String, ByVal tGenre As String) As String
Dim conn As New SqlConnection("Data Source=MARTIN-LAPTOPSQLEXPRESS;Initial Catalog=mp3_playlists;Integrated Security=True")
Dim sql As String = "INSERT INTO Tracks (trackTitle, trackAlbum, trackGenre) VALUES ('" & tTitle & "', '" & tAlbum & "', '" & tGenre & "') FOR XML AUTO, ELEMENTS"

[code]....

The code is for a ASP.NET web service, when I click invoke on the website i get the error Incorrect syntax near the keyword 'FOR'. If I remove FOR XML AUTO, ELEMENTS everything works find, db updates but I dont get the data to output as XML. I think the issue is with the brackets required for the insert values because this issue does not occur if the SQL statement is a SELECT statement which has no brackets but i just cant figure out the correct syntax?

View 1 Replies

Build A Service In Program 2008?

Oct 9, 2009

I've been tasked with converting an old c++ service to vb.net

View 4 Replies

Build One Windows Service Application Which Has The Reference To 4 Dll?

Apr 1, 2010

Today I was build one Windows Service Application which has the reference to 4 Dll. After building the Release I found that there was one more DLL in addition to the reference I have. I checked using ILDASM and it only showed 4 dlls.What could be the issue ? How I can I check why it is getting unwanted DLL's in Release Folder?

View 10 Replies

Build Windows Service Programmatically In Vb2008?

May 10, 2011

how to build application in vb 2008 for running as windows service, from msdn site link: [URL]

View 11 Replies

Windows Service Build Error On MyLog.SourceExists?

May 9, 2011

Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As _

[Code]...

View 2 Replies

Build Web Service In Java/PHP That Create A Native DataSet Object To Be Consumed By .NET?

Nov 8, 2011

We had plan to create a three tiered architecture database application, where the middle tier will be implemented using Web Service. We're going to use Linux for the server, so I think for the web service to be able to be implemented, we only had PHP/Java left. Is this right?

The constraint is, we're going to use VB.NET for the client application.We already had a two tiered VB.NET application from our last successfull database application. It use a lot of DataSet for the result of SQL execution. Now, what I had in mind, is a simple approach of converting all procedure that return a DataSet Object, to be a WebService method. But, because of this thinking, I don't think we can do it in Java/PHP. That is, we'll be enforce to use a ASP.NET approach. Is this correct? I assume my answer from this article Consuming a DataSet from an XML Web Service (ADO.NET)

View 1 Replies

Windows.Forms Based Apps Vs WPF Based Apps?

Jun 21, 2010

what WPF based apps are?Is it an application that runs under Silverlight? If so, how?I know; Windows Forms based apps,console apps,DLL _ Class Library Projectsand I've had an introduction to ASP.Net.What I mostly want to know is, if WPF apps are for Silverlight then do they also run in a server based fashion like anASP.NET website would when you create ASP.Net webpages?Is it a way of creating what looks like a FORMS BASED application but it runs in a browser instead or what?Please enlighten me a bit further as I have no idea what WPF is all about.

View 3 Replies

.net - WCF Service Hosted In A Managed Windows Service Connect Using A WCF Service Application

Jul 14, 2011

i have a Windows service that is hosting a WCF service through net.tcp and this is working great. I have also created a WCF service application. I am trying to add the net.tcp service reference to the service application. Then I add it to the GAC that goes ok but if I try to RegAsm the WCF service application to allow it to be called from Server.CreateObject I get the error:

Warning: Type library exporter encountered a type that derives from a
generic class and is not marked as
[ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be
exposed for such types. Consider marking the type with
[ClassInterface(ClassInterfaceType.None)] and exposing an explicit
interface as the default interface to COM using the
ComDefaultInterface attribute.

It does not work. I have tried to call it through a class library but this does not work either as the end point is not set correctly.

View 1 Replies

How To Configure Remoting For LAN

May 17, 2012

Can we configure remoting for the LAN? I studied it halfway but I realised that its for web, but I think it can be possible for LAN too.

View 2 Replies

VS 2010 .NET Remoting With VB

Apr 5, 2011

I am creating a client/server application that connects via .NET remoting and I'm using TCP. I have 2 config file for client and server. The config file and the server application runs good. But for the client, it runs even though the server is offline and no port is open listening. I've gone through quite a lot of example and don't really know whats happening. This is my client config file.

[Code]...

View 8 Replies

C# - Migrating .Net Remoting From Framework 2 To 4?

Feb 29, 2012

I currently had a .Net Remoting Application running on Framework 2 under IIS. I have to upgrade it to Framework 4 in order to use some new components. I have been able to set everything up and running smootly on Framework 2, but as soon as I change to Framework 4, I get the following exception when I try to call one of the function of my remote object.

The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-52-75-6E-74-69-6D-65-2E-52-65

This bug is not the real bug, it is caused by the fact that the remote object is throwing an exception, and IIS wrap the exception in XML, which throws the BinaryFormatter off.See this for more info on the bug.

This is very unfortunate because I cannot see what is causing the exception, and having never used any Remoting before, I do not have much ideas as to where to start debugging. It seems the Exception is thrown before even stepping in the code because I do a fair amount of logging and none of it seems to be triggering.Basically, I'm looking for some clues or pointer from people that encountered similar problems:

What could be causing the exception when no code has changed besides Compiling from .Net 2 to .Net 4?How can I get the full Exception message that is returned?

[Code]...

View 1 Replies

How To Communcate With Remoting Server

Apr 19, 2009

1)i created remoting server now i want to communicate with that

2)if i want to develop a remoting application how i startadil

View 1 Replies

VS 2005 Remoting Causes Threading?

Oct 1, 2009

I have a server, listening to Remoting request on TCP channel. When first client was connected, it was able to proceed on the lines of code shown in the picture. When a second client connected, it shows this error

View 6 Replies

.net Remoting Returns System.BadImageFormatException?

Aug 4, 2011

I am working on a .net remoting project (VS 2008). I have a .dll hosted in IIS 6 windows server 2003 r2.

When i try to test it in internet explorer "http:localhost/hellone/test.rem", it shows the following error

System.BadImageFormatException: The format of the file 'SimpleTest' is invalid.File name: "SimpleTest"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)

[Code]...

View 2 Replies

Communications :: Download An Application That Uses .net Remoting

May 26, 2011

I have downloaded an application that uses .net remoting.

The problem is that I don't know how to configure it to communicate over the internet.

From the blog [url] says to set the tcp 192.168.1.100 . As far as I know this is the intranet IP. My external IP is different. Do I need a server or a Static IP from my provider?

View 1 Replies

Cross-AppDomain Singleton With Remoting ?

Mar 8, 2011

I have an Addin for MS Excel which needs a singleton to share data amongst modules.Depending on the version of Excel (2003, 2007, 2010), and how Excel was started, it calls my addin from different, unpredictable AppDomains, which prevents the classic singleton approach.Creating a custom AppDomainManager won't work because Excel has already created the AppDomains before the addin is called.

Linking to mscoree to enumerate domains breaks the addin registration process (and I really don't want that anyway); there doesn't seem to be any other way of enumerating, so that isn't an option either.The only solution that I've found is to use remoting. Here's my test rig:

Imports System.Runtime.Remoting
Imports System.Runtime.Remoting.Channels
' Remeber to add reference to System.Runtime.Remoting DLL[code].....

Once everything is running, access to the singleton takes ~100µS, which is perfect. I can live with the ~400mS the first time each AppDomain is initialised. The problem is at startup, where the remoting invocation takes ~2.5 seconds.

View 1 Replies

Explain Singleton Architecture Of Remoting?

Jun 6, 2011

Explain Singleton architecture of Remoting.

View 1 Replies

Make Remoting Cache Object?

Aug 5, 2011

I'm using the following code in a singleton remoting object MBRO. This function is only called on the server side.

''' <summary>
''' Return a cached DataCentricObject

[code].....

View 1 Replies

Remoting With Client Activated Object

Jul 9, 2010

I am trying to switch from a SingleCall Remoting infrastructue to a client activated object infrastructure. But can't get it to work. Probbaly a setting. On the hosting server (a console application) I have:

[Code]....

View 7 Replies

Use Client-Activated Objects In Remoting?

Apr 20, 2009

When we use Client-Activated Objects in remoting ? can any one provide an example on Client-Activated Objects

View 3 Replies

VS 2008 Capture .NET Remoting Calls?

Sep 22, 2010

We have a client server application that 650 users are using everyday. Lately they have started complaining about over all slow responses and slowdowns in normal application usage like searching, reporting etc.We are using .NET Framework 3.5 and .NET Remoting is the technology we have used for client connection to the server side. We can't remove that and use something else due to legacy application maintenance. We are using SQL 2008 R2 x64 on a very good server.We have gone though the basic steps of making sure that all the SQL side is ok everything is well tuned but we need to convenience the client that it is not the application but the database that needs to be regularly maintained by a DBA in order for it to run smooth due to the nature of the application making tons of changes and inserts in the database everyday.

Anyways I need to write some sort of module that can plugin into the .NET Remoting calls so it can log the normal usage of different methods on the server like;* How many times a remoting method is called* What params a remoting method is called with* How much time it takes to execute each remoting callIs there anything available in .NET Framework that can help me? I read something about .NET Remoting Sync but not too sure if that is what I need to use? If any can shed any light on the subject or nudge me in a right direction with some sample code, that would be great.

View 2 Replies

VS 2008 : Build An Application To Monitor A Site To Build Statistics From The Data Being Read?

Mar 3, 2010

I'm trying to build an application to monitor a site to build statistics from the data being read. This HTML looks like this.

<div id="history">
<h4>HISTORY</h4>
<table border="0" cellspacing="0" cellpadding="0">

[code]...

Now I can read the html and put the text anywhere, I just don't how to read specific parts so I can separate the data out.

View 17 Replies

Axinterop.wmpLib.dll Works OK In Debug Build - Not OK In Release Build

Feb 15, 2012

I have a Form with a Media Player in it. Which plays a Song.

[Code]...

It's playing in the background since the Form is hidden. When I play itin Debug, everything works fine. When I run the app outside Debug, I get this error: [URL] The Music File is there, but strangely, there comes this weird error.

View 4 Replies

Is It Correct To Correct Properties Values On The Fly

May 15, 2010

Is it correct to correct properties values on the fly? for example: (note the .ToLower)

Public Property X() As String
Get
Return _x.ToLower
End Get

[code]....

View 1 Replies







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