 |
| General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 18th, 2004, 09:25 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
|
|
SecurityException running .NET from shared drive
We have a shared network drive which is used to house applications we do not wish to install directly on our desktops. Users reference programs there via short cuts. This seems to work well for most programs, but my VB.NET Windows program gets this error:
An unhandled exception of type 'System.Security.SecurityException' occurred in Unknown Module.
Additional information: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, version1.03300.0, Culture=neutral, PublicKeyToken=q390w58ghw459ghu8hp4 failed.
Is it possible to run a .NET Windows application from a remote folder? What do I need to do to get this to work?
|
|

October 18th, 2004, 01:10 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
|
|

October 19th, 2004, 07:55 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
|
|
That did it! Thanks, Katsarosj! Now I just have to figure out how to automate this change to 100 desktops.
One odd thing. I have Framework 1.0 and 1.1 on my machine. As 1.1 was the later version, I applied the change to 1.1 and that did not fix the problem. It wasn't until I changed it in Framework 1.0 that the program would run. The program was originally written in 1.0, and apparently it did not upgrade to use 1.1 when I installed 1.1 on my development box. How can I point the solution to 1.1?
|
|

October 19th, 2004, 08:57 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
Which version of Visual Studio do you have? The project won't upgrade to the new version just by installing it. You will have to open the project in Visual Studio version 1.1 and you will get a prompt to convert it to the new version (always make a backup before you do this). Click OK at the prompt and it will convert it to 1.1 for you.
As for changing these settings on 100 desktops, I would first look into whether or not there is a group policy in Active Directory that you can set on the server, assuming that you are on a Windows 2000 or later domain. You could then push those settings out to everyone without having to physically touch them. I haven't done it for this type of problem, but it works wonderfully for the ones that I have done.
|
|

October 19th, 2004, 09:10 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
|
|
1.0 and 1.1 have both been installed. But when I start VS, it comes up with 1.0 automatically. How do I change the reference?
We're in an XP world, but AD has only been partially enabled at this point, I think. So I'm not sure whether such support is in place, but our network guru is working on it even as I write. Thanks!
|
|

October 19th, 2004, 10:22 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
Start version 1.1 and then browse for the project and double click the solution icon for the project you want to convert.
J
|
|

October 19th, 2004, 11:30 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
|
|
The short cut I have in my start menu (labeled MicroSoft Visual Studio .NET) brings up version 1.0 automatically. No additional short cuts appear to have been created by virtue of upgrading the framework, which was performed as a standard Windows upgrade package. So my question remains - how do I start up VSE with Framework 1.1 loaded?
|
|

October 19th, 2004, 11:45 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
OK, well looking at your response, I guess I have to ask again. Did you install just the Framework version 1.1 or the entire Visual Studio version 1.1? Installing just the framework will not upgrade Visual Studio to 1.1, you have to buy that. Installing just the framework allows you (or other people) to run applications created with that particular version of .Net.
However, if you have Visual Studio 1.1 and installed it, look for a directory/executable on your hard drive similar to this one:
"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe"
J
|
|

October 19th, 2004, 01:04 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
|
|
As I said, I installed the framework as a part of a Windows upgrade. Based on your response then, it appears that it is not possible to do what you've suggested with my current set up. Thanks.
|
|

October 19th, 2004, 03:32 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
Correct. You will have to shell out more money to Bill in order to get the Visual Studio upgrade. However, since you have already waited this long, I don't think that I would upgrade until 2005 comes out...
J
|
|
 |