473,378 Members | 1,360 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,378 software developers and data experts.

.Net executable shows fine for some, as DOS .exe for others

I've run into a rather strange situation, and can't seem to find any details
on why this would even be happening, so here goes:

I've created an app to force users to update their pcAnywhere passwords.
This is a VB.Net project compiled against .Net 1.1. This executable is
placed on a terminal server in \Documents and Settings\All Users\Desktop and
up until recently worked just fine, with about 10 people utilizing it on a
recurring basis.

Recently, 2 new employees joined our team, and need access to this as well,
but we're encountering some strange things. First, when they try and run the
..exe, they get a boilerplate windows error (not the JIT type) stating they
don't have rights to access something (going through code now, just to make
sure that .exe is touching only what it needs) and the application will be
terminated. I've verified myself that both for this machine, and the domain
in general, these 2 users have the EXACT same rights as the people already
using this app, but still we get that message.

So I started looking to see if perhaps they were somehow pointing to a
different copy of the .exe, and I did so by right clicking on the .exe and
selecting properties. When looking at the properties, there's a stark
contrast between what these 2 new users see, and what everyone else sees.
For the new users, the properties tabs are those of a DOS executable. For
anyone else, they see the normal 3 or 4 tabs one would expect from a .Net
executable!!

As a last ditch before searching/posting here, I rebuilt the .exe from
source and placed the new copy in the same location as the original, with no
change in the results. Works fine for everyone but these 2 users, with the
above mentioned quirks still intact.

Thanks in advance for taking the time to read all this,

Eric
Jul 19 '06 #1
5 1488
I've noticed the EXACT same problem with some of my .NET exe, the appear to
registry as DOS apps rather than .NET windows apps, but not in all causes,
seems to vary from PC to PC.

If you find a solution, please let me know.

Just curious, did you try to install and then uninstall .NET framework? How
many versions of .NET framework are loaded on the client PC?

Rob.
"nylyst" <ny****@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
I've run into a rather strange situation, and can't seem to find any
details
on why this would even be happening, so here goes:

I've created an app to force users to update their pcAnywhere passwords.
This is a VB.Net project compiled against .Net 1.1. This executable is
placed on a terminal server in \Documents and Settings\All Users\Desktop
and
up until recently worked just fine, with about 10 people utilizing it on a
recurring basis.

Recently, 2 new employees joined our team, and need access to this as
well,
but we're encountering some strange things. First, when they try and run
the
.exe, they get a boilerplate windows error (not the JIT type) stating they
don't have rights to access something (going through code now, just to
make
sure that .exe is touching only what it needs) and the application will be
terminated. I've verified myself that both for this machine, and the
domain
in general, these 2 users have the EXACT same rights as the people already
using this app, but still we get that message.

So I started looking to see if perhaps they were somehow pointing to a
different copy of the .exe, and I did so by right clicking on the .exe and
selecting properties. When looking at the properties, there's a stark
contrast between what these 2 new users see, and what everyone else sees.
For the new users, the properties tabs are those of a DOS executable. For
anyone else, they see the normal 3 or 4 tabs one would expect from a .Net
executable!!

As a last ditch before searching/posting here, I rebuilt the .exe from
source and placed the new copy in the same location as the original, with
no
change in the results. Works fine for everyone but these 2 users, with
the
above mentioned quirks still intact.

Thanks in advance for taking the time to read all this,

Eric

Jul 19 '06 #2
Ok, after some digging and further testing, I think I've figured this out.

If any of the below is incorrect, someone please feel free to correct me.

Apparently, to run an executable, you need write access to the directory
you're launching the executable from. In this instance, the .exe itself
lived in C:\Documents and Settings\All Users\Desktop. The 2 new users, while
they need access to this app via the Terminal Server, are not IT folks, and
so were not given write access to All Users subtree.

