Afroze Ahmed

hi to all

i had made an application for which no dlls is required and hence it can be runned by just copying the .exe file to the other PC. now when i try to copy the EXE file to network drives and run it from my pc it is running successfully, but when i go to another pc and run the exe file which is in network drive it is throws an error saying

"application encountered a problem,Please tell microsoft about this problem.and two buttons 'send report', 'dont send' "

my intension is to keep the exe file in the common network and distribute the shortcut of that exe files to every one, who wants to use the application.so that updation for the exe file(if occurs) can be done very easily to that exe file in network,and it will be automatically reflects to every one as all are using shortcuts. this is very clearly done by VB 6.0 and it is not able to done by VB.net.For this simple reason our company is avoiding VB.NET.

please do the need full.

if it is not possible, then is this is an disadvantage of VB.NET over VB 6.0

Thanks & Regards
Oersla Afroze Ahmed



Re: Visual Basic Express Edition Did an EXE file Created Through VB.Net Runs in Network drives

ReneeC

Chances are the location of your executable assembly is not fully trusted by the other computesr. Set the runtime security policy for the assemblies on each node.

"if it is not possible, then is this is an disadvantage of VB.NET over VB 6.0 "

WHen you look at this from the perspective of "Does it run ", .Net may, at first glance appear to be disadvantaged, however, what you are seeing is not a bug, it's quite deliberate and is a security feature after all, this is what "managed code" means. Security is built into infrastructurally, which is not true for VB6.

Look at the larger picture. You have an executable that will run everywhere but will do, who knows what. In this case it's on a disk shared between many computers.

.Net will not run unless it is running in an environment that has been deliberately marked, "Trusted". Your C Drive is so marked, but a shared drive is not.

Now then, which is more secure






Re: Visual Basic Express Edition Did an EXE file Created Through VB.Net Runs in Network drives

EverydayHack

(applause)

Great explanation. Ití»s not that the concept is new to me but I learn so much from your details.

Thank you for your work here.






Re: Visual Basic Express Edition Did an EXE file Created Through VB.Net Runs in Network drives

Afroze Ahmed

hi

thanks for replying

i agree with your explanation,i heard of caspol tool which by running with some parameters security policy level can be changed to full trust level. i had tried this at machine level and succeeded. but when i tried for enterprise level it is not running it is giving an error.

can you please tell how to use caspol tool to make particular path to full trust at enterprise level

did it reuires any rights at network level if so can you please tell me what all rights are required

thanks & Regards

Oersla Afroze Ahmed





Re: Visual Basic Express Edition Did an EXE file Created Through VB.Net Runs in Network drives

EverydayHack

If you want to circumvent the design of the security....

It seems the easiest way, instead of breaking the .exe, would be to make a batch file copy the exe over to the local computer just before running it.

The overhead will be zero compared to your original goal - every time this exe is run over the network, the whole thing needs to be copied anyway, and your goal of having one place to update the program would be achieved.