Re: Strange exception. Help needed.



Martin Christiansen wrote:

Here are som facts about the application:
Applikation type: Windows Forms application.
Language : C#
.NET framework : 2.0
Developed using : VS2005
Runs on : Windows XP Prof machines (at customers). Runs under a
regular user account with administrator rights.

Logfiles returned from the customers show that the problem is due to the
following exception:

"Unable to generate a temporary class (result=1). error CS2001: Source file
'C:\WINDOWS\TEMP\xxtyxecu.0.cs' could not be found error CS2008: No inputs
specified"

Can you test on the machines to see if you are able to create these
files in c:\windows\temp, with e.g. notepad?

What is the value of %TEMP% env variable? For Win XP, it should be a
per-profile temporary directory, squirrelled away under c:\docs &
settings ... username / local settings etc.

It's unusual to see c:\windows\temp being used as a temporary directory
for a desktop app; it's also technically insecure by default, because it
relies on apps setting permisions appropriately so that other users
can't access each other's temp data.

But in my case, it's different. My application is a plain Windows Forms
application that does not make use of any web services or services on any
other machine whatsoever, and my application runs under a plain user account
with all necessary rights (the account can be verified in Task Manager, and
the necessary rights on the TEMP-folder are usually present for both
adimistrators and ordinary users).

-- Barry

--
http://barrkel.blogspot.com/
.



Relevant Pages

  • AD and migrate from workgroup Admin problems
    ... given the rights and security settings. ... But when i try to transfer the profile from the ... access their respective local user account profile ...
    (microsoft.public.win2000.active_directory)
  • Re: Problems to add PCs to domain
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... only reply to Newsgroups ... Should a normal domain user add the computer to the domain? ... theire user account? ...
    (microsoft.public.windows.server.general)
  • RE: authentication to web folder
    ... Integrated windows authentication enabled for the sub folder, ... If you are using Basic authentication then the user account needs ... Microsoft Developer Support ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.inetserver.iis)
  • RE: Migrated PC shares not visible from other PCs on same domain
    ... Can you access other resource with the same user account successfully? ... please add Administors group and restart the resource PC. ... Microsoft Online Partner Support ... This posting is provided "AS IS" with no warranties, and confers no rights. ...
    (microsoft.public.windows.server.migration)
  • Re: frontpg.lck
    ... Yes, you create user account on the server for each user, then apply that account to their web site. ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... >>> Do you have to have admin rights to publish w/FP? ... >>>> Assign full control access rights to the Administrators and System ...
    (microsoft.public.frontpage.client)