VS 2010 Different Applications Share Same Sessions?

Oct 19, 2010

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.

View 2 Replies


ADVERTISEMENT

Share A Vb Class For 3+ Web Applications?

Dec 17, 2009

I have three different web applications that I made in VS08 vb.net. Each application uses a class that i continue to update (MyClass.vb), other than using Vault to propogate changes, is it possible to create a class or dll and put it out on the webserver and have each web app call that class or dll?

View 3 Replies

Share Data Between Two Winform Applications?

Feb 14, 2011

I have two VB projects in one VS2010 solution. The first program brings in about 60 integers every few seconds from my PC's serial port. The second program, published via Click-Once and running on my customer's PC, needs to see that new data every two to five seconds.

Is there a simple and reliable way to accomplish this, staying with VB?

View 3 Replies

Share DDL's Shared Data Between 2 Applications?

Jun 25, 2011

I would like to know if it was possible to share data between several assemblies using the same DLL.

I'm not looking for a workaround using memory or disk files of some kind of pipes to do the job I just want to know if and how:

1 - I can run an App. referring to a DLL which contains a given shared data structure.

2 - Run another App. referring to the same DLL that will use the already loaded DLL and data instead of creating a new base instance.

View 3 Replies

Share Static Data Between Applications?

Sep 16, 2011

I want to build a main application that make the autentication process and store the loged user... Then use X and Y applications to ask the current user and depends of the user will have full access partial or none access to the app. In future a Z application could be created and will ask for the current user also. XYZ apps are lauched from Main app, when Main app is closed the others are closed and User ID data is cleared. Of course the main app will handle the log on/log off process.

- Store User ID in a Database is toooooo much for just do this

- Save the User ID in a local file like XML is a security problem

I tried to do a WCF Service but i think its not possible to send data and store in it.The other point is who to handle the instantation issue... each program will access to the same static data not create independent.

View 4 Replies

Share Data Tables For All Applications (only One Instance)?

Feb 25, 2012

I have 5 websites running on same server and I have some sql tables that I access frequently. that was time consuming and by defining them shared I pumped them in memory. So my application is accessing those static data tables from memory quite efficiently.
But I realized I did a mistake and I occupied my memory unnecessarily while I keep same tables 5 times for each web application. Now I need to find the best way to share that table only 1 time. my options are;

1) using a local database - sql CE. my original sql database is on other server. so it makes the access slower but I can add a sql CE database(to be honest I never used it and dont know if it gives me anything) to access only these tables while they have static rows.

2) I read over forums that making a WCF using tcp binding. not sure if it will give me any advantage.

3) windows service: is it faster than wcf? programming is defiantly faster as i have experience with winservice but nor sure about performance.

View 2 Replies

Speed Fast Query From SQL And Share Applications

Dec 19, 2009

I'm asking about the best way to get data from SQL Database with less than 1 sec. Really I need to know if iIused LINQ is the faster way or ADO.Net? How can I start with application like CITRIX that will be helpful to share this application after I got data. I mean any example to start create an application to share applications like citrix to share applications?

View 6 Replies

C# - When Deploying .NET Applications - Find Out What Zone A Share Is In Relative To The Computer Running The Application?

Jun 8, 2011

Using any version of .NET how do you find out which zone a particular share is classified under. I am having a problem identifying if a share where my referenced dlls reside is in the "intranet zone" or "internet" zone relative to some user machine that is running my .NET application. I suspect this is a problem because I am having a problem accessing referenced dlls from a share on some machines but not others. How can I tell which zone .NET is classifying that share in so I can adjust permissions accordingly?

View 1 Replies

VS 2010 Passing Objects And Sessions?

Aug 21, 2011

I was wondering if someone could tell me if this is "bad practice" or is a perfectly acceptable way to pass an object to another form.I've cut out a lot of the code to summarise what im asking.

[Code]...

Dim myRetrievedObject as myObject = Module1.returnSavedObject()Is this a acceptable way of passing an object between forms or is it a completely bad idea?Ideally i would like to be able to "add" further objects to the initially created object in Form1 but then on reloading of Form1 , retrieve the new version of myObject with the newly added objects within the myObject class.My initial thinking is this creates an almost session like state for the initial object. So you can use the same object over all 3 forms or more and just simply add to it like a shopping cart type of functionality.

View 10 Replies

VS 2010 How To Share Files

Dec 22, 2011

A thing which i've discovered with vb2010 is that you can't share files like a form or something that way it comes at least. If you attach a form or usercontrol from a different folder it will automatically copy it into the current project folder and then save to that. How can i stop vb from doing this? It won't always be but in this case i need to share a few forms among multiple projects and it would be a royal pain to have to copy them each time manually.

View 4 Replies

VS 2010 Share A Menu Bar Between Two Forms?

Jun 17, 2010

I'm writing a small software similar to the calculator in Windows, the calculator in Windows has a menu bar; in the menu bar, you can find "scientific" and "standard" mode; once you select different mode, your form will be changed, but the two forms still share the same menu bar.

I want to create the same effect of this:

1. Two forms, only one is visible at any time

2. The menu bar on the top of the two forms should be shared between these forms

I just started learning VB for 2 weeks, I'm not sure my thinking can be achieved by VB, if not

View 4 Replies

Retrieving Remote Share Permissions - .net 2010?

May 7, 2010

I can seem to find is vbs code for retrieving remote share permissions using WMI.I've tried to convert this code to run on vb.net but don't seem to be getting anywhere.should I try to convert the below code or are there other methods I can use to retrieve the permissions. I can easily get the list of remote shares using win32_share but not the permissions

Code:
strComputer = WScript.Arguments(0)
Set objWMI = GetObject("winmgmts:\" & strComputer & "
ootcimv2")

[code]....

View 1 Replies

Retrieving Remote Share Permissions - VB 2010?

Jul 6, 2009

I've search tons of .net pages and all I can seem to find is vbs code for retrieving remote share permissions using WMI.I've tried to convert this code to run on vb.net but don't seem to be getting anywhere.hould I try to convert the below code or are there other methods I can use to retrieve the permissions. I can easily get the list of remote shares using win32_share but not the

View 4 Replies

VS 2010 - Saving Projects To Network Share

Jul 13, 2011

I've had this problem with both VS 2010 and Visual Web Developer 2010. I want to save my projects on a network share (which I have as a mapped drive), because our network drives are backed up daily. For some reason though, VS only shows local drives when I try to save a project - all my network drives do not show up.

View 1 Replies

VS 2010 : Share And Edit Variables Between Forms?

Jul 7, 2011

how to share and edit variables between forms? I want the user to be able to enter a value into a textbox and the program store it and then load another form and do calculations and display answers but I can't get it to work.

View 2 Replies

VS 2010 List Folders Under A Specific Share?

Feb 29, 2012

I am trying to list folders under a specific share example: \servernameshare I want the list to display in a listbox named folderlistBx I do not want to see file names or subfolders, just a list of folders

Private Sub ListBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBtn.Click
Dim FS As New FileSystemObject

[Code].....

View 1 Replies

VS 2010 Share A Hashtable In Multiple Threads?

Dec 19, 2011

I have a program that are multiple thread. Each thread calculate some data independently. however, they will need share a hashtable which controls a hardware resource. because the resource is limited, so, it may need lock the resource for a thread, and then release it when thread is finished. and the resource can not be reused immediately, will have to wait for some time, say 5 or 10 minutes, for the device to reset.

View 3 Replies

VS 2010 SQL Server Compact On A Network Share?

Oct 26, 2011

Greetings, I'm a little bit confused about SQL Server Compact behavior.I have a small app that uses a small sdf file located on a network share.The problem is that while the app itself is working perfectly well using the connection string that points the location of the sdf file on a network drive, when I try to open the same sdf using the Server Explorer I get this error:

SQL Server Compact does not support opening database files on a network share.Obviously, if the app IS working it does indeed support network shares, then why Server Explorer cannot open it?

I copied the database file to a local drive but it's not very convenient. What might be the problem?

View 3 Replies

VS 2010 WMI Code To List Remote Share Permissions?

Apr 30, 2010

I've been struggling for hours now to get some working code to list the share permissions of a remote share. I've got WMI code which uses win32_share which lists the shares and path and it works great. I"m now trying to add in a routine to get the share permissions as well.

I've searched just about every site for some sample code and can only find some C# (I think) code.

[Code]...

View 1 Replies

VS 2010 - Applications Made Using VB 2010 Express Expire After Some Time?

Nov 3, 2011

Here are my questions concerning VB 2010 Express:

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?

View 5 Replies

VS 2010 Make A Program That Can Share A Database To Other People Using A Upload/update System?

Sep 5, 2010

i try to make a program that can share a database to other people using a upload/update system but when i try to download/upload it keeps saying mdf file in use how can i make the code so that it Uploads and overwites the file without that error.as it must be so it must upload to my server (build in)and download (also build in)the error gives file in use constandly how can i fix this issue?of that file in use problem. even when these no querry or other code running?

View 9 Replies

Controlling Outside Applications - Resize Multiple Applications And Send Keystrokes To Each One

Sep 12, 2011

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.

[Code]...

View 2 Replies

VS 2010 - Return To Applications Path?

Mar 21, 2012

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.

View 13 Replies

VS 2010 Creating N-tier Applications?

Feb 19, 2011

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 ?

View 10 Replies

VS 2010 Easiest Way To Interact With Applications?

Feb 26, 2011

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.

View 1 Replies

VS 2010 Minimizing External Applications?

Nov 2, 2009

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.

View 5 Replies

VS 2010 Saving Applications Settings?

Dec 4, 2011

I have made a dock bar program

So when I drag programs in I get this

But when I restart my program all the dragged in applications are gone.

save my settings,

View 7 Replies

Access Sessions In Asp.net Handler ?

Apr 13, 2012

I am trying to upload images using generic handler as shown below and I have a normal aspx page where I am showing all the uploaded images after uploading.Everything is working fine.

CODE:

Now I want to add a session variable by generating a random string and add the uploaded images to the newly created random string.

1.I have seen this Question on SO to use System.Web.SessionState.IRequiresSessionState for sessions and how do I create a folder with that and add my images to that folder after doing that how do I access this session variable in my normal aspx page.

2.(Or) the better way is create session variable in aspx page and pass that to handler?If so how can I do that?

3 .I am trying to find the control from my handler.Is that possible?If anyone knows how to get this then also my problem will get resolved so that I am trying to create a session from m aspx page.

View 1 Replies

Secure User Sessions In ASP .net Using VB?

Oct 5, 2009

procedure to create multiple secure user sessions in ASP.net.

View 1 Replies

Shared Methods In ASP.NET Sessions

Feb 25, 2011

As a followup to the previous question I have asked "ASP.Net Architecture Specific to Shared/Static functions" I am still struggling to understand the implications of using shared methods in ASP.NET.

So for example let us take the following code.[code...]

View 3 Replies







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