473,790 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Permission Errors


Hello. My new dev machine is running XP Pro. In the past all
equipment has only used Windows 2000. I have had a lot of problems
getting my projects up and running on the new machine. The current
one is a permission error.

The project is a VC++ Web Service. It works fine when the service is
hosted on the old W2K dev machine, but on the new XP machine I get a
permission error when the service tries to open a text file on the
Windows 2000 domain server. It is a standard fopen call across the
LAN. I have no problem opening the file from Windows Explorer, or
from a standard windows program on the XP machine, but with the Web
Service, when running on the XP machine, the fopen call returns NULL
and GetNextError returns 5 - permission error.

I cannot find any reason - any help?

Thanks, Russ

Nov 22 '05 #1
12 1418
Hi Russ,

Welcome to MSDN newsgroup.
From your description, you have a c++ built Webservcie which will access a
remote file on a local domain server. This works well when deploying on a
win2k server , however after move it to a winxp box, you found the
webservice failed with permission error when perform the file accessing
operation, yes?

AS for the VC++ webservice is it hosed in IIS and how did you creating it
and deploying it? Generally the permission problem is likely caused by the
webservice's process idenitity. For most service applications they're
running under a non-interactive account(local account ) which won't be
remotable. So when accessing resources on remote machine, such local
service accont will be recoginzed as NULL session. For "windows explorer"
or other standard windows applications, they're running under the
interative logon user's account and when the interactive user is a domain
user, it'll surely be valid to remote machine.

So please have a check on this and feel free to post here if you have any
further finding or questions.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Permission Errors
| Date: Sun, 16 Oct 2005 16:23:08 -0400
| Message-ID: <th************ *************** *****@4ax.com>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 19
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP0F
ICfXpfc!IGA9Jyv 54ErQe3Cjgk8eO4 N7M2LAayvzLbN87 cmpOB8GJxt0WNYj 77Zlz6C4uKfEoYW 8
EeDeRHbG!47Nts7 5I
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.p hx.gbl!TK2MSFTF EED02.phx.gbl!t ornado.fastwebn et.it!tiscali!n e
wsfeed1.ip.tisc ali.net!news.gl orb.com!postnew s.google.com!ne ws4.google.com! b
order1.nntp.dca .giganews.com!n ntp.giganews.co m!local01.nntp. dca.giganews.co m
!nntp.comcast.c om!news.comcast .com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
|
| Hello. My new dev machine is running XP Pro. In the past all
| equipment has only used Windows 2000. I have had a lot of problems
| getting my projects up and running on the new machine. The current
| one is a permission error.
|
| The project is a VC++ Web Service. It works fine when the service is
| hosted on the old W2K dev machine, but on the new XP machine I get a
| permission error when the service tries to open a text file on the
| Windows 2000 domain server. It is a standard fopen call across the
| LAN. I have no problem opening the file from Windows Explorer, or
| from a standard windows program on the XP machine, but with the Web
| Service, when running on the XP machine, the fopen call returns NULL
| and GetNextError returns 5 - permission error.
|
| I cannot find any reason - any help?
|
| Thanks, Russ
|
|

Nov 22 '05 #2
On Mon, 17 Oct 2005 03:18:00 GMT, st*****@online. microsoft.com (Steven
Cheng[MSFT]) wrote:
Hi Russ,

Welcome to MSDN newsgroup.
From your description, you have a c++ built Webservcie which will access a
remote file on a local domain server. This works well when deploying on a
win2k server , however after move it to a winxp box, you found the
webservice failed with permission error when perform the file accessing
operation, yes?
Not exactly. The web service is being built on the dev station running
under XP. It accesses a file on the W2K server. When I run or debug
it on the XP station, is when it fails. When I build and test the
same source code on a W2K Pro workstation there is no failure.

Also, if I deploy the web service on the W2K server, it works ok. So
the problem is just with the XP workstation.

AS for the VC++ webservice is it hosed in IIS and how did you creating it
and deploying it?
I presume you mean hosted, not hosed? I would agree with either
statement, ha ha.

It is created with Visual Studio using managed C++. It makes calls to
an unmanaged library and it is this library that makes the call to
open the server file. I have tried a variety of methods to deploy it.
VC++ deploys it automatically on the local machine, but I have also
built a deployment project and used that to deploy on the local
machine. Additionally I have tried manually creating a virtual
directory via IIS.
Generally the permission problem is likely caused by the
webservice's process idenitity. For most service applications they're
running under a non-interactive account(local account ) which won't be
remotable. So when accessing resources on remote machine, such local
service accont will be recoginzed as NULL session. For "windows explorer"
or other standard windows applications, they're running under the
interative logon user's account and when the interactive user is a domain
user, it'll surely be valid to remote machine.
In the web.config file, I have:

<identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
password="xxx" />

Does not this allow the web service to take on the permissions of the
user account on the XP machine? (XPS is the machine name.)

So please have a check on this and feel free to post here if you have any
further finding or questions.
I'm sure this is the crux of the problem, but how do I go about
checking it out and curing it? And why does it fail under XP but not
under W2K Pro? I did discover that for XP, in my impersonate
statement I had to use the full domain name of the XPS machine,
xps.PrsNj.local , whereas in W2K all I needed was xps.russ.

Thanks you. Russ

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Permission Errors
| Date: Sun, 16 Oct 2005 16:23:08 -0400
| Message-ID: <th************ *************** *****@4ax.com>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 19
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP0F
ICfXpfc!IGA9Jy v54ErQe3Cjgk8eO 4N7M2LAayvzLbN8 7cmpOB8GJxt0WNY j77Zlz6C4uKfEoY W8
EeDeRHbG!47Nts 75I
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01. phx.gbl!TK2MSFT FEED02.phx.gbl! tornado.fastweb net.it!tiscali! ne
wsfeed1.ip.tis cali.net!news.g lorb.com!postne ws.google.com!n ews4.google.com !b
order1.nntp.dc a.giganews.com! nntp.giganews.c om!local01.nntp .dca.giganews.c om
!nntp.comcast. com!news.comcas t.com.POSTED!no t-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
|
| Hello. My new dev machine is running XP Pro. In the past all
| equipment has only used Windows 2000. I have had a lot of problems
| getting my projects up and running on the new machine. The current
| one is a permission error.
|
| The project is a VC++ Web Service. It works fine when the service is
| hosted on the old W2K dev machine, but on the new XP machine I get a
| permission error when the service tries to open a text file on the
| Windows 2000 domain server. It is a standard fopen call across the
| LAN. I have no problem opening the file from Windows Explorer, or
| from a standard windows program on the XP machine, but with the Web
| Service, when running on the XP machine, the fopen call returns NULL
| and GetNextError returns 5 - permission error.
|
| I cannot find any reason - any help?
|
| Thanks, Russ
|
|

Nov 22 '05 #3
Hi Russ,

Thanks for your response.
As you mentioned that you've use the following configuration in web.config
<identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
password="xxx" />

that means the webservice will running under the impersonate idenitity.
Also, the "xps.PrsNj.loca l\Russ" is a local account on the XP machine, yes?
If so, it is not remotable to other remote machines. Are the xp client
machine and win2k box in a domain
environment? If so , you can try configured the webservice to running under
a domain account so that it can be validated on the win2k server machine.

In addition, is there SQLserver on the win2k box? If so, you can try let
the webservice make connection to sqlserver so that you can watch which
cilent account is logon at the server (through the SQLserver profiler). If
no sqlserver available, you can try turning on the NTFS security audit on
that shared folder at the 2k server machine. Thus , we can watch audit log
to check the client account also.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| NNTP-Posting-Date: Mon, 17 Oct 2005 08:42:39 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Mon, 17 Oct 2005 09:42:38 -0400
| Message-ID: <d4************ *************** *****@4ax.com>
| References: <th************ *************** *****@4ax.com>
<yI************ **@TK2MSFTNGXA0 1.phx.gbl>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 126
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-gDWyCGpEupEX0j1 fSbjlcEQCmafJ9o 78ImvcZFRYgzuTJ rUVBXNwSDFvEjXU 0WYIV5S0Sj4x
XAEYD4F!+gD1O9U CRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J26IP
8Kdp9Ub8!SFDYpn To
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.p hx.gbl!TK2MSFTF EED02.phx.gbl!t ornado.fastwebn et.it!tiscali!n e
wsfeed1.ip.tisc ali.net!proxad. net!216.239.36. 134.MISMATCH!po stnews.google.c o
m!news4.google. com!border1.nnt p.dca.giganews. com!nntp.gigane ws.com!local01. n
ntp.dca.giganew s.com!nntp.comc ast.com!news.co mcast.com.POSTE D!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52146
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| On Mon, 17 Oct 2005 03:18:00 GMT, st*****@online. microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| >Hi Russ,
| >
| >Welcome to MSDN newsgroup.
| >From your description, you have a c++ built Webservcie which will access
a
| >remote file on a local domain server. This works well when deploying on
a
| >win2k server , however after move it to a winxp box, you found the
| >webservice failed with permission error when perform the file accessing
| >operation, yes?
|
| Not exactly. The web service is being built on the dev station running
| under XP. It accesses a file on the W2K server. When I run or debug
| it on the XP station, is when it fails. When I build and test the
| same source code on a W2K Pro workstation there is no failure.
|
| Also, if I deploy the web service on the W2K server, it works ok. So
| the problem is just with the XP workstation.
|
| >
| >AS for the VC++ webservice is it hosed in IIS and how did you creating
it
| >and deploying it?
|
| I presume you mean hosted, not hosed? I would agree with either
| statement, ha ha.
|
| It is created with Visual Studio using managed C++. It makes calls to
| an unmanaged library and it is this library that makes the call to
| open the server file. I have tried a variety of methods to deploy it.
| VC++ deploys it automatically on the local machine, but I have also
| built a deployment project and used that to deploy on the local
| machine. Additionally I have tried manually creating a virtual
| directory via IIS.
|
| > Generally the permission problem is likely caused by the
| >webservice's process idenitity. For most service applications they're
| >running under a non-interactive account(local account ) which won't be
| >remotable. So when accessing resources on remote machine, such local
| >service accont will be recoginzed as NULL session. For "windows
explorer"
| >or other standard windows applications, they're running under the
| >interative logon user's account and when the interactive user is a
domain
| >user, it'll surely be valid to remote machine.
|
| In the web.config file, I have:
|
| <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| password="xxx" />
|
| Does not this allow the web service to take on the permissions of the
| user account on the XP machine? (XPS is the machine name.)
|
| >
| >So please have a check on this and feel free to post here if you have
any
| >further finding or questions.
|
| I'm sure this is the crux of the problem, but how do I go about
| checking it out and curing it? And why does it fail under XP but not
| under W2K Pro? I did discover that for XP, in my impersonate
| statement I had to use the full domain name of the XPS machine,
| xps.PrsNj.local , whereas in W2K all I needed was xps.russ.
|
| Thanks you. Russ
|
| >
| >Steven Cheng
| >Microsoft Online Support
| >
| >Get Secure! www.microsoft.com/security
| >(This posting is provided "AS IS", with no warranties, and confers no
| >rights.)
| >
| >
| >
| >
| >--------------------
| >| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| >| From: Russ <ru****@eticomm .net>
| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| Subject: Permission Errors
| >| Date: Sun, 16 Oct 2005 16:23:08 -0400
| >| Message-ID: <th************ *************** *****@4ax.com>
| >| X-Newsreader: Forte Agent 3.0/32.763
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset=us-ascii
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 19
| >| NNTP-Posting-Host: 68.37.155.53
| >| X-Trace:
|
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP0 F
|ICfXpfc!IGA9Jy v54ErQe3Cjgk8eO 4N7M2LAayvzLbN8 7cmpOB8GJxt0WNY j77Zlz6C4uKfEoY W 8
| >EeDeRHbG!47Nts 75I
| >| X-Complaints-To: ab***@comcast.n et
| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >complaint properly
| >| X-Postfilter: 1.3.32
| >| Path:
|TK2MSFTNGXA01. phx.gbl!TK2MSFT FEED02.phx.gbl! tornado.fastweb net.it!tiscali! n e
|wsfeed1.ip.tis cali.net!news.g lorb.com!postne ws.google.com!n ews4.google.com ! b
|order1.nntp.dc a.giganews.com! nntp.giganews.c om!local01.nntp .dca.giganews.c o