Once I moved the .exe to a new folder where the users DID have write access,
they were able to see and run it fine. So to restore things to the way they
were, I deleted the .exe in the All Users\Desktop folder, and created a
shortcut to the new copy in another folder where the users had write access.
Double-clicking the shortcut, now does everything one would expect, as well
as fixing the properties problem.

My theory is this, you need write access to a folder from which you want to
launch an executable, as well as for reading the PE header (what explorer
does to display the file icons) to display the appropriate properties and
icon. I can neither confirm nor deny this, only state that in my case, once
the conditions listed above were met (.exe launched from or viewed in a
folder that the user has write access to) everything returned to normal.

HTH,

Eric

"Rob R. Ainscough" wrote:
I've noticed the EXACT same problem with some of my .NET exe, the appear to
registry as DOS apps rather than .NET windows apps, but not in all causes,
seems to vary from PC to PC.

If you find a solution, please let me know.

Just curious, did you try to install and then uninstall .NET framework? How
many versions of .NET framework are loaded on the client PC?

Rob.
"nylyst" <ny****@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
I've run into a rather strange situation, and can't seem to find any
details
on why this would even be happening, so here goes:

I've created an app to force users to update their pcAnywhere passwords.
This is a VB.Net project compiled against .Net 1.1. This executable is
placed on a terminal server in \Documents and Settings\All Users\Desktop
and
up until recently worked just fine, with about 10 people utilizing it on a
recurring basis.

Recently, 2 new employees joined our team, and need access to this as
well,
but we're encountering some strange things. First, when they try and run
the
.exe, they get a boilerplate windows error (not the JIT type) stating they
don't have rights to access something (going through code now, just to
make
sure that .exe is touching only what it needs) and the application will be
terminated. I've verified myself that both for this machine, and the
domain
in general, these 2 users have the EXACT same rights as the people already
using this app, but still we get that message.

So I started looking to see if perhaps they were somehow pointing to a
different copy of the .exe, and I did so by right clicking on the .exe and
selecting properties. When looking at the properties, there's a stark
contrast between what these 2 new users see, and what everyone else sees.
For the new users, the properties tabs are those of a DOS executable. For
anyone else, they see the normal 3 or 4 tabs one would expect from a .Net
executable!!

As a last ditch before searching/posting here, I rebuilt the .exe from
source and placed the new copy in the same location as the original, with
no
change in the results. Works fine for everyone but these 2 users, with
the
above mentioned quirks still intact.

Thanks in advance for taking the time to read all this,

Eric


Jul 19 '06 #3
Almost forgot to answer your questions Rob!!

I didn't try the install/uninstall, but having found a fix, I'm not sure
that would have any effect. As I said in my intial response, although this
works, I'm still not sure that I have the scenario nailed down, or just got
lucky.

As for the versions, both 1.1 and 2.0 are installed on this particular
server and are up-to-date with any patches from MS.

Let me know if this works for you, and if not, we can keep plugging and
maybe find a more definitive answer to this problem.

Eric

"nylyst" wrote:
Ok, after some digging and further testing, I think I've figured this out.

If any of the below is incorrect, someone please feel free to correct me.

Apparently, to run an executable, you need write access to the directory
you're launching the executable from. In this instance, the .exe itself
lived in C:\Documents and Settings\All Users\Desktop. The 2 new users, while
they need access to this app via the Terminal Server, are not IT folks, and
so were not given write access to All Users subtree.

Once I moved the .exe to a new folder where the users DID have write access,
they were able to see and run it fine. So to restore things to the way they
were, I deleted the .exe in the All Users\Desktop folder, and created a
shortcut to the new copy in another folder where the users had write access.
Double-clicking the shortcut, now does everything one would expect, as well
as fixing the properties problem.

My theory is this, you need write access to a folder from which you want to
launch an executable, as well as for reading the PE header (what explorer
does to display the file icons) to display the appropriate properties and
icon. I can neither confirm nor deny this, only state that in my case, once
the conditions listed above were met (.exe launched from or viewed in a
folder that the user has write access to) everything returned to normal.

HTH,

Eric

