Redistribution files for .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
we have an C++ application (used Visual Studio .NET) where have converted the database interface to ADO.NET. I tried to install the app in a network with a Win2000 server and XP workstations. I downloaded dotnetfx and run it on the server and all the workstations. The application runs fine on the server but wont load on the workstations. Is dotnetfx the right way to install the .NET Framework redistribution files? Any idea why it wont run on the workstations?
 
Yep, dotnetfx is right.
What does it say (the error)?

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

Rudolfo said:
Hi,
we have an C++ application (used Visual Studio .NET) where have converted
the database interface to ADO.NET. I tried to install the app in a network
with a Win2000 server and XP workstations. I downloaded dotnetfx and run it
on the server and all the workstations. The application runs fine on the
server but wont load on the workstations. Is dotnetfx the right way to
install the .NET Framework redistribution files? Any idea why it wont run on
the workstations?
 
No exceptions, nothing?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Rudolfo said:
We only get the hour glass for a couple of seconds. There is noe error
messages. I put an messagebox in the beginning of the program but it does
not start running. It seems that it is in the loading process the problem
is. So i thought some redist. files was missing.
 
After i sent the previous message we did the following

1. Opened Explorer and clicked on the server disk from the workstation and doubble klicked on the app. executable. The hour glass came up for a couple of seconds and nothing else happend

2. We reinstalled dotnetfx on the workstation and tried the same as in 1. with the same result

3. We rebooted the workstation an did the same as 1. Then we got a general protection error and the app terminated. The MessageBox which is first in the first part (InitInstance) of the app did not appear. We went out to the server and started the app there and it ran fine.
 
Hi,

Are you running the app (on workstation) from a network drive?
It that is so, then try to run it from local drive.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Rudolfo said:
After i sent the previous message we did the following:

1. Opened Explorer and clicked on the server disk from the workstation and
doubble klicked on the app. executable. The hour glass came up for a couple
of seconds and nothing else happend.
2. We reinstalled dotnetfx on the workstation and tried the same as in 1. with the same result.

3. We rebooted the workstation an did the same as 1. Then we got a general
protection error and the app terminated. The MessageBox which is first in
the first part (InitInstance) of the app did not appear. We went out to the
server and started the app there and it ran fine.
 
Yes, I am running the app (on workstation) from a network drive. When I copy the app to the workstation it runs!!!
'what can I do to make it run from the network drive?

I have checked with the customer and he had Win XP Professional on the server and Win XP Home on the workstations.
 
Hi Rudolfo,

By default applications run from a network drive don't have the same
security granted as applications run from a local disk. If I remember well,
you can change this in the "Microsoft .NET Framework 1.1
Configuration"-wizard, accessible from the administrative tools.

Regards,
Jan


Rudolfo said:
Yes, I am running the app (on workstation) from a network drive. When I
copy the app to the workstation it runs!!!
'what can I do to make it run from the network drive?

I have checked with the customer and he had Win XP Professional on the
server and Win XP Home on the workstations.
 
Hi Rudolfo,

Yes, as Jan pointed out you will have to give your app more security
privileges, for example Full Trust.
You might reach configuration editor in Administrative Tools\Microsoft .Net
Framework Configuration|Wizards

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Rudolfo said:
Yes, I am running the app (on workstation) from a network drive. When I
copy the app to the workstation it runs!!!
'what can I do to make it run from the network drive?

I have checked with the customer and he had Win XP Professional on the
server and Win XP Home on the workstations.
 
Thanks Miha and Jan
I will test this out on monday. Is there a way I can grant rights to only to my local program directory on the server disk for the workstations in the intranet

Thanks agai
Rudolfo
 
HI Rudolfo,

Yes, there are some ways, one of this:
Add the network folder to trusted sites (via internet explorer options).
The go to .NET Configuration application, right click on My Computer/Runtime
Security Policy/Machine/Code Groups/All_Code/Trusted Zone, select
properties, go to Permission Set tab and select FullTrust as Permission set.
NOTE: This will give unrestricted security privileges to all app comming
from trusted zone.
Be careful.

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com


Rudolfo said:
Thanks Miha and Jan,
I will test this out on monday. Is there a way I can grant rights to only
to my local program directory on the server disk for the workstations in the
intranet?
 
Hi,
We have tried to these Wizrads but it dont help. We dont understand all about them either. Can U be more spesific?
 
Back
Top