m
| >!nntp.comcast. com!news.comcas t.com.POSTED!no t-for-mail
| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >|
| >|
| >| Hello. My new dev machine is running XP Pro. In the past all
| >| equipment has only used Windows 2000. I have had a lot of problems
| >| getting my projects up and running on the new machine. The current
| >| one is a permission error.
| >|
| >| The project is a VC++ Web Service. It works fine when the service is
| >| hosted on the old W2K dev machine, but on the new XP machine I get a
| >| permission error when the service tries to open a text file on the
| >| Windows 2000 domain server. It is a standard fopen call across the
| >| LAN. I have no problem opening the file from Windows Explorer, or
| >| from a standard windows program on the XP machine, but with the Web
| >| Service, when running on the XP machine, the fopen call returns NULL
| >| and GetNextError returns 5 - permission error.
| >|
| >| I cannot find any reason - any help?
| >|
| >| Thanks, Russ
| >|
| >|
|

Nov 22 '05 #4
On Wed, 19 Oct 2005 03:20:46 GMT, st*****@online. microsoft.com (Steven
Cheng[MSFT]) wrote:
Hi Russ,

Thanks for your response.
As you mentioned that you've use the following configuration in web.config
<identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
password="xx x" />

that means the webservice will running under the impersonate idenitity.
Also, the "xps.PrsNj.loca l\Russ" is a local account on the XP machine, yes?
Yes.
If so, it is not remotable to other remote machines. Are the xp client
machine and win2k box in a domain
environment? If so , you can try configured the webservice to running under
a domain account so that it can be validated on the win2k server machine.
But why should I have to do this? I did not have to do it when the
dev machine was running W2K. It seems to me that when one builds a
web service on his local machine and then tries to debug it, the
permissions of the logged in developer should apply - especially when
impersonating that user.

However I have discovered that I can deploy the web service to the W2K
domain server and there it runs with no problems, except that I had to
change the impersonated user to a domain user. I did not have to do
this when the dev station was W2K. In other words, the web service,
running on the W2K server, would impersonate a local user on the W2K
dev station, and it would still work. Not so with the dev station
being XP.

Changing the impersonated user to a user on the domain does work when
the service is running on the domain server, so that was good enough
for me to decide that the new XP dev machine is up and usable. Next I
built the client for the web service, and that works too (as long as
the service runs on the domain server). My main problem now is that I
have to use remote debugging if I need to debug something - so I still
need to find the solution.

So now that I have proved that the XP dev station is usable, I went
ahead and executed the next step in upgrading my development platform.
I retired the W2K server and built a new W2003 domain server. I have
not yet got that server up to the point where I can run the web
service on it. A lot of other work, to make sure it could support our
legacy applications, was needed first. So I am not sure exactly how
the new server will affect all this - if at all.

I will get back to you on this in a day or three when I get everything
running again. In the meanwhile it would be good if you have any
other suggestions regarding being able to debug the web service on my
dev machine.

Thanks for your continued attention to this matter,

Regards, Russ

In addition, is there SQLserver on the win2k box? If so, you can try let
the webservice make connection to sqlserver so that you can watch which
cilent account is logon at the server (through the SQLserver profiler). If
no sqlserver available, you can try turning on the NTFS security audit on
that shared folder at the 2k server machine. Thus , we can watch audit log
to check the client account also.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| NNTP-Posting-Date: Mon, 17 Oct 2005 08:42:39 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Mon, 17 Oct 2005 09:42:38 -0400
| Message-ID: <d4************ *************** *****@4ax.com>
| References: <th************ *************** *****@4ax.com>
<yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 126
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-gDWyCGpEupEX0j1 fSbjlcEQCmafJ9o 78ImvcZFRYgzuTJ rUVBXNwSDFvEjXU 0WYIV5S0Sj4x
XAEYD4F!+gD1O9 UCRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J26IP
8Kdp9Ub8!SFDYp nTo
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01. phx.gbl!TK2MSFT FEED02.phx.gbl! tornado.fastweb net.it!tiscali! ne
wsfeed1.ip.tis cali.net!proxad .net!216.239.36 .134.MISMATCH!p ostnews.google. co
m!news4.google .com!border1.nn tp.dca.giganews .com!nntp.gigan ews.com!local01 .n
ntp.dca.gigane ws.com!nntp.com cast.com!news.c omcast.com.POST ED!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52146
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| On Mon, 17 Oct 2005 03:18:00 GMT, st*****@online. microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| >Hi Russ,
| >
| >Welcome to MSDN newsgroup.
| >From your description, you have a c++ built Webservcie which will access
a
| >remote file on a local domain server. This works well when deploying on
a
| >win2k server , however after move it to a winxp box, you found the
| >webservice failed with permission error when perform the file accessing
| >operation, yes?
|
| Not exactly. The web service is being built on the dev station running
| under XP. It accesses a file on the W2K server. When I run or debug
| it on the XP station, is when it fails. When I build and test the
| same source code on a W2K Pro workstation there is no failure.
|
| Also, if I deploy the web service on the W2K server, it works ok. So
| the problem is just with the XP workstation.
|
| >
| >AS for the VC++ webservice is it hosed in IIS and how did you creating
it
| >and deploying it?
|
| I presume you mean hosted, not hosed? I would agree with either
| statement, ha ha.
|
| It is created with Visual Studio using managed C++. It makes calls to
| an unmanaged library and it is this library that makes the call to
| open the server file. I have tried a variety of methods to deploy it.
| VC++ deploys it automatically on the local machine, but I have also
| built a deployment project and used that to deploy on the local
| machine. Additionally I have tried manually creating a virtual
| directory via IIS.
|
| > Generally the permission problem is likely caused by the
| >webservice's process idenitity. For most service applications they're
| >running under a non-interactive account(local account ) which won't be
| >remotable. So when accessing resources on remote machine, such local
| >service accont will be recoginzed as NULL session. For "windows
explorer"
| >or other standard windows applications, they're running under the
| >interative logon user's account and when the interactive user is a
domain
| >user, it'll surely be valid to remote machine.
|
| In the web.config file, I have:
|
| <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| password="xxx" />
|
| Does not this allow the web service to take on the permissions of the
| user account on the XP machine? (XPS is the machine name.)
|
| >
| >So please have a check on this and feel free to post here if you have
any
| >further finding or questions.
|
| I'm sure this is the crux of the problem, but how do I go about
| checking it out and curing it? And why does it fail under XP but not
| under W2K Pro? I did discover that for XP, in my impersonate
| statement I had to use the full domain name of the XPS machine,
| xps.PrsNj.local , whereas in W2K all I needed was xps.russ.
|
| Thanks you. Russ
|
| >
| >Steven Cheng
| >Microsoft Online Support
| >
| >Get Secure! www.microsoft.com/security
| >(This posting is provided "AS IS", with no warranties, and confers no
| >rights.)
| >
| >
| >
| >
| >--------------------
| >| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| >| From: Russ <ru****@eticomm .net>
| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| Subject: Permission Errors
| >| Date: Sun, 16 Oct 2005 16:23:08 -0400
| >| Message-ID: <th************ *************** *****@4ax.com>
| >| X-Newsreader: Forte Agent 3.0/32.763
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset=us-ascii
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 19
| >| NNTP-Posting-Host: 68.37.155.53
| >| X-Trace:
|
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP0

F
|
ICfXpfc!IGA9J yv54ErQe3Cjgk8e O4N7M2LAayvzLbN 87cmpOB8GJxt0WN Yj77Zlz6C4uKfEo YW

8
| >EeDeRHbG!47Nts 75I
| >| X-Complaints-To: ab***@comcast.n et
| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >complaint properly
| >| X-Postfilter: 1.3.32
| >| Path:
|
TK2MSFTNGXA01 .phx.gbl!TK2MSF TFEED02.phx.gbl !tornado.fastwe bnet.it!tiscali !n

e
|
wsfeed1.ip.ti scali.net!news. glorb.com!postn ews.google.com! news4.google.co m!