"Rob R. Ainscough" wrote:
I've noticed the EXACT same problem with some of my .NET exe, the appear to
registry as DOS apps rather than .NET windows apps, but not in all causes,
seems to vary from PC to PC.

If you find a solution, please let me know.

Just curious, did you try to install and then uninstall .NET framework? How
many versions of .NET framework are loaded on the client PC?

Rob.
"nylyst" <ny****@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
I've run into a rather strange situation, and can't seem to find any
details
on why this would even be happening, so here goes:
>
I've created an app to force users to update their pcAnywhere passwords.
This is a VB.Net project compiled against .Net 1.1. This executable is
placed on a terminal server in \Documents and Settings\All Users\Desktop
and
up until recently worked just fine, with about 10 people utilizing it on a
recurring basis.
>
Recently, 2 new employees joined our team, and need access to this as
well,
but we're encountering some strange things. First, when they try and run
the
.exe, they get a boilerplate windows error (not the JIT type) stating they
don't have rights to access something (going through code now, just to
make
sure that .exe is touching only what it needs) and the application will be
terminated. I've verified myself that both for this machine, and the
domain
in general, these 2 users have the EXACT same rights as the people already
using this app, but still we get that message.
>
So I started looking to see if perhaps they were somehow pointing to a
different copy of the .exe, and I did so by right clicking on the .exe and
selecting properties. When looking at the properties, there's a stark
contrast between what these 2 new users see, and what everyone else sees.
For the new users, the properties tabs are those of a DOS executable. For
anyone else, they see the normal 3 or 4 tabs one would expect from a .Net
executable!!
>
As a last ditch before searching/posting here, I rebuilt the .exe from
source and placed the new copy in the same location as the original, with
no
change in the results. Works fine for everyone but these 2 users, with
the
above mentioned quirks still intact.
>
Thanks in advance for taking the time to read all this,
>
Eric
Jul 19 '06 #4
No, your fix sounds accurate and makes sense, however I don't understand why
a .NET application would require write access to the dir? I have seen the
same issue when I deployed web apps (.NET based) -- even precompiled ones.
Since I don't like to provide public write access to anything I located the
..NET account (don't recall the account name right now) and gave that account
write access to the dir.

Yeah, don't waste your time on re-installs of .NET framework (I use that as
my last resort).

Rob.

"nylyst" <ny****@discussions.microsoft.comwrote in message
news:7D**********************************@microsof t.com...
Almost forgot to answer your questions Rob!!

I didn't try the install/uninstall, but having found a fix, I'm not sure
that would have any effect. As I said in my intial response, although
this
works, I'm still not sure that I have the scenario nailed down, or just
got
lucky.

As for the versions, both 1.1 and 2.0 are installed on this particular
server and are up-to-date with any patches from MS.

Let me know if this works for you, and if not, we can keep plugging and
maybe find a more definitive answer to this problem.

Eric

"nylyst" wrote:
>Ok, after some digging and further testing, I think I've figured this
out.

If any of the below is incorrect, someone please feel free to correct me.

Apparently, to run an executable, you need write access to the directory
you're launching the executable from. In this instance, the .exe itself
lived in C:\Documents and Settings\All Users\Desktop. The 2 new users,
while
they need access to this app via the Terminal Server, are not IT folks,
and
so were not given write access to All Users subtree.

Once I moved the .exe to a new folder where the users DID have write
access,
they were able to see and run it fine. So to restore things to the way
they
were, I deleted the .exe in the All Users\Desktop folder, and created a
shortcut to the new copy in another folder where the users had write
access.
Double-clicking the shortcut, now does everything one would expect, as
well
as fixing the properties problem.

My theory is this, you need write access to a folder from which you want
to
launch an executable, as well as for reading the PE header (what explorer
does to display the file icons) to display the appropriate properties and
icon. I can neither confirm nor deny this, only state that in my case,
once
the conditions listed above were met (.exe launched from or viewed in a
folder that the user has write access to) everything returned to normal.

