473,587 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 1496
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****@discuss ions.microsoft. comwrote in message
news:C0******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. comwrote in message
news:C0******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. comwrote in message
news:C0******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. comwrote in message
news:7D******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. comwrote in message
news:C0******** *************** ***********@mic rosoft.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
2242
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 machine. Here is how I start the executable. It is initiated from the browser on the machine itself: pclose(popen("start " . $exe . $params, "r"));...
17
2174
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 a function from a source-files that defines 3 others, the linkers includes the code of all the 4 functions, even if the on we call doesn't rely on...
14
1779
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 hardly wait to show it to my project leader... but when i try to run the executable created by the IDE, the .exe file in the Debug folder, it catches...
3
4096
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. 1. I have very much data to be incorporated into the executable file. I have to add much data into my developed program into 2 Combo Boxes and 1...
11
1742
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 go into here ..). I can't seem to find any code that shows how to do this which is probably not suprising since Windows is essentially GUI...
1
2942
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 directory the FileInfo.LastWriteTime() function returns the copy-time. I can see in my explorer that there is another modified time, the time when I...
0
10768
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 Executable". It shows the following text : "Suite Integration Toolkit Executable has encountered a problem and needs to close. We are sorry for the...
2
1824
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 locate those files using browse option. Then I ask the user to locate the executable. The next step is to copy the executable to those files directory....
16
4474
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 executable?
0
7920
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.