b
|
order1.nntp.d ca.giganews.com !nntp.giganews. com!local01.nnt p.dca.giganews. co

m
| >!nntp.comcast. com!news.comcas t.com.POSTED!no t-for-mail
| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >|
| >|
| >| Hello. My new dev machine is running XP Pro. In the past all
| >| equipment has only used Windows 2000. I have had a lot of problems
| >| getting my projects up and running on the new machine. The current
| >| one is a permission error.
| >|
| >| The project is a VC++ Web Service. It works fine when the service is
| >| hosted on the old W2K dev machine, but on the new XP machine I get a
| >| permission error when the service tries to open a text file on the
| >| Windows 2000 domain server. It is a standard fopen call across the
| >| LAN. I have no problem opening the file from Windows Explorer, or
| >| from a standard windows program on the XP machine, but with the Web
| >| Service, when running on the XP machine, the fopen call returns NULL
| >| and GetNextError returns 5 - permission error.
| >|
| >| I cannot find any reason - any help?
| >|
| >| Thanks, Russ
| >|
| >|
|

Nov 22 '05 #5
Thanks for your followup Russ,

For local account, it can be authenticated on a remote server as long as
there is a duplicated mapping account which has the same username and
password on the target remote server. So not sure whether the wi2k client
and server share such a account which is used as the asp.net's process
identity at that time.

For remote debugging, it'll be a bit hard to configure, here is the related
msdn reference:

#Debugging Web Applications on a Remote Server
http://msdn.microsoft.com/library/en...ggingwebapplic
ationonremotese rver.asp?frame= true

Hope helps. Thanks,
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| NNTP-Posting-Date: Wed, 19 Oct 2005 12:21:48 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Wed, 19 Oct 2005 13:21:58 -0400
| Message-ID: <5r************ *************** *****@4ax.com>
| References: <th************ *************** *****@4ax.com>
<yI************ **@TK2MSFTNGXA0 1.phx.gbl>
<d4************ *************** *****@4ax.com>
<4u************ **@TK2MSFTNGXA0 1.phx.gbl>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 254
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-jtKs6ibccbcdVOq D7r0U0Nv1pR88uV IsTjSQRO/b4YNtC+c0kWEJkV yings++mPIi4yGl iHb
bBqRXX7!3nlKJ7V z4T7VqZZCzfW4Ls LP6KIhDx660IlMu ENAqhUErGdA+hZD cmQvXH9Uhq4easw G
t3FRAAbL!PoRmgA +B
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli
ne.de!news.glor b.com!border1.n ntp.dca.giganew s.com!nntp.giga news.com!local0 1
.nntp.dca.gigan ews.com!nntp.co mcast.com!news. comcast.com.POS TED!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52368
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| On Wed, 19 Oct 2005 03:20:46 GMT, st*****@online. microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| >Hi Russ,
| >
| >Thanks for your response.
| >As you mentioned that you've use the following configuration in
web.config
| > <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| >password="xx x" />
| >
| >that means the webservice will running under the impersonate idenitity.
| >Also, the "xps.PrsNj.loca l\Russ" is a local account on the XP machine,
yes?
|
| Yes.
|
| > If so, it is not remotable to other remote machines. Are the xp client
| >machine and win2k box in a domain
| >environment? If so , you can try configured the webservice to running
under
| >a domain account so that it can be validated on the win2k server
machine.
|
| But why should I have to do this? I did not have to do it when the
| dev machine was running W2K. It seems to me that when one builds a
| web service on his local machine and then tries to debug it, the
| permissions of the logged in developer should apply - especially when
| impersonating that user.
|
| However I have discovered that I can deploy the web service to the W2K
| domain server and there it runs with no problems, except that I had to
| change the impersonated user to a domain user. I did not have to do
| this when the dev station was W2K. In other words, the web service,
| running on the W2K server, would impersonate a local user on the W2K
| dev station, and it would still work. Not so with the dev station
| being XP.
|
| Changing the impersonated user to a user on the domain does work when
| the service is running on the domain server, so that was good enough
| for me to decide that the new XP dev machine is up and usable. Next I
| built the client for the web service, and that works too (as long as
| the service runs on the domain server). My main problem now is that I
| have to use remote debugging if I need to debug something - so I still
| need to find the solution.
|
| So now that I have proved that the XP dev station is usable, I went
| ahead and executed the next step in upgrading my development platform.
| I retired the W2K server and built a new W2003 domain server. I have
| not yet got that server up to the point where I can run the web
| service on it. A lot of other work, to make sure it could support our
| legacy applications, was needed first. So I am not sure exactly how
| the new server will affect all this - if at all.
|
| I will get back to you on this in a day or three when I get everything
| running again. In the meanwhile it would be good if you have any
| other suggestions regarding being able to debug the web service on my
| dev machine.
|
| Thanks for your continued attention to this matter,
|
| Regards, Russ
|
| >
| >In addition, is there SQLserver on the win2k box? If so, you can try let
| >the webservice make connection to sqlserver so that you can watch which
| >cilent account is logon at the server (through the SQLserver profiler).
If
| >no sqlserver available, you can try turning on the NTFS security audit
on
| >that shared folder at the 2k server machine. Thus , we can watch audit
log
| >to check the client account also.
| >
| >Thanks,
| >
| >Steven Cheng
| >Microsoft Online Support
| >
| >Get Secure! www.microsoft.com/security
| >(This posting is provided "AS IS", with no warranties, and confers no
| >rights.)
| >
| >
| >
| >--------------------
| >| NNTP-Posting-Date: Mon, 17 Oct 2005 08:42:39 -0500
| >| From: Russ <ru****@eticomm .net>
| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| Subject: Re: Permission Errors
| >| Date: Mon, 17 Oct 2005 09:42:38 -0400
| >| Message-ID: <d4************ *************** *****@4ax.com>
| >| References: <th************ *************** *****@4ax.com>
| ><yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
| >| X-Newsreader: Forte Agent 3.0/32.763
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset=us-ascii
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 126
| >| NNTP-Posting-Host: 68.37.155.53
| >| X-Trace:
|
sv3-gDWyCGpEupEX0j1 fSbjlcEQCmafJ9o 78ImvcZFRYgzuTJ rUVBXNwSDFvEjXU 0WYIV5S0Sj4 x
|XAEYD4F!+gD1O9 UCRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J26I P
| >8Kdp9Ub8!SFDYp nTo
| >| X-Complaints-To: ab***@comcast.n et
| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >complaint properly
| >| X-Postfilter: 1.3.32
| >| Path:
|TK2MSFTNGXA01. phx.gbl!TK2MSFT FEED02.phx.gbl! tornado.fastweb net.it!tiscali! n e
|wsfeed1.ip.tis cali.net!proxad .net!216.239.36 .134.MISMATCH!p ostnews.google. c o
|m!news4.google .com!border1.nn tp.dca.giganews .com!nntp.gigan ews.com!local01 . n
|ntp.dca.gigane ws.com!nntp.com cast.com!news.c omcast.com.POST ED!not-for-mail

| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52146
| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >|
| >| On Mon, 17 Oct 2005 03:18:00 GMT, st*****@online. microsoft.com (Steven
| >| Cheng[MSFT]) wrote:
| >|
| >| >Hi Russ,
| >| >
| >| >Welcome to MSDN newsgroup.
| >| >From your description, you have a c++ built Webservcie which will
access
| >a
| >| >remote file on a local domain server. This works well when deploying
on
| >a
| >| >win2k server , however after move it to a winxp box, you found the
| >| >webservice failed with permission error when perform the file
accessing
| >| >operation, yes?
| >|
| >| Not exactly. The web service is being built on the dev station running
| >| under XP. It accesses a file on the W2K server. When I run or debug
| >| it on the XP station, is when it fails. When I build and test the
| >| same source code on a W2K Pro workstation there is no failure.
| >|
| >| Also, if I deploy the web service on the W2K server, it works ok. So
| >| the problem is just with the XP workstation.
| >|
| >| >
| >| >AS for the VC++ webservice is it hosed in IIS and how did you
creating
| >it
| >| >and deploying it?
| >|
| >| I presume you mean hosted, not hosed? I would agree with either
| >| statement, ha ha.
| >|
| >| It is created with Visual Studio using managed C++. It makes calls to
| >| an unmanaged library and it is this library that makes the call to
| >| open the server file. I have tried a variety of methods to deploy it.
| >| VC++ deploys it automatically on the local machine, but I have also
| >| built a deployment project and used that to deploy on the local
| >| machine. Additionally I have tried manually creating a virtual
| >| directory via IIS.
| >|
| >| > Generally the permission problem is likely caused by the
| >| >webservice's process idenitity. For most service applications they're
| >| >running under a non-interactive account(local account ) which won't
be
| >| >remotable. So when accessing resources on remote machine, such local
| >| >service accont will be recoginzed as NULL session. For "windows
| >explorer"
| >| >or other standard windows applications, they're running under the
| >| >interative logon user's account and when the interactive user is a
| >domain
| >| >user, it'll surely be valid to remote machine.
| >|
| >| In the web.config file, I have:
| >|
| >| <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| >| password="xxx" />
| >|
| >| Does not this allow the web service to take on the permissions of the
| >| user account on the XP machine? (XPS is the machine name.)
| >|
| >| >
| >| >So please have a check on this and feel free to post here if you have
| >any
| >| >further finding or questions.
| >|
| >| I'm sure this is the crux of the problem, but how do I go about
| >| checking it out and curing it? And why does it fail under XP but not
| >| under W2K Pro? I did discover that for XP, in my impersonate
| >| statement I had to use the full domain name of the XPS machine,
| >| xps.PrsNj.local , whereas in W2K all I needed was xps.russ.
| >|
| >| Thanks you. Russ
| >|
| >| >
| >| >Steven Cheng
| >| >Microsoft Online Support
| >| >
| >| >Get Secure! www.microsoft.com/security
| >| >(This posting is provided "AS IS", with no warranties, and confers no
| >| >rights.)
| >| >
| >| >
| >| >
| >| >
| >| >--------------------
| >| >| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| >| >| From: Russ <ru****@eticomm .net>
| >| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| >| Subject: Permission Errors
| >| >| Date: Sun, 16 Oct 2005 16:23:08 -0400
| >| >| Message-ID: <th************ *************** *****@4ax.com>
| >| >| X-Newsreader: Forte Agent 3.0/32.763
| >| >| MIME-Version: 1.0
| >| >| Content-Type: text/plain; charset=us-ascii
| >| >| Content-Transfer-Encoding: 7bit
| >| >| Lines: 19
| >| >| NNTP-Posting-Host: 68.37.155.53
| >| >| X-Trace:
| >|
|
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP 0
| >F
| >|
|ICfXpfc!IGA9J yv54ErQe3Cjgk8e O4N7M2LAayvzLbN 87cmpOB8GJxt0WN Yj77Zlz6C4uKfEo Y W
| >8
| >| >EeDeRHbG!47Nts 75I
| >| >| X-Complaints-To: ab***@comcast.n et
| >| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL
headers
| >| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >| >complaint properly
| >| >| X-Postfilter: 1.3.32
| >| >| Path:
| >|
|TK2MSFTNGXA01 .phx.gbl!TK2MSF TFEED02.phx.gbl !tornado.fastwe bnet.it!tiscali ! n
| >e
| >|
|wsfeed1.ip.ti scali.net!news. glorb.com!postn ews.google.com! news4.google.co m !
| >b
| >|
|order1.nntp.d ca.giganews.com !nntp.giganews. com!local01.nnt p.dca.giganews. c