HTH,

Eric

"Rob R. Ainscough" wrote:
I've noticed the EXACT same problem with some of my .NET exe, the
appear to
registry as DOS apps rather than .NET windows apps, but not in all
causes,
seems to vary from PC to PC.

If you find a solution, please let me know.

Just curious, did you try to install and then uninstall .NET framework?
How
many versions of .NET framework are loaded on the client PC?

Rob.
"nylyst" <ny****@discussions.microsoft.comwrote in message
news:C0**********************************@microsof t.com...
I've run into a rather strange situation, and can't seem to find any
details
on why this would even be happening, so here goes:

I've created an app to force users to update their pcAnywhere
passwords.
This is a VB.Net project compiled against .Net 1.1. This executable
is
placed on a terminal server in \Documents and Settings\All
Users\Desktop
and
up until recently worked just fine, with about 10 people utilizing it
on a
recurring basis.

Recently, 2 new employees joined our team, and need access to this as
well,
but we're encountering some strange things. First, when they try and
run
the
.exe, they get a boilerplate windows error (not the JIT type) stating
they
don't have rights to access something (going through code now, just
to
make
sure that .exe is touching only what it needs) and the application
will be
terminated. I've verified myself that both for this machine, and the
domain
in general, these 2 users have the EXACT same rights as the people
already
using this app, but still we get that message.

So I started looking to see if perhaps they were somehow pointing to
a
different copy of the .exe, and I did so by right clicking on the
.exe and
selecting properties. When looking at the properties, there's a
stark
contrast between what these 2 new users see, and what everyone else
sees.
For the new users, the properties tabs are those of a DOS executable.
For
anyone else, they see the normal 3 or 4 tabs one would expect from a
.Net
executable!!

As a last ditch before searching/posting here, I rebuilt the .exe
from
source and placed the new copy in the same location as the original,
with
no
change in the results. Works fine for everyone but these 2 users,
with
the
above mentioned quirks still intact.

Thanks in advance for taking the time to read all this,

Eric

Jul 19 '06 #5
I thought the same thing, but I'm testing a similar scenario now using a
small VB6 app, to rule out .Net as a factor here.

I'll be sure and let you know what I find.

Eric

Jul 19 '06 #6

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

Similar topics

1
by: Jay Haslup | last post by:
I am trying to figure out how to get the CMD (dos) window to come up when I call a executable. I have this working on a Win2000/apache machine and am trying to use the same code on a identical...
17
by: Filipe Martins | last post by:
Hello. I've read somewhere that the executable is smaller if we use a source file for each function! So, I tested this with gcc and it seams to confirm! What seams to happen is that if we call...
14
by: tracernet_v2 | last post by:
fellow c# programmers... i need some help.... i have created a program, a module that is part of another bigger program... when i debug it, by pressing F5 in the IDE, it runs so well i can...
3
by: SpIcH | last post by:
Hi All, This is all about protecting my data in Executable file. I have developed a program in Visual Basic .NET 2002. I have many questions in mind... please help me to complete my project. ...
11
by: Bit byte | last post by:
I want to create a GUI-less windows executable (i.e. an executable that has no gui) and no console. The idea is to have this running as a kind of daemon (it can't be a service, for reasons I wont...
1
by: Marcel Brekelmans | last post by:
Hello, I know about the FileInfo.LastWriteTime() function. However, this is not always returning the modified date of the executable that I want: when you copy the executable to another...
0
by: Dheeraj Pareek | last post by:
Dear Friends, I am facing a problem during the installation of .NET 2005. As I starts the Installation then after some time it displays an error message having title "Suite Integration Toolkit...
2
by: NasirMunir | last post by:
I am trying to run an executable using shell. The executable look for certain files in the same directory and then run on those files. My problem: I have created a form which asks from the user to...
16
by: Erwin Moller | last post by:
Why is a binary file executable? Is any binary file executable? Is only binary file executable? Are all executable files binary? What is the connection between the attribute of binary and that of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.