473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

c++ program does not run from server drive

Hi

I succesfully finished a simple form program in VC express 2005. I
tested the program in another machine, after installing the runtime
libraries and .NET framework 2, and is working fine.

Now' i'd like to make the program available from the network server
drive to other users (after they install the runtime and .net framework
in their machines).

But the copied .exe does not start from the server drive, resulting in
an error screen before executing the program (it does it either from
the local development computer or from the other machine). The error
message doen't tell anything.

Any suggestion how to fix this?

Thank you,
Marcos

Oct 17 '06 #1
4 1481
i'm not quite sure with that - i just saw something similar o the web day
before
but isnt that related to the acess rights and security?
if you run managed application from the network folder - different security
is applied to it..
try to check that....
"ma****@yahoo.com" wrote:
Hi

I succesfully finished a simple form program in VC express 2005. I
tested the program in another machine, after installing the runtime
libraries and .NET framework 2, and is working fine.

Now' i'd like to make the program available from the network server
drive to other users (after they install the runtime and .net framework
in their machines).

But the copied .exe does not start from the server drive, resulting in
an error screen before executing the program (it does it either from
the local development computer or from the other machine). The error
message doen't tell anything.

Any suggestion how to fix this?

Thank you,
Marcos

Oct 17 '06 #2
you need full trust to load an assembly from a network location.

--
Regards
Sheng Jiang

Microsoft Most Valuable Professional in Visual C++
http://www.jiangsheng.net
http://blog.joycode.com/jiangsheng/
<ma****@yahoo.com????
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi

I succesfully finished a simple form program in VC express 2005. I
tested the program in another machine, after installing the runtime
libraries and .NET framework 2, and is working fine.

Now' i'd like to make the program available from the network server
drive to other users (after they install the runtime and .net framework
in their machines).

But the copied .exe does not start from the server drive, resulting in
an error screen before executing the program (it does it either from
the local development computer or from the other machine). The error
message doen't tell anything.

Any suggestion how to fix this?

Thank you,
Marcos

Oct 18 '06 #3

"jiangsheng[MVP]" <sh*********@hotmail.com.discusswrote in message
news:Oe**************@TK2MSFTNGP04.phx.gbl...
you need full trust to load an assembly from a network location.
No you don't.

Rather, an executable loaded from a network doesn't receive full trust
permissions. Unless you've marked the appropriate security attributes on
your program, it will request full trust and be denied.
--
Regards
Sheng Jiang

Microsoft Most Valuable Professional in Visual C++
http://www.jiangsheng.net
http://blog.joycode.com/jiangsheng/
<ma****@yahoo.com????
news:11**********************@h48g2000cwc.googlegr oups.com...
>Hi

I succesfully finished a simple form program in VC express 2005. I
tested the program in another machine, after installing the runtime
libraries and .NET framework 2, and is working fine.

Now' i'd like to make the program available from the network server
drive to other users (after they install the runtime and .net framework
in their machines).

But the copied .exe does not start from the server drive, resulting in
an error screen before executing the program (it does it either from
the local development computer or from the other machine). The error
message doen't tell anything.

Any suggestion how to fix this?

Thank you,
Marcos


Oct 18 '06 #4
Thanks for your answer,
but how do you full trust an assembly ?

Ben Voigt wrote:
"jiangsheng[MVP]" <sh*********@hotmail.com.discusswrote in message
news:Oe**************@TK2MSFTNGP04.phx.gbl...
you need full trust to load an assembly from a network location.

No you don't.

Rather, an executable loaded from a network doesn't receive full trust
permissions. Unless you've marked the appropriate security attributes on
your program, it will request full trust and be denied.
--
Regards
Sheng Jiang

Microsoft Most Valuable Professional in Visual C++
http://www.jiangsheng.net
http://blog.joycode.com/jiangsheng/
<ma****@yahoo.com????
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi

I succesfully finished a simple form program in VC express 2005. I
tested the program in another machine, after installing the runtime
libraries and .NET framework 2, and is working fine.

Now' i'd like to make the program available from the network server
drive to other users (after they install the runtime and .net framework
in their machines).

But the copied .exe does not start from the server drive, resulting in
an error screen before executing the program (it does it either from
the local development computer or from the other machine). The error
message doen't tell anything.

Any suggestion how to fix this?

Thank you,
Marcos
Oct 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: los | last post by:
Hi, I'm trying to create a program similar to that of Google's desktop that will crawl through the hard drive and index files. I have written the program and as of now I just put the thread to...
1
by: Gacu | last post by:
Hi! Have you met any problems with running C# program from network mapped drive? Of course I have .net framework installed on both machines. When I copy program file to local disk it works...
3
by: Craig Brunton | last post by:
Dear all, I am new to visual basic.NET and have recently finished my first program that works with our design package to create drawings. The problem I now have is that I have installed the...
0
by: Les | last post by:
Hi, I have a C++ application that I have built using MS VC++ .NET. I would like to set it up/convert it for multiple users to run it from the web. What do I need to do to make this available to...
1
by: John Dalberg | last post by:
I have my SQL Server installation on drive c: and the databases on another drive. My c drive got corrupted and I am planning to restore it from an old backup. This means drive c will not be up to...
2
by: jannordgreen | last post by:
I try to run http://localhost/scroller/scrollertest.asp in my IE 6 browser. The asp program tries to connect to a MS Access 97 database. The program works when the database is sitting on any...
34
by: Tom | last post by:
I'd greatly appreciate advice and code snippets on how to create a ram disk within a C/C++ program. I also need to be able to determine the free space. Thanks in advance for any help.
5
by: Igor | last post by:
Hi! We built VB6 application to work with Reporting Services server. To connect to reporting server has been created a special assembly with .NET VS2003. While we execute our program on local...
1
by: =?Utf-8?B?S2Vubnk=?= | last post by:
I have one bat file that contains a command to startup Java Program. Then, I would like to create a cluster job to call the bat file. In case of one computer is down, another computer can also call...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.