o
| >m
| >| >!nntp.comcast. com!news.comcas t.com.POSTED!no t-for-mail
| >| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| >| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >| >|
| >| >|
| >| >| Hello. My new dev machine is running XP Pro. In the past all
| >| >| equipment has only used Windows 2000. I have had a lot of problems
| >| >| getting my projects up and running on the new machine. The current
| >| >| one is a permission error.
| >| >|
| >| >| The project is a VC++ Web Service. It works fine when the service
is
| >| >| hosted on the old W2K dev machine, but on the new XP machine I get a
| >| >| permission error when the service tries to open a text file on the
| >| >| Windows 2000 domain server. It is a standard fopen call across the
| >| >| LAN. I have no problem opening the file from Windows Explorer, or
| >| >| from a standard windows program on the XP machine, but with the Web
| >| >| Service, when running on the XP machine, the fopen call returns NULL
| >| >| and GetNextError returns 5 - permission error.
| >| >|
| >| >| I cannot find any reason - any help?
| >| >|
| >| >| Thanks, Russ
| >| >|
| >| >|
| >|
|

Nov 22 '05 #6
Steven, I have now a different program that is keeping me from even
getting back to the issue we were discussing. I installed the new
Windows 2003 server but suddenly I cannot get the web service to work,
either on the new server or even on the XP workstation. As far as I
know I did not change anything on the workstation, but maybe something
happened by accident. Anyway whenever I try to run the service I get
the following error screen, which is rather cryptic as I cannot figure
out what to do.

My first question is: what is "PayrollEntrySe rvice.Global"? Is it a
file, a class, or what. How do I find it and what do I do to make
sure it is loadable?

Thanks, Russ
Server Error in '/PayrollEntrySer vice' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: Could not load type
'PayrollEntrySe rvice.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Glo bal.asax.h"
Inherits="Payro llEntryService. Global" %>

Source File: C:\PssDev\Payro llEntryService\ global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
ASP.NET Version:1.1.432 2.2032

On Wed, 19 Oct 2005 03:20:46 GMT, st*****@online. microsoft.com (Steven
Cheng[MSFT]) wrote:
Hi Russ,

Thanks for your response.
As you mentioned that you've use the following configuration in web.config
<identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
password="xx x" />

that means the webservice will running under the impersonate idenitity.
Also, the "xps.PrsNj.loca l\Russ" is a local account on the XP machine, yes?
If so, it is not remotable to other remote machines. Are the xp client
machine and win2k box in a domain
environment? If so , you can try configured the webservice to running under
a domain account so that it can be validated on the win2k server machine.

In addition, is there SQLserver on the win2k box? If so, you can try let
the webservice make connection to sqlserver so that you can watch which
cilent account is logon at the server (through the SQLserver profiler). If
no sqlserver available, you can try turning on the NTFS security audit on
that shared folder at the 2k server machine. Thus , we can watch audit log
to check the client account also.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| NNTP-Posting-Date: Mon, 17 Oct 2005 08:42:39 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Mon, 17 Oct 2005 09:42:38 -0400
| Message-ID: <d4************ *************** *****@4ax.com>
| References: <th************ *************** *****@4ax.com>
<yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 126
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-gDWyCGpEupEX0j1 fSbjlcEQCmafJ9o 78ImvcZFRYgzuTJ rUVBXNwSDFvEjXU 0WYIV5S0Sj4x
XAEYD4F!+gD1O9 UCRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J26IP
8Kdp9Ub8!SFDYp nTo
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01. phx.gbl!TK2MSFT FEED02.phx.gbl! tornado.fastweb net.it!tiscali! ne
wsfeed1.ip.tis cali.net!proxad .net!216.239.36 .134.MISMATCH!p ostnews.google. co
m!news4.google .com!border1.nn tp.dca.giganews .com!nntp.gigan ews.com!local01 .n
ntp.dca.gigane ws.com!nntp.com cast.com!news.c omcast.com.POST ED!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52146
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| On Mon, 17 Oct 2005 03:18:00 GMT, st*****@online. microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| >Hi Russ,
| >
| >Welcome to MSDN newsgroup.
| >From your description, you have a c++ built Webservcie which will access
a
| >remote file on a local domain server. This works well when deploying on
a
| >win2k server , however after move it to a winxp box, you found the
| >webservice failed with permission error when perform the file accessing
| >operation, yes?
|
| Not exactly. The web service is being built on the dev station running
| under XP. It accesses a file on the W2K server. When I run or debug
| it on the XP station, is when it fails. When I build and test the
| same source code on a W2K Pro workstation there is no failure.
|
| Also, if I deploy the web service on the W2K server, it works ok. So
| the problem is just with the XP workstation.
|
| >
| >AS for the VC++ webservice is it hosed in IIS and how did you creating
it
| >and deploying it?
|
| I presume you mean hosted, not hosed? I would agree with either
| statement, ha ha.
|
| It is created with Visual Studio using managed C++. It makes calls to
| an unmanaged library and it is this library that makes the call to
| open the server file. I have tried a variety of methods to deploy it.
| VC++ deploys it automatically on the local machine, but I have also
| built a deployment project and used that to deploy on the local
| machine. Additionally I have tried manually creating a virtual
| directory via IIS.
|
| > Generally the permission problem is likely caused by the
| >webservice's process idenitity. For most service applications they're
| >running under a non-interactive account(local account ) which won't be
| >remotable. So when accessing resources on remote machine, such local
| >service accont will be recoginzed as NULL session. For "windows
explorer"
| >or other standard windows applications, they're running under the
| >interative logon user's account and when the interactive user is a
domain
| >user, it'll surely be valid to remote machine.
|
| In the web.config file, I have:
|
| <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| password="xxx" />
|
| Does not this allow the web service to take on the permissions of the
| user account on the XP machine? (XPS is the machine name.)
|
| >
| >So please have a check on this and feel free to post here if you have
any
| >further finding or questions.
|
| I'm sure this is the crux of the problem, but how do I go about
| checking it out and curing it? And why does it fail under XP but not
| under W2K Pro? I did discover that for XP, in my impersonate
| statement I had to use the full domain name of the XPS machine,
| xps.PrsNj.local , whereas in W2K all I needed was xps.russ.
|
| Thanks you. Russ
|
| >
| >Steven Cheng
| >Microsoft Online Support
| >
| >Get Secure! www.microsoft.com/security
| >(This posting is provided "AS IS", with no warranties, and confers no
| >rights.)
| >
| >
| >
| >
| >--------------------
| >| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| >| From: Russ <ru****@eticomm .net>
| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| Subject: Permission Errors
| >| Date: Sun, 16 Oct 2005 16:23:08 -0400
| >| Message-ID: <th************ *************** *****@4ax.com>
| >| X-Newsreader: Forte Agent 3.0/32.763
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset=us-ascii
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 19
| >| NNTP-Posting-Host: 68.37.155.53
| >| X-Trace:
|
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP0

F
|
ICfXpfc!IGA9J yv54ErQe3Cjgk8e O4N7M2LAayvzLbN 87cmpOB8GJxt0WN Yj77Zlz6C4uKfEo YW

8
| >EeDeRHbG!47Nts 75I
| >| X-Complaints-To: ab***@comcast.n et
| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >complaint properly
| >| X-Postfilter: 1.3.32
| >| Path:
|
TK2MSFTNGXA01 .phx.gbl!TK2MSF TFEED02.phx.gbl !tornado.fastwe bnet.it!tiscali !n

e
|
wsfeed1.ip.ti scali.net!news. glorb.com!postn ews.google.com! news4.google.co m!

b
|
order1.nntp.d ca.giganews.com !nntp.giganews. com!local01.nnt p.dca.giganews. co

m
| >!nntp.comcast. com!news.comcas t.com.POSTED!no t-for-mail
| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >|
| >|
| >| Hello. My new dev machine is running XP Pro. In the past all
| >| equipment has only used Windows 2000. I have had a lot of problems
| >| getting my projects up and running on the new machine. The current
| >| one is a permission error.
| >|
| >| The project is a VC++ Web Service. It works fine when the service is
| >| hosted on the old W2K dev machine, but on the new XP machine I get a
| >| permission error when the service tries to open a text file on the
| >| Windows 2000 domain server. It is a standard fopen call across the
| >| LAN. I have no problem opening the file from Windows Explorer, or
| >| from a standard windows program on the XP machine, but with the Web
| >| Service, when running on the XP machine, the fopen call returns NULL
| >| and GetNextError returns 5 - permission error.
| >|
| >| I cannot find any reason - any help?
| >|
| >| Thanks, Russ
| >|
| >|
|

Nov 22 '05 #7
Hi Russ,

