I'm trying to learn this and had gone through some tutorials (found on googling).But most of them are a bit harder to understand. An easy to understand version was not found Do you know any links to a good tutorial ?
Also, where can I get a good example program written using 3-tier architecture in VB ?
I'm creating an N-Tier (or at least I think its N-Tier!) solution where I have the following:
WPF client side application (presentation layer) WCF service hosted in a windows service (data access layer) SQL database (data layer)
Now bearing in mind this is the first time I've tried to design anything like this, I might be going about it completely the wrong way...I've created 3 examples classes that would be my 'business objects' (im not quite sure where that fits in within the layers I listed above, because these business objects would be defined in a DLL that would be used by both the presentation layer and the data access layer). You can see them here:So then in my WCF service (data access layer) I would have methods like this that would be exposed to the WPF client:These are just examples but you get the idea. Is this the right way to do something like this?I saw one design that someone had posted somewhere that basically looked to me like it merged the Business Objects and the DAL together because in their class that represented an order, they had properties like you would expect for Order Number etc etc but then they also had methods like "GetOrders" within there too.I dunno I'm still very new to this type of design but I thought that the idea of the business objects was that they just represented business items, such as orders etc, so I thought they would just purely hold properties/fields and no methods or anything like that
i am a student who is quite a newbie in visual studio.. i have learnt the basics of VB and windows application during my school time..but now.. i am attached to this company for my final year project. i am required to do a webcam application..
I know a bit of VB coding but I'm no professional. I'm currently about developing a web application in Visual Basic but there are a few requirements that I need to check before I begin.1. When creating a 'WPF Web Application' what type of code needs to be used?2. Is there a way of sending information from a web application to a database in Microsoft Access?
1. I've registered my VB 2010 Express, will it still expire?
2. Will the applications I made using VB 2010 Express expire after some time?
3. Is it OK to write my code in the designer.vb file? I don't know why, but when I started writing my application it took me to the designer.vb instead of form1.vb code.
4. I've been working on an application for a week now, but suddenly I can no longer access my Design View(Shift-F7). All my codes are written on the [form name].Designer.vb. I can still view my codes but I cant access my form layout. On the solution explorer, my forms no longer have the 'form icon'. When i press Shift-F7 nothing happens. Right-clicking the form on the solution explorer doesn't show 'View Designer' option. How can I fix this?
In the above form the user will first enter a folder name and click the create folder button,then the folder will be created in the applications bin folder.I did the code for this:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ComboBox1.Text = "" Then
I am working on a project that is used for key broadcasting. Don't worry nothing illegal, I'm making a multibox application for world of warcraft. However I am having trouble when it comes to launching and manipulating other applications from another.
I have one small problem on my app, here's the deal, when I run my app that have a button for "load playlist" and when I click on file>options my app is looking for settings.xml (created before by the same app) on the same folder from where I loaded my playlist. Load playlist button is on my Form1 and Form4, and settings is on my Form6, and this happend every time I load anything, open anything, so my app remembers last opened folder. Is there any way that I can return my path to apps path? I need to mention that this applies only to Windows XP, idk why, because on my win7 it works just fine.
just wanted to ask if it is possible to have different applications sharing the same session (i.e. database session)... i'm planning on creating a web-based application and a form-based application using asp.net for web and vb.net for forms but i need to have them share sessions since some global variables will be session based and also authentication to one application should also authenticate on the other.
So I'm creating an application that will notify a person of something when I send a command. I've been thinking of just using a TCP connection to do it but there must be an easier way.
I am using VS 2010 to create a Mac OSX like dock application.Everything has worked great apart from one of the key features of the dock! So what I want is:When the user clicks the minimize but on any (including external application) it minimize to the dock I have created rather than the windows Task-bar.
Im am trying to get two separate applications to communicate with one another via a txt file. The first application writes to a txt file every even second and the second application reads the text file every odd second. The problem is Im getting an exception saying The process cannot access the file FILE_PATH.txt' because it is being used by another process. Not sure if my code is correct or not? Or if there is a better way to do this?
I am wondering if it is possible to run an application from a domain account that has restrictions on running .exe files by coding in the local administrator details (username / password).
I could not find a clear cut answer to this question when searching MSDN (too many references come up about Microsoft Document Imaging) so thought it better to ask.
Is it possible in VS2010 to create a new MDI application and import stand alone Windows forms applications into it?
The reason I ask, is we have a number of tools that have been created as single apps but there are quite a number of them and it would be nice to combine the lot into an MDI app.
However I don't really want to re-write any of the apps, so is there a way to import them instead?
I migrated some applications from Visual Studio 2005 to Visual Studio 2010. I develope using VB.NET in VISUAL STUDIO 2010 on a Windows 7 PC (32 bit). The applications writed in VB.NET - VS2005 run correctly in PC having XP, VISTA, WINDOWS 7 and Windows Server 2008. After the migration, the exe of these applications work correctly in PC having XP, Vista, Windows 7 but work stop immediatly on Windows Server 2008. The error returned is 'System.InvalidOperationException'. Seems that the application stop when attempt to evaluate the first global variable that meets. If i change the framework from 2.0 to 3.5, things don't change.
I would like to convert a VB.NET 64-bit desktop application to a desktop WPF application and also to web-based Silverlight application. Can you write 64-bit applications using WPF or Silverlight using VS 2010?
If not, can you write 32-bit WPF and Silverlight programs that act as the presentation managers that interface with the user and have them use 64-bit class libraries? Or do all modules have to be either 32-bit or 64-bit?
im building an application i started it in VB 2008 and i upgraded to VB 2010
then i made some mods and tryed to run the application and then
i get this error
Error2Reference required to assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.Windows.Forms.Form'. Add one to your project.C:UsersAdminDesktop
if anyone here has ever worked with Sentinal HASP keys to protect applications.I understand how to make features in the keys but i do not understand what i need to include in my project to have it authenticate against the HASP at runtime.
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.
I have a solution and I want to divide it up into Business Tier, Data Tier, etc. I think I have to do this by creating a project that contains the data source, another with the forms, etc. Every time I try to add a new project, it literally opens a new project, seperate from the first.
I usually create N Tier applications with ASP .Net applications as per the advice at ASP .Net (data tutorials). Recently ive tried to create an N Tier Windows Form database application and found the method im use to (i.e. ASP .Net) doesnt really work (unless i was doing something wrong).
i am on a project of two tier application with VB.NET + SQL server R2. except desk top applications i never done networked applications + i don't know asp.net
i require advise in few areas
(1) is the encryption required
(2) what are the security measures i must take in terms of connection security
(3) how to use the server effectively with out putting much burden through good client end design
(4) any other guide lines / pit falls
(5) should i continue with vb.net or must & should switch over to asp
(6) what should be the minimum configuration of client system,
(7) Preferable is the thin client systems , is it possible to use thin clients
I have attempted to make my first 3 tier application. In the process I have run into one problem I am yet to find an optimal solution for. Basically all my objects use an IFillable interface which forces the implementation of a sub as follows
Public Sub Fill(ByVal Datareader As Data.IDataReader) Implements IFillable.Fill
This sub then expects the Ids from the datareader will be identical to the properties of the object as such.
In the end I end up with a datalayer that looks something like this.
Public Shared Function GetStockByID(ByVal ConnectionString As String, ByVal StockID As Guid) As Stock Dim res As New Stock Using sqlConn As New SqlConnection(ConnectionString)[code].....
Mostly this pattern seems to make sense. However my problem is, lets say I want to implement a property for Stock called StockBarcodeList.Under the above mentioned pattern any way I implement this property I will need to pass a connectionstring to it which obviously breaks my attempt at layer separation.how I might be able to solve this problem or am I going about this the completely wrong way? I am deliberately trying to avoid using the dataset in any form.
My immediate issue is that currently I have a 3 tier solution (Presentation.aspx.vb calls BusinessLayer.vb which calls DataAccessLayer.vb). However, I want to make BusinessLayer and DataAccessLayer.vb abstract classes because several Webforms will use have the same functionality.
So I currently am doing this (no abstract classes):
'Presentation Layer (pseudocode) public sub checkUser(byval userName as string, byval dept as string) dim isGood as boolean = BL.checkUserAccess(userName, dept)
Which options are there to make your 3-Tier System.Client / Common / Server Now we work with the entityframework and agatha. But are there other options to make a good 3-Tier system?
The agatha framework, makes for us the request/response on the common site. On the server site the response will be filled in. But are there other framework to do all that work for you? Or should you do it without such framework. And call at the server site stored procedure? Or with LINQ? With the agatha we query the repository's with some LINQ queries.
But i am wonna know if there are other ways to do the communication. Maybe there are other and better ways to do it. I hope i get some usefull answer. Where i can read some new things.