C# :: Can Share A Static Field Across Application Domains
Aug 2, 2010
Consider a process, in which multiple Application domains are created. Can we share a single static field across these Application domains or can we pass this static field across these application domains? How does CLR handle this?
View 1 Replies
ADVERTISEMENT
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
Nov 17, 2011
I have a field which is static and readonly. The requirement is that the value should be allocated to the field at the login time and after that it should be readonly. How can i achieve this ?
public static class Constant
{
public static readonly string name;
}
View 5 Replies
Jun 2, 2009
I've got a set of static "enumeration" classes that I'm using to hold meaningful variable names to represent meaningless code values I receive on an input file. Here's an example of one.
Public Class ReasonCodeValue
Private Sub New()
End Sub
[code].....
View 2 Replies
Dec 14, 2009
How to start vb.net application from a shared file in LAN I mean that the application is installed in my PC but I want other users to get access to this application using my shared file.
View 8 Replies
Apr 23, 2010
My problem relates to executing an application located on a network share and getting various security exceptions in trying to do so. By far the greatest number of replies to this sort of problem relate to creating a new Code Group under Runtime Security Policy in the .NET Framework (v2 in this case) Configuration tool. However try as I might, and I've spent hours, trying various things with the config tool (and with caspol), I just cannot get my app to work.Still fails on things like reading command-line parameters and displaying a web page in a WebBrowser control or firing up a browser using Process.Start. In fact I've regressed to creating a VB6 version for this particular task as time is off the essence. Which works fine! As I mentioned lots of people have posted on this topic and not s few of them seem not to have resolved their issues either. So I was wondering if anyway had come up with a definitive solution for this problem which, in my case, seems to affect XP machines only? Seems to work OK on Vista, 7, 2003 Server, etc - although I haven't run exhaustive tests in these environments.
View 1 Replies
May 13, 2010
I developed a Visual Basic Program in my laptop. I can run the program form my C Drive and works perfectly.
Then I put the program in a Share Drive and:
1. If I run the program from my laptop but in the Share Drive I get this Error[url]...
2. If I run the program from my desktop and the Share Disk it is works perfectly.
3. If I run the program from a different user desktop and the Share Disk I get this error[url]...
I suppose it is a Security Issue or something like that but I am not totally sure and I do not know how to fixe it.
View 4 Replies
Jul 1, 2010
I've created an application (a simple calendar app w/vb.net) for my own use and would like to share it with you guys. I don't want money for it, just for the fun of sharing, and maybe get some feedback on it, not regarding the code, but the usability and concept.
However, this might not be the right place, as this forum is more about getting help on specific questions regarding code.
I've looked at codeproject.com, but it seems it's about presenting particular topics concerning code.
Does anyone know of a good place/forum to share and get feedback on finished applications?
View 3 Replies
Nov 27, 2011
When i do a new project, the IDE do very files some solution files, some project files and some folders with some files.when i move my aplication to another computer(without speaking setup files and the framework 4.0), i only need the exe file or more files?
View 6 Replies
Mar 26, 2010
Currently i only managed to implement the google map(static) into my application,but i want to replace it with a dynamic map. Is there any website or example for me to refer? I tried reading up google API website, but i still dont get it.
View 2 Replies
Jan 7, 2011
In VB.NET, my application is quite simple, and it accesses many images and creates a list with them.The images are in my application's Resources folder.The images are accessed in my code where I typed the path, in my PC, how to reach said folder.Works like a charm, my project displays the images etc.Now I go to Debug->Build.Now I go to the bin folder, release folder, and find my application. I upload it.I share the download to a friend.My question is, will the images my application should show will appear? Considering the path I created in the code was manually written?
View 1 Replies
Apr 24, 2012
I need to access to a server shared folder from a vb.net 2010 program, but the user in the same computer must not be able to access to the same folder. The access to this shared folder must be only permiss trough the program. (The shared folder is on a Windows server 2008 Std). It is possible for example to include user and password in the folder string?[code]...
View 2 Replies
Feb 8, 2012
I am creating a Windows application using VS 2008. This has a MDI Parent form that hosts multiple MDI children forms. I have a login form that authenticates the user and creates an instance of a user class. This has information such as UserID, Name etc. I would like this instance available to other windows. How would I implement this functionality?
View 2 Replies
Feb 15, 2012
Any simple way of automatically updating a newer version of my application from a network share. Everything I have read pertains to an update from a web site. This is possibly a simple thing to do but as I have 6-8 users using the application I have to email them all stating there is a new version on the share and for them to copy and overwrite the existing application executable in the program filesapp directory. If this could be done on launching the program within the splash screen that would be fantastic.
View 3 Replies
May 2, 2009
The .NET security model throws security errors whenever a .NET exe is run from a file share. The error does not appear when ran from a local drive. Does anyone know of a way around this without requiring the code to be signed?
View 7 Replies
Mar 14, 2011
i saw more applications can run in more than one systems and accessing a common database whenever update a data from one computer thats reflects in another eg a product is select by one system in a shop it wont showed by another system in the same local network.how to develop that kind of apps what kind of applications they are .please explain about that concept or give some ebook references.give me a simple vb application code in vb.net like above mentioned.[code]
View 7 Replies
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
Mar 14, 2012
If I ping [URL], for example, I got:
[Code]...
That means [URL] points to 173.194.38.130 How to do so with vb.net?
View 1 Replies
Nov 23, 2009
How do I get the list of available domains that a windows user can log on to. I am using LogonUser to validate credentials but my users have the ability to use different domains and I want to populate their options with the options windows provides at Log on.
View 2 Replies
May 16, 2010
This question pertains to the use of the cookie-capable WebClient derived class presented in the How can I get the WebClient to use Cookies? I'd like to use a ListBox to...
1) display each cookie individually as "key=value" (the For Each loop displays all of them as one string), and
2) be able to display all cookies, regardless of the domain from which they came ("[URL]):
[Code]...
View 3 Replies
Jan 13, 2012
In all my previous vb programs I've used the webbrowser control to do things. I'm starting to use the httpwebrequest. So what I'm trying to do with the program is log in to [URL]..This may seem really easy but I'm having issues with the cookies. Once I'm logged in I can access any pages on the subdomain my.ign.com but the second I go out side to something else I'm logged out.
Is there something that I need to change in the cookie? Below is my code so far
[Code]...
View 1 Replies
Oct 4, 2011
I'm having a problem connecting to a MySQL server over two different trusted domains.We're developing an app for internal use and have been using MySQL till now. It's a desktop app written in vb.net.Up until now all the users were on the same domain and there were no issues. Just recently there was an higher-level decision to split users in 2 different domains for various reasons.The problem is that users from the new domain cannot access the server. If that helps, I was told by the administrators that the users from both domains are trusted. Both machines are running Windows Server - 2003 and 2008.The server port is open, the grants are all in there(base_class@%) but upon attempt access denied for user base_class@datablock2.
View 3 Replies
Apr 17, 2012
Regex(@"@(?:[a-zA-Z0-9-]+.)+[a-zA-Z]{2,4}$", RegexOptions.Compiled);
Using the above, I want to pass only values like @gmail.com, @xyz.edu, @co.uk etc...
But I find that the values like abc@gmail.com (valid email ids) also pass through.
View 2 Replies
Apr 30, 2009
I created a project in flex builder with application server type set to none. When I debug, I can access the web service from my local machine thats on a site [URL] When I upload the flex app to [URL] it works great.But, when I upload it to myapp.mysite.com/myapp.html it wont access the web service.
P.S. The WS was created with VB.net, and when I create a flex project with application server type set to .net, it wont access the WS from my local machine this is my crossdomain.xml file
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
[code]....
My guess is that it isn't a flex problem, but a .net security feature... wich I don't know how to configure. .NET won't allow apps to use it outside of its own domain.
View 2 Replies
Mar 23, 2011
The code below tries to clear the cookies for all domains once a user logs out of the system. For some reason, only the last domain in the array is cleared. Why does this happen?
For example, if I change the size of the array to 4 and then change the for loop to only go to 3, then it only logs me out of y.xcv.com.
As a sidenote, I have this loop working on a different server that uses a slightly different function to clear the cookies.
Edit: Code updated per suggestions below. Now it fails on the "as HttpCookie" line. Do I need to include some library?
Dim aDomain(12)
Dim ESidCookie, WIdCookie, EBidCookie, TSidAccessCookie, PSidAccessCookie, SSidCookie As HttpCookie
[Code].....
View 2 Replies
Dec 22, 2009
How do I determine which network domain I am connected to from VB.Net?
View 1 Replies
Sep 21, 2010
how to pull the listing of all domains in active directory. When I use the actual Active Directory tool, if I do a search, I can select which domain I would like to search. How do I pull this listing?
View 5 Replies
May 29, 2012
I have an application I have developed which works great on individual PC's. However I've had some interest from a few customers that asked if I have a network version for site licencing.If my app did not save any data or write any reg entries, this might have been ok. But it does to the local computer. I also built in my own copy protection and trial function that stores data in the registry on the local computer.What would I need to do to enable my application to run on a server/network share, so that the only a serial number needed is for the server?
View 3 Replies
May 3, 2012
I have several reports that all merge onto the same datatable. The user can click several to run and then hit the 'find records' button to run them all simultaneously. Since they each take so long, I'd like to update the user on the status bar as each of these stored procedures is called successfully. However, when I call the procedure, i only get one update at the very end listing evertyhing.
[Code]...
View 1 Replies
Feb 24, 2010
I am building a data based application using VB 2008 an SQL Express. I need to create textboxes on my form using code, (With & End With) method. I need a simple code string that will allow the app to check if the field to wich the textbox wil be databound is Nul, If so the textbox will not be created.
View 8 Replies