As for the new problem you mentioned, it is likely caused by some
deployment setting.
The "XXXX.Globa l " is a class , and generally each ASP.NET application
will have one(or using the default if we don't explicitly provide one).
When using VS.NET IDE to create the asp.net project, it'll automatically
add such a global class. However, the error message you met is not
specific to the global class, it indicate that your asp.net
application(web service) can not find the certain class (assembly) it
requires.(gener ally global class is the first class which need to be loaded
into runtime...).

So on your new 2003 server, go to your webservice(Payr ollEntryService )'s
application dir, and check the private "bin" sub dir to see whether all the
webservice's assemblies are in the "bin" dir.

If the assemblies are all existing, then make sure your application's
physical dir is located in a public place (not a user specific one , for
example under document settings\userna me......) so that the ASP.NET process
identity can successfully access them.

Also, above all , you need to makesure a normal asp.net
application(web service) can run correctly (hosted in IIS). If there're
anything unclear, please feel free to post here.

Thanks,
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| NNTP-Posting-Date: Fri, 21 Oct 2005 14:22:25 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Fri, 21 Oct 2005 15:22:06 -0400
| Message-ID: <nc************ *************** *****@4ax.com>
| References: <th************ *************** *****@4ax.com>
<yI************ **@TK2MSFTNGXA0 1.phx.gbl>
<d4************ *************** *****@4ax.com>
<4u************ **@TK2MSFTNGXA0 1.phx.gbl>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 253
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-nXJenZUWWBgFZCR 9vAHhVQLHt3Ar8s odPe/9DYkFMD06e5++XO LGolXHkMgGuBK9U wTQG3MJ
uOW6yvi!Oh4nJ9x +wxOR0neSTmsAJJ 2RUlucT5voq4zjy jd5/cH6Ik6BJ4XkBaGp D25dXcsAPmoo
ArLXAoie!/vUojs8u
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli
ne.de!border2.n ntp.dca.giganew s.com!border1.n ntp.dca.giganew s.com!nntp.giga n
ews.com!local01 .nntp.dca.gigan ews.com!nntp.co mcast.com!news. comcast.com.POS T
ED!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52567
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Steven, I have now a different program that is keeping me from even
| getting back to the issue we were discussing. I installed the new
| Windows 2003 server but suddenly I cannot get the web service to work,
| either on the new server or even on the XP workstation. As far as I
| know I did not change anything on the workstation, but maybe something
| happened by accident. Anyway whenever I try to run the service I get
| the following error screen, which is rather cryptic as I cannot figure
| out what to do.
|
| My first question is: what is "PayrollEntrySe rvice.Global"? Is it a
| file, a class, or what. How do I find it and what do I do to make
| sure it is loadable?
|
| Thanks, Russ
|
|
| Server Error in '/PayrollEntrySer vice' Application.
|
----------------------------------------------------------------------------
----
|
| Parser Error
| Description: An error occurred during the parsing of a resource
| required to service this request. Please review the following specific
| parse error details and modify your source file appropriately.
|
| Parser Error Message: Could not load type
| 'PayrollEntrySe rvice.Global'.
|
| Source Error:
|
|
| Line 1: <%@ Application Codebehind="Glo bal.asax.h"
| Inherits="Payro llEntryService. Global" %>
|
|
|
| Source File: C:\PssDev\Payro llEntryService\ global.asax Line: 1
|
|
|
----------------------------------------------------------------------------
----
| Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
| ASP.NET Version:1.1.432 2.2032
|
| On Wed, 19 Oct 2005 03:20:46 GMT, st*****@online. microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| >Hi Russ,
| >
| >Thanks for your response.
| >As you mentioned that you've use the following configuration in
web.config
| > <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| >password="xx x" />
| >
| >that means the webservice will running under the impersonate idenitity.
| >Also, the "xps.PrsNj.loca l\Russ" is a local account on the XP machine,
yes?
| > If so, it is not remotable to other remote machines. Are the xp client
| >machine and win2k box in a domain
| >environment? If so , you can try configured the webservice to running
under
| >a domain account so that it can be validated on the win2k server
machine.
| >
| >In addition, is there SQLserver on the win2k box? If so, you can try let
| >the webservice make connection to sqlserver so that you can watch which
| >cilent account is logon at the server (through the SQLserver profiler).
If
| >no sqlserver available, you can try turning on the NTFS security audit
on
| >that shared folder at the 2k server machine. Thus , we can watch audit
log
| >to check the client account also.
| >
| >Thanks,
| >
| >Steven Cheng
| >Microsoft Online Support
| >
| >Get Secure! www.microsoft.com/security
| >(This posting is provided "AS IS", with no warranties, and confers no
| >rights.)
| >
| >
| >
| >--------------------
| >| NNTP-Posting-Date: Mon, 17 Oct 2005 08:42:39 -0500
| >| From: Russ <ru****@eticomm .net>
| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| Subject: Re: Permission Errors
| >| Date: Mon, 17 Oct 2005 09:42:38 -0400
| >| Message-ID: <d4************ *************** *****@4ax.com>
| >| References: <th************ *************** *****@4ax.com>
| ><yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
| >| X-Newsreader: Forte Agent 3.0/32.763
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset=us-ascii
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 126
| >| NNTP-Posting-Host: 68.37.155.53
| >| X-Trace:
|
sv3-gDWyCGpEupEX0j1 fSbjlcEQCmafJ9o 78ImvcZFRYgzuTJ rUVBXNwSDFvEjXU 0WYIV5S0Sj4 x
|XAEYD4F!+gD1O9 UCRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J26I P
| >8Kdp9Ub8!SFDYp nTo
| >| X-Complaints-To: ab***@comcast.n et
| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >complaint properly
| >| X-Postfilter: 1.3.32
| >| Path:
|TK2MSFTNGXA01. phx.gbl!TK2MSFT FEED02.phx.gbl! tornado.fastweb net.it!tiscali! n e
|wsfeed1.ip.tis cali.net!proxad .net!216.239.36 .134.MISMATCH!p ostnews.google. c o
|m!news4.google .com!border1.nn tp.dca.giganews .com!nntp.gigan ews.com!local01 . n
|ntp.dca.gigane ws.com!nntp.com cast.com!news.c omcast.com.POST ED!not-for-mail

| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52146
| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >|
| >| On Mon, 17 Oct 2005 03:18:00 GMT, st*****@online. microsoft.com (Steven
| >| Cheng[MSFT]) wrote:
| >|
| >| >Hi Russ,
| >| >
| >| >Welcome to MSDN newsgroup.
| >| >From your description, you have a c++ built Webservcie which will
access
| >a
| >| >remote file on a local domain server. This works well when deploying
on
| >a
| >| >win2k server , however after move it to a winxp box, you found the
| >| >webservice failed with permission error when perform the file
accessing
| >| >operation, yes?
| >|
| >| Not exactly. The web service is being built on the dev station running
| >| under XP. It accesses a file on the W2K server. When I run or debug
| >| it on the XP station, is when it fails. When I build and test the
| >| same source code on a W2K Pro workstation there is no failure.
| >|
| >| Also, if I deploy the web service on the W2K server, it works ok. So
| >| the problem is just with the XP workstation.
| >|
| >| >
| >| >AS for the VC++ webservice is it hosed in IIS and how did you
creating
| >it
| >| >and deploying it?
| >|
| >| I presume you mean hosted, not hosed? I would agree with either
| >| statement, ha ha.
| >|
| >| It is created with Visual Studio using managed C++. It makes calls to
| >| an unmanaged library and it is this library that makes the call to
| >| open the server file. I have tried a variety of methods to deploy it.
| >| VC++ deploys it automatically on the local machine, but I have also
| >| built a deployment project and used that to deploy on the local
| >| machine. Additionally I have tried manually creating a virtual
| >| directory via IIS.
| >|
| >| > Generally the permission problem is likely caused by the
| >| >webservice's process idenitity. For most service applications they're
| >| >running under a non-interactive account(local account ) which won't
be
| >| >remotable. So when accessing resources on remote machine, such local
| >| >service accont will be recoginzed as NULL session. For "windows
| >explorer"
| >| >or other standard windows applications, they're running under the
| >| >interative logon user's account and when the interactive user is a
| >domain
| >| >user, it'll surely be valid to remote machine.
| >|
| >| In the web.config file, I have:
| >|
| >| <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| >| password="xxx" />
| >|
| >| Does not this allow the web service to take on the permissions of the
| >| user account on the XP machine? (XPS is the machine name.)
| >|
| >| >
| >| >So please have a check on this and feel free to post here if you have
| >any
| >| >further finding or questions.
| >|
| >| I'm sure this is the crux of the problem, but how do I go about
| >| checking it out and curing it? And why does it fail under XP but not
| >| under W2K Pro? I did discover that for XP, in my impersonate
| >| statement I had to use the full domain name of the XPS machine,
| >| xps.PrsNj.local , whereas in W2K all I needed was xps.russ.
| >|
| >| Thanks you. Russ
| >|
| >| >
| >| >Steven Cheng
| >| >Microsoft Online Support
| >| >
| >| >Get Secure! www.microsoft.com/security
| >| >(This posting is provided "AS IS", with no warranties, and confers no
| >| >rights.)
| >| >
| >| >
| >| >
| >| >
| >| >--------------------
| >| >| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| >| >| From: Russ <ru****@eticomm .net>
| >| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| >| Subject: Permission Errors
| >| >| Date: Sun, 16 Oct 2005 16:23:08 -0400
| >| >| Message-ID: <th************ *************** *****@4ax.com>
| >| >| X-Newsreader: Forte Agent 3.0/32.763
| >| >| MIME-Version: 1.0
| >| >| Content-Type: text/plain; charset=us-ascii
| >| >| Content-Transfer-Encoding: 7bit
| >| >| Lines: 19
| >| >| NNTP-Posting-Host: 68.37.155.53
| >| >| X-Trace:
| >|
|
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP 0
| >F
| >|
|ICfXpfc!IGA9J yv54ErQe3Cjgk8e O4N7M2LAayvzLbN 87cmpOB8GJxt0WN Yj77Zlz6C4uKfEo Y W
| >8
| >| >EeDeRHbG!47Nts 75I
| >| >| X-Complaints-To: ab***@comcast.n et
| >| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL
headers
| >| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >| >complaint properly
| >| >| X-Postfilter: 1.3.32
| >| >| Path:
| >|
|TK2MSFTNGXA01 .phx.gbl!TK2MSF TFEED02.phx.gbl !tornado.fastwe bnet.it!tiscali ! n
| >e
| >|
|wsfeed1.ip.ti scali.net!news. glorb.com!postn ews.google.com! news4.google.co m !
| >b
| >|
|order1.nntp.d ca.giganews.com !nntp.giganews. com!local01.nnt p.dca.giganews. c

o
| >m
| >| >!nntp.comcast. com!news.comcas t.com.POSTED!no t-for-mail
| >| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| >| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >| >|
| >| >|
| >| >| Hello. My new dev machine is running XP Pro. In the past all
| >| >| equipment has only used Windows 2000. I have had a lot of problems
| >| >| getting my projects up and running on the new machine. The current
| >| >| one is a permission error.
| >| >|
| >| >| The project is a VC++ Web Service. It works fine when the service
is
| >| >| hosted on the old W2K dev machine, but on the new XP machine I get a
| >| >| permission error when the service tries to open a text file on the
| >| >| Windows 2000 domain server. It is a standard fopen call across the
| >| >| LAN. I have no problem opening the file from Windows Explorer, or
| >| >| from a standard windows program on the XP machine, but with the Web
| >| >| Service, when running on the XP machine, the fopen call returns NULL
| >| >| and GetNextError returns 5 - permission error.
| >| >|
| >| >| I cannot find any reason - any help?
| >| >|
| >| >| Thanks, Russ
| >| >|
| >| >|
| >|
|

Nov 22 '05 #8
Steven, thanks for your reply. The web service project exists on the
local workstation, not the server. It was working when I had the old
server running, both when running the web service on the local
workstation and when deployed to the W2K server.

Now it works on neither - and as far as I know I did not change
anything at the workstation. As well as I can understand, the server
should not have any effect on starting the project on the work
station. Once the service is running on the workstation, then it
needs the server in order to locate some data files, but the project
should still start, even if the server was shut down. Right???

And all I did was to set up a new server and remove the old one.
Incidentally, if I copy the service to the new server and try to run
it there, I get the same error. It seems that something has changed
in one of the project files, but I still don't have a clue what to
look for.

One last thing. The old server was a domain server and I set up the
new one to be a domain server with the same domain name. After the
2003 server was up, I removed the workstation from the domain, making
it a workgroup computer, and then joined the domain again, to be sure
it was registered correctly with the new server. Later in my testing
I started up the old server and sure enough the web service would run
on it (but still not on the work station). Then I demoted the old W2K
server down to a workgroup computer, and then joined it to the new
domain. At that point the web service no longer works on the W2K
server either!

Please try to make some sense of this for me - I haven't a clue!

Thanks, Russ

On Mon, 24 Oct 2005 04:39:22 GMT, st*****@online. microsoft.com (Steven
Cheng[MSFT]) wrote:
Hi Russ,

As for the new problem you mentioned, it is likely caused by some
deployment setting.
The "XXXX.Globa l " is a class , and generally each ASP.NET application
will have one(or using the default if we don't explicitly provide one).
When using VS.NET IDE to create the asp.net project, it'll automatically
add such a global class. However, the error message you met is not
specific to the global class, it indicate that your asp.net
application(we bservice) can not find the certain class (assembly) it
requires.(gene rally global class is the first class which need to be loaded
into runtime...).

So on your new 2003 server, go to your webservice(Payr ollEntryService )'s
application dir, and check the private "bin" sub dir to see whether all the
webservice's assemblies are in the "bin" dir.

If the assemblies are all existing, then make sure your application's
physical dir is located in a public place (not a user specific one , for
example under document settings\userna me......) so that the ASP.NET process
identity can successfully access them.

Also, above all , you need to makesure a normal asp.net
application(we bservice) can run correctly (hosted in IIS). If there're
anything unclear, please feel free to post here.

Thanks,
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| NNTP-Posting-Date: Fri, 21 Oct 2005 14:22:25 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Fri, 21 Oct 2005 15:22:06 -0400
| Message-ID: <nc************ *************** *****@4ax.com>
| References: <th************ *************** *****@4ax.com>
<yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
<d4*********** *************** ******@4ax.com>
<4u*********** ***@TK2MSFTNGXA 01.phx.gbl>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 253
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-nXJenZUWWBgFZCR 9vAHhVQLHt3Ar8s odPe/9DYkFMD06e5++XO LGolXHkMgGuBK9U wTQG3MJ
uOW6yvi!Oh4nJ9 x+wxOR0neSTmsAJ J2RUlucT5voq4zj yjd5/cH6Ik6BJ4XkBaGp D25dXcsAPmoo
ArLXAoie!/vUojs8u
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01. phx.gbl!TK2MSFT NGP08.phx.gbl!n ewsfeed00.sul.t-online.de!t-onli
ne.de!border2. nntp.dca.gigane ws.com!border1. nntp.dca.gigane ws.com!nntp.gig an
ews.com!local0 1.nntp.dca.giga news.com!nntp.c omcast.com!news .comcast.com.PO ST
ED!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52567
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Steven, I have now a different program that is keeping me from even
| getting back to the issue we were discussing. I installed the new
| Windows 2003 server but suddenly I cannot get the web service to work,
| either on the new server or even on the XP workstation. As far as I
| know I did not change anything on the workstation, but maybe something
| happened by accident. Anyway whenever I try to run the service I get
| the following error screen, which is rather cryptic as I cannot figure
| out what to do.
|
| My first question is: what is "PayrollEntrySe rvice.Global"? Is it a
| file, a class, or what. How do I find it and what do I do to make
| sure it is loadable?
|
| Thanks, Russ
|
|
| Server Error in '/PayrollEntrySer vice' Application.
|
----------------------------------------------------------------------------
----
|
| Parser Error
| Description: An error occurred during the parsing of a resource
| required to service this request. Please review the following specific
| parse error details and modify your source file appropriately.
|
| Parser Error Message: Could not load type
| 'PayrollEntrySe rvice.Global'.
|
| Source Error:
|
|
| Line 1: <%@ Application Codebehind="Glo bal.asax.h"
| Inherits="Payro llEntryService. Global" %>
|
|
|
| Source File: C:\PssDev\Payro llEntryService\ global.asax Line: 1
|
|
|
----------------------------------------------------------------------------
----
| Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
| ASP.NET Version:1.1.432 2.2032
|
| On Wed, 19 Oct 2005 03:20:46 GMT, st*****@online. microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| >Hi Russ,
| >
| >Thanks for your response.
| >As you mentioned that you've use the following configuration in
web.config
| > <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| >password="xx x" />
| >
| >that means the webservice will running under the impersonate idenitity.
| >Also, the "xps.PrsNj.loca l\Russ" is a local account on the XP machine,
yes?
| > If so, it is not remotable to other remote machines. Are the xp client
| >machine and win2k box in a domain
| >environment? If so , you can try configured the webservice to running
under
| >a domain account so that it can be validated on the win2k server
machine.
| >
| >In addition, is there SQLserver on the win2k box? If so, you can try let
| >the webservice make connection to sqlserver so that you can watch which
| >cilent account is logon at the server (through the SQLserver profiler).
If
| >no sqlserver available, you can try turning on the NTFS security audit
on
| >that shared folder at the 2k server machine. Thus , we can watch audit
log
| >to check the client account also.
| >
| >Thanks,
| >
| >Steven Cheng
| >Microsoft Online Support
| >
| >Get Secure! www.microsoft.com/security
| >(This posting is provided "AS IS", with no warranties, and confers no
| >rights.)
| >
| >
| >
| >--------------------
| >| NNTP-Posting-Date: Mon, 17 Oct 2005 08:42:39 -0500
| >| From: Russ <ru****@eticomm .net>
| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| Subject: Re: Permission Errors
| >| Date: Mon, 17 Oct 2005 09:42:38 -0400
| >| Message-ID: <d4************ *************** *****@4ax.com>
| >| References: <th************ *************** *****@4ax.com>
| ><yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
| >| X-Newsreader: Forte Agent 3.0/32.763
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset=us-ascii
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 126
| >| NNTP-Posting-Host: 68.37.155.53
| >| X-Trace:
|
sv3-gDWyCGpEupEX0j1 fSbjlcEQCmafJ9o 78ImvcZFRYgzuTJ rUVBXNwSDFvEjXU 0WYIV5S0Sj4

x
|
XAEYD4F!+gD1O 9UCRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J26I

P
| >8Kdp9Ub8!SFDYp nTo
| >| X-Complaints-To: ab***@comcast.n et
| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >complaint properly
| >| X-Postfilter: 1.3.32
| >| Path:
|
TK2MSFTNGXA01 .phx.gbl!TK2MSF TFEED02.phx.gbl !tornado.fastwe bnet.it!tiscali !n

e
|
wsfeed1.ip.ti scali.net!proxa d.net!216.239.3 6.134.MISMATCH! postnews.google .c

o
|
m!news4.googl e.com!border1.n ntp.dca.giganew s.com!nntp.giga news.com!local0 1.

n
|
ntp.dca.gigan ews.com!nntp.co mcast.com!news. comcast.com.POS TED!not-for-mail

| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52146
| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >|
| >| On Mon, 17 Oct 2005 03:18:00 GMT, st*****@online. microsoft.com (Steven
| >| Cheng[MSFT]) wrote:
| >|
| >| >Hi Russ,
| >| >
| >| >Welcome to MSDN newsgroup.
| >| >From your description, you have a c++ built Webservcie which will
access
| >a
| >| >remote file on a local domain server. This works well when deploying
on
| >a
| >| >win2k server , however after move it to a winxp box, you found the
| >| >webservice failed with permission error when perform the file
accessing
| >| >operation, yes?
| >|
| >| Not exactly. The web service is being built on the dev station running
| >| under XP. It accesses a file on the W2K server. When I run or debug
| >| it on the XP station, is when it fails. When I build and test the
| >| same source code on a W2K Pro workstation there is no failure.
| >|
| >| Also, if I deploy the web service on the W2K server, it works ok. So
| >| the problem is just with the XP workstation.
| >|
| >| >
| >| >AS for the VC++ webservice is it hosed in IIS and how did you
creating
| >it
| >| >and deploying it?
| >|
| >| I presume you mean hosted, not hosed? I would agree with either
| >| statement, ha ha.
| >|
| >| It is created with Visual Studio using managed C++. It makes calls to
| >| an unmanaged library and it is this library that makes the call to
| >| open the server file. I have tried a variety of methods to deploy it.
| >| VC++ deploys it automatically on the local machine, but I have also
| >| built a deployment project and used that to deploy on the local
| >| machine. Additionally I have tried manually creating a virtual
| >| directory via IIS.
| >|
| >| > Generally the permission problem is likely caused by the
| >| >webservice's process idenitity. For most service applications they're
| >| >running under a non-interactive account(local account ) which won't
be
| >| >remotable. So when accessing resources on remote machine, such local
| >| >service accont will be recoginzed as NULL session. For "windows
| >explorer"
| >| >or other standard windows applications, they're running under the
| >| >interative logon user's account and when the interactive user is a
| >domain
| >| >user, it'll surely be valid to remote machine.
| >|
| >| In the web.config file, I have:
| >|
| >| <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| >| password="xxx" />
| >|
| >| Does not this allow the web service to take on the permissions of the
| >| user account on the XP machine? (XPS is the machine name.)
| >|
| >| >
| >| >So please have a check on this and feel free to post here if you have
| >any
| >| >further finding or questions.
| >|
| >| I'm sure this is the crux of the problem, but how do I go about
| >| checking it out and curing it? And why does it fail under XP but not
| >| under W2K Pro? I did discover that for XP, in my impersonate
| >| statement I had to use the full domain name of the XPS machine,
| >| xps.PrsNj.local , whereas in W2K all I needed was xps.russ.
| >|
| >| Thanks you. Russ
| >|
| >| >
| >| >Steven Cheng
| >| >Microsoft Online Support
| >| >
| >| >Get Secure! www.microsoft.com/security
| >| >(This posting is provided "AS IS", with no warranties, and confers no
| >| >rights.)
| >| >
| >| >
| >| >
| >| >
| >| >--------------------
| >| >| NNTP-Posting-Date: Sun, 16 Oct 2005 15:23:11 -0500
| >| >| From: Russ <ru****@eticomm .net>
| >| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| >| Subject: Permission Errors
| >| >| Date: Sun, 16 Oct 2005 16:23:08 -0400
| >| >| Message-ID: <th************ *************** *****@4ax.com>
| >| >| X-Newsreader: Forte Agent 3.0/32.763
| >| >| MIME-Version: 1.0
| >| >| Content-Type: text/plain; charset=us-ascii
| >| >| Content-Transfer-Encoding: 7bit
| >| >| Lines: 19
| >| >| NNTP-Posting-Host: 68.37.155.53
| >| >| X-Trace:
| >|
|
sv3-WvRc+U+MgszlORl fxxo/gw1CB4QeCMbRWge 6uJZfqu1poXRF9n yjO4sbT2RrSqItP 0zWFP0
| >F
| >|
|ICfXpfc!IGA9 Jyv54ErQe3Cjgk8 eO4N7M2LAayvzLb N87cmpOB8GJxt0W NYj77Zlz6C4uKfE oYW
| >8
| >| >EeDeRHbG!47Nts 75I
| >| >| X-Complaints-To: ab***@comcast.n et
| >| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL
headers
| >| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >| >complaint properly
| >| >| X-Postfilter: 1.3.32
| >| >| Path:
| >|
|TK2MSFTNGXA0 1.phx.gbl!TK2MS FTFEED02.phx.gb l!tornado.fastw ebnet.it!tiscal i!n
| >e
| >|
|wsfeed1.ip.t iscali.net!news .glorb.com!post news.google.com !news4.google.c om!
| >b
| >|
|order1.nntp. dca.giganews.co m!nntp.giganews .com!local01.nn tp.dca.giganews .c

o
| >m
| >| >!nntp.comcast. com!news.comcas t.com.POSTED!no t-for-mail
| >| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52108
| >| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >| >|
| >| >|
| >| >| Hello. My new dev machine is running XP Pro. In the past all
| >| >| equipment has only used Windows 2000. I have had a lot of problems
| >| >| getting my projects up and running on the new machine. The current
| >| >| one is a permission error.
| >| >|
| >| >| The project is a VC++ Web Service. It works fine when the service
is
| >| >| hosted on the old W2K dev machine, but on the new XP machine I get a
| >| >| permission error when the service tries to open a text file on the
| >| >| Windows 2000 domain server. It is a standard fopen call across the
| >| >| LAN. I have no problem opening the file from Windows Explorer, or
| >| >| from a standard windows program on the XP machine, but with the Web
| >| >| Service, when running on the XP machine, the fopen call returns NULL
| >| >| and GetNextError returns 5 - permission error.
| >| >|
| >| >| I cannot find any reason - any help?
| >| >|
| >| >| Thanks, Russ
| >| >|
| >| >|
| >|
|

Nov 22 '05 #9
Hi Russ,

Thanks for your response.
As you said that
============
The web service project exists on the
local workstation, not the server.
============
do you mean the webservice project's files and assemblies are on the
workstation machine and shared to remote boxes? I'm not quite sure on this
since you deployed the webservice to your new windows 2003 server, you
should also copy the files and assemblies there, didn't you?

Also, for domain controller, generally we do not recommend hosting asp.net
application on DC since DC has some restrictions such as not have local
accounts,..... Anyway, if you can start from create and run a simple
asp.net webservice on your new windows 2003 server so as to makesure the
asp.net framework and IIS works correctly. Then, we can continue to focus
on your specific project.

Please let me know if you have any questions.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| NNTP-Posting-Date: Mon, 24 Oct 2005 12:59:22 -0500
| From: Russ <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Mon, 24 Oct 2005 13:59:18 -0400
| Message-ID: <pu************ *************** *****@4ax.com>
| References: <th************ *************** *****@4ax.com>
<yI************ **@TK2MSFTNGXA0 1.phx.gbl>
<d4************ *************** *****@4ax.com>
<4u************ **@TK2MSFTNGXA0 1.phx.gbl>
<nc************ *************** *****@4ax.com>
<xt************ **@TK2MSFTNGXA0 1.phx.gbl>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 401
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-mnWgmMZzSDgLc0d ibOaGmDNtZP69cT DQlc3dngXWYcw4k 0qJXOfG1sWSf3HL LJNh3hCvTzmI
e3Bucmc!CRFb1C/9kkVDy0wpDnOrXP LBGWeNLui/9utwvtcS9YNztk6 3oX2WPMPyWnCufQ JZB7kt
G589JJzw!ujIEjH cT
| X-Complaints-To: ab***@comcast.n et
| X-DMCA-Complaints-To: dm**@comcast.ne t
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli
ne.de!border2.n ntp.dca.giganew s.com!border1.n ntp.dca.giganew s.com!nntp.giga n
ews.com!local01 .nntp.dca.gigan ews.com!nntp.co mcast.com!news. comcast.com.POS T
ED!not-for-mail
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52690
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Steven, thanks for your reply. The web service project exists on the
| local workstation, not the server. It was working when I had the old
| server running, both when running the web service on the local
| workstation and when deployed to the W2K server.
|
| Now it works on neither - and as far as I know I did not change
| anything at the workstation. As well as I can understand, the server
| should not have any effect on starting the project on the work
| station. Once the service is running on the workstation, then it
| needs the server in order to locate some data files, but the project
| should still start, even if the server was shut down. Right???
|
| And all I did was to set up a new server and remove the old one.
| Incidentally, if I copy the service to the new server and try to run
| it there, I get the same error. It seems that something has changed
| in one of the project files, but I still don't have a clue what to
| look for.
|
| One last thing. The old server was a domain server and I set up the
| new one to be a domain server with the same domain name. After the
| 2003 server was up, I removed the workstation from the domain, making
| it a workgroup computer, and then joined the domain again, to be sure
| it was registered correctly with the new server. Later in my testing
| I started up the old server and sure enough the web service would run
| on it (but still not on the work station). Then I demoted the old W2K
| server down to a workgroup computer, and then joined it to the new
| domain. At that point the web service no longer works on the W2K
| server either!
|
| Please try to make some sense of this for me - I haven't a clue!
|
| Thanks, Russ
|
| On Mon, 24 Oct 2005 04:39:22 GMT, st*****@online. microsoft.com (Steven
| Cheng[MSFT]) wrote:
|
| >Hi Russ,
| >
| >As for the new problem you mentioned, it is likely caused by some
| >deployment setting.
| >The "XXXX.Globa l " is a class , and generally each ASP.NET application
| >will have one(or using the default if we don't explicitly provide one).
| >When using VS.NET IDE to create the asp.net project, it'll
automatically
| >add such a global class. However, the error message you met is not
| >specific to the global class, it indicate that your asp.net
| >application(we bservice) can not find the certain class (assembly) it
| >requires.(gene rally global class is the first class which need to be
loaded
| >into runtime...).
| >
| >So on your new 2003 server, go to your webservice(Payr ollEntryService )'s
| >application dir, and check the private "bin" sub dir to see whether all
the
| >webservice's assemblies are in the "bin" dir.
| >
| >If the assemblies are all existing, then make sure your application's
| >physical dir is located in a public place (not a user specific one , for
| >example under document settings\userna me......) so that the ASP.NET
process
| >identity can successfully access them.
| >
| >Also, above all , you need to makesure a normal asp.net
| >application(we bservice) can run correctly (hosted in IIS). If there're
| >anything unclear, please feel free to post here.
| >
| >Thanks,
| >Steven Cheng
| >Microsoft Online Support
| >
| >Get Secure! www.microsoft.com/security
| >(This posting is provided "AS IS", with no warranties, and confers no
| >rights.)
| >
| >
| >
| >
| >--------------------
| >| NNTP-Posting-Date: Fri, 21 Oct 2005 14:22:25 -0500
| >| From: Russ <ru****@eticomm .net>
| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| Subject: Re: Permission Errors
| >| Date: Fri, 21 Oct 2005 15:22:06 -0400
| >| Message-ID: <nc************ *************** *****@4ax.com>
| >| References: <th************ *************** *****@4ax.com>
| ><yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
| ><d4*********** *************** ******@4ax.com>
| ><4u*********** ***@TK2MSFTNGXA 01.phx.gbl>
| >| X-Newsreader: Forte Agent 3.0/32.763
| >| MIME-Version: 1.0
| >| Content-Type: text/plain; charset=us-ascii
| >| Content-Transfer-Encoding: 7bit
| >| Lines: 253
| >| NNTP-Posting-Host: 68.37.155.53
| >| X-Trace:
|
sv3-nXJenZUWWBgFZCR 9vAHhVQLHt3Ar8s odPe/9DYkFMD06e5++XO LGolXHkMgGuBK9U wTQG3M J
|uOW6yvi!Oh4nJ9 x+wxOR0neSTmsAJ J2RUlucT5voq4zj yjd5/cH6Ik6BJ4XkBaGp D25dXcsAPmo o
| >ArLXAoie!/vUojs8u
| >| X-Complaints-To: ab***@comcast.n et
| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >complaint properly
| >| X-Postfilter: 1.3.32
| >| Path:
|TK2MSFTNGXA01. phx.gbl!TK2MSFT NGP08.phx.gbl!n ewsfeed00.sul.t-online.de!t-onl i
|ne.de!border2. nntp.dca.gigane ws.com!border1. nntp.dca.gigane ws.com!nntp.gig a n
|ews.com!local0 1.nntp.dca.giga news.com!nntp.c omcast.com!news .comcast.com.PO S T
| >ED!not-for-mail
| >| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:52567
| >| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| >|
| >| Steven, I have now a different program that is keeping me from even
| >| getting back to the issue we were discussing. I installed the new
| >| Windows 2003 server but suddenly I cannot get the web service to work,
| >| either on the new server or even on the XP workstation. As far as I
| >| know I did not change anything on the workstation, but maybe something
| >| happened by accident. Anyway whenever I try to run the service I get
| >| the following error screen, which is rather cryptic as I cannot figure
| >| out what to do.
| >|
| >| My first question is: what is "PayrollEntrySe rvice.Global"? Is it a
| >| file, a class, or what. How do I find it and what do I do to make
| >| sure it is loadable?
| >|
| >| Thanks, Russ
| >|
| >|
| >| Server Error in '/PayrollEntrySer vice' Application.
| >|
|--------------------------------------------------------------------------- -
| >----
| >|
| >| Parser Error
| >| Description: An error occurred during the parsing of a resource
| >| required to service this request. Please review the following specific
| >| parse error details and modify your source file appropriately.
| >|
| >| Parser Error Message: Could not load type
| >| 'PayrollEntrySe rvice.Global'.
| >|
| >| Source Error:
| >|
| >|
| >| Line 1: <%@ Application Codebehind="Glo bal.asax.h"
| >| Inherits="Payro llEntryService. Global" %>
| >|
| >|
| >|
| >| Source File: C:\PssDev\Payro llEntryService\ global.asax Line: 1
| >|
| >|
| >|
|---------------------------------------------------------------------------

-
| >----
| >| Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
| >| ASP.NET Version:1.1.432 2.2032
| >|
| >| On Wed, 19 Oct 2005 03:20:46 GMT, st*****@online. microsoft.com (Steven
| >| Cheng[MSFT]) wrote:
| >|
| >| >Hi Russ,
| >| >
| >| >Thanks for your response.
| >| >As you mentioned that you've use the following configuration in
| >web.config
| >| > <identity impersonate="tr ue" userName="xps.P rsNj.local\Russ "
| >| >password="xx x" />
| >| >
| >| >that means the webservice will running under the impersonate
idenitity.
| >| >Also, the "xps.PrsNj.loca l\Russ" is a local account on the XP
machine,
| >yes?
| >| > If so, it is not remotable to other remote machines. Are the xp
client
| >| >machine and win2k box in a domain
| >| >environment? If so , you can try configured the webservice to running
| >under
| >| >a domain account so that it can be validated on the win2k server
| >machine.
| >| >
| >| >In addition, is there SQLserver on the win2k box? If so, you can try
let
| >| >the webservice make connection to sqlserver so that you can watch
which
| >| >cilent account is logon at the server (through the SQLserver
profiler).
| >If
| >| >no sqlserver available, you can try turning on the NTFS security
audit
| >on
| >| >that shared folder at the 2k server machine. Thus , we can watch
audit
| >log
| >| >to check the client account also.
| >| >
| >| >Thanks,
| >| >
| >| >Steven Cheng
| >| >Microsoft Online Support
| >| >
| >| >Get Secure! www.microsoft.com/security
| >| >(This posting is provided "AS IS", with no warranties, and confers no
| >| >rights.)
| >| >
| >| >
| >| >
| >| >--------------------
| >| >| NNTP-Posting-Date: Mon, 17 Oct 2005 08:42:39 -0500
| >| >| From: Russ <ru****@eticomm .net>
| >| >| Newsgroups: microsoft.publi c.dotnet.genera l
| >| >| Subject: Re: Permission Errors
| >| >| Date: Mon, 17 Oct 2005 09:42:38 -0400
| >| >| Message-ID: <d4************ *************** *****@4ax.com>
| >| >| References: <th************ *************** *****@4ax.com>
| >| ><yI*********** ***@TK2MSFTNGXA 01.phx.gbl>
| >| >| X-Newsreader: Forte Agent 3.0/32.763
| >| >| MIME-Version: 1.0
| >| >| Content-Type: text/plain; charset=us-ascii
| >| >| Content-Transfer-Encoding: 7bit
| >| >| Lines: 126
| >| >| NNTP-Posting-Host: 68.37.155.53
| >| >| X-Trace:
| >|
|
sv3-gDWyCGpEupEX0j1 fSbjlcEQCmafJ9o 78ImvcZFRYgzuTJ rUVBXNwSDFvEjXU 0WYIV5S0Sj 4
| >x
| >|
|XAEYD4F!+gD1O 9UCRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J26 I
| >P
| >| >8Kdp9Ub8!SFDYp nTo
| >| >| X-Complaints-To: ab***@comcast.n et
| >| >| X-DMCA-Complaints-To: dm**@comcast.ne t
| >| >| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL
headers
| >| >| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
| >| >complaint properly
| >| >| X-Postfilter: 1.3.32
| >| >| Path:
| >|
|TK2MSFTNGXA01 .phx.gbl!TK2MSF TFEED02.phx.gbl !tornado.fastwe bnet.it!tiscali ! n
| >e
| >|
|wsfeed1.ip.ti scali.net!proxa d.net!216.239.3 6.134.MISMATCH! postnews.google . c
| >o
| >|
|m!news4.googl e.com!border1.n ntp.dca.giganew s.com!nntp.giga news.com!local0 1

Nov 22 '05 #10

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

Similar topics

4
6205
by: Alex Kouzemtchenko | last post by:
ok, I've got a peice of code that deletes folders, wether empty or non-empty and I keep getting these errors: Warning: rmdir(./modules/test/Copy of test/Random Folder) : Permission denied in c:\webdesign\fms\modules\functions.php on line 44 Warning: rmdir(./modules/test/Copy of test) : Directory not empty in c:\webdesign\fms\modules\functions.php on line 52
3
2304
by: Julie Barnet | last post by:
Could someone please tell me how I can trap permission errors in vb.net on a stored procedure: ie. Execute permission denied on object 'sel_mytable', database 'mydatabase', owner 'dbo' I would like to print a message like response.write("You don't have permission to select on this table") as opposed to the cryptic message I am receiving. Thanks in advance
2
2245
by: PM Creyghton | last post by:
I got this error without using frames: First of all, I'm developing an ASP application, and once in a while my activeX components crash or hang, I got page-not-found errors, errors generated by my COM object... Its all in the game of development :).. BUT when some crash occure, and I then try to restart my IIS service or restart my component service, javascript is generating the 'Permission denied error'.
4
4552
by: jtfaulk | last post by:
I've created an application that I need to launch from a web browser. So I tried these steps: 1. on the install I modified the PATH environmental variable to include the path on the application directory. 2. on the web pages uses java script to call ShellExecute to call the application. This actually does launch the application; however there seems to be a permission error. Because if I simply launch the application normally
12
2554
by: Russ | last post by:
Hello. My new dev machine is running XP Pro. In the past all equipment has only used Windows 2000. I have had a lot of problems getting my projects up and running on the new machine. The current one is a permission error. The project is a VC++ Web Service. It works fine when the service is hosted on the old W2K dev machine, but on the new XP machine I get a permission error when the service tries to open a text file on the Windows...
1
2005
by: CSN | last post by:
I upgraded to 7.4 a few days ago and am getting these errors when importing dumps: "permission denied to set session authority" and "permission denied for schema public". Not all of the dump is imported successfully. Are these errors due to new features in 7.4? Do I need to add more permissions for users? __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now
3
2762
by: Chua Wen Ching | last post by:
Hi there, I had applied this security permissions in my class library based on fxcop standards. Before namespace: using System.Runtime.InteropServices; using System.Security.Permissions;
1
2083
by: Nathan | last post by:
We are encountering strange errors using IE 6 with a specified automatic configuration script and an internal ASP.NET application. The application performs very oddly throwing JavaScript errors all over the place. The JS errors are all in the built in .NET JavaScripts: wwwroot\aspnet_client\system_web\1_0_3705_288\WebUIValidation.js and wwwroot\aspnet_client\system_web\1_0_3705_288\SmartNav.js most of them are "Permission denied"...
0
3207
by: debug03 | last post by:
I am executing a DTS package on a Windows 2000 sp4 server running SQL Server 2000 and IBM DB2 V7 client. The DTS package source data(SQL Server) is selected from SQL server table and inserts data to the destination table(DB2). I get the following error when the package is executed: The execution of the following DTS Package succeeded: Package Name: PEX2-CopyQualDatatoDB2-UAT Package Description: (null) Package ID:...
0
9666
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2909
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.