Hi Russ,
Really glad that you've got things working again. Some further comments
below:
As for the "\TempConvert3" path in IIS manager, it indicate the physical
path of the virtual directory. For those virtual directories whose path is
just under the default inetpub\wwwroot, the path is like:
"\XXXsubpathname"
If the physical path of the virtual dir is not under wwwroot, it'll need to
be specified as full path like;
"d:\webfolder\myapp"
So when we move a webproject to a new server (creating the new virtual
directory for it on the new server), we need to make sure the path is also
updated to the new physical location on the new server.
Anyway thanks again for your posting. Always welcome when you meet any
problem.
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: Tue, 25 Oct 2005 16:33:53 -0500
| From: Russ <
[email protected]>
| Newsgroups: microsoft.public.dotnet.general
| Subject: Re: Permission Errors
| Date: Tue, 25 Oct 2005 17:34:07 -0400
| Message-ID: <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
<zUPL#
[email protected]>
<
[email protected]>
| X-Newsreader: Forte Agent 3.0/32.763
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 415
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-LqLh1Gv0FhKollbANUwXP+jOcniU/lYmpor8sgSono4gZiurKYb7YfWana1LnJVv+5Kgruh7
/E5qL8l!EIEIdaRQ2sat71zPr5A50eQFF00y2MFhVwR8mLWu4/b+D0kp/PlSyu3zI5rcBnci2+zt
pSD7sMlL!Z0iYV6KU
| X-Complaints-To: (e-mail address removed)
| X-DMCA-Complaints-To: (e-mail address removed)
| 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!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.gigan
ews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POST
ED!not-for-mail
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:52823
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Ok, I built the TempConvert3 sample web service on the XP work
| station. It works fine.
|
| I then compared the files with the same files of my web service that
| does not work. I could not find anything that looks suspicious. Of
| course I have added a lot of code and additional files in my web
| service. I especially looked at global.asax.h and found no
| differences except in the name of the namespace.
|
| ... well I have it all working now! After I wrote the above, I looked
| at IIS manager and noticed a difference in the local path. For the
| TempConvert3 web it showed the path as "\TempConvert3", but for my
| service the path was "C:\PssDev\PayrollEntryService". I then deleted
| PayrollEntryService from IIS, and then cleaned/built the project in
| Visual Studio again. When it deployed, I looked in IIS again and the
| path was now "\PayrollEntryService". And my web service now works on
| the XP machine - hooray!
|
| Next I looked at the 2003 server and saw that the local path was
| similarly wrong. I deleted it from IIS and then rebuilt the service
| setup project, and then deployed it on the server. The local path was
| now right and the service runs on the server now.
|
| Finally I tested the original problem - the problem that the service
| could not open files on the server when the service was running on the
| XP work station. All seems ok now as long as I impersonate a user on
| the XP workstation when running on that machine, and impersonate a
| user on the server when running on that machine.
|
| I sure don't know how things got so screwed up, but I surely
| appreciate all the time you have taken to help me Steven. I think I
| can finally get back to working on the project again now.
|
| Thanks again, Russ
|
|
| >Steven, responses interspersed:
| >
| >>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?
| >
| >The web service was my first ASP.NET project. When I started the
| >project, visual studio automatically selected my work station as the
| >place where the project files would reside. I could build and host
| >the web service on the W2K work station with no problem. But once the
| >project was built and debugged I had to deploy it to the W2K server
| >for further testing with the ASP.NET client. So I built a deployment
| >project and that worked fine.
| >
| >The problem now is that the web service will not run, whether it is
| >hosted on the XP work station, or on the new 2003 server. I always
| >get the error message:
| >
| >> Parser Error Message: Could not load type
| >> 'PayrollEntryService.Global'.
| >
| >Am I correct in assuming that this problem has nothing to do with the
| >server, when I am trying to run or debug it on the work station?
| >
| >Also, keep in mind that it was working on the work station at one
| >time. Then I removed the W2K server from service and set up the new
| >2003 server. I don't see any reason why that should have caused the
| >web service to stop working on the work station.
| >
| >
| >>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,.....
| >
| >This is not a problem for the usage that I need. And anyway the web
| >service was working fine on the W2K domain server.
| >
| >
| >> 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.
| >
| >Ok, I understand. I will actually do that on the work station first.
| >
| >I will do it today and let you know what I find out.
| >
| >Thanks, Russ
| >
| >>
| >>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 <
[email protected]>
| >>| Newsgroups: microsoft.public.dotnet.general
| >>| Subject: Re: Permission Errors
| >>| Date: Mon, 24 Oct 2005 13:59:18 -0400
| >>| Message-ID: <
[email protected]>
| >>| References: <
[email protected]>
| >><
[email protected]>
| >><
[email protected]>
| >><
[email protected]>
| >><
[email protected]>
| >><
[email protected]>
| >>| 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:
|
kt
| >>G589JJzw!ujIEjHcT
| >>| X-Complaints-To: (e-mail address removed)
| >>| X-DMCA-Complaints-To: (e-mail address removed)
| >>| 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:
|
ST
| >>ED!not-for-mail
| >>| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:52690
| >>| X-Tomcat-NG: microsoft.public.dotnet.general
| >>|
| >>| 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, (e-mail address removed) (Steven
| >>| Cheng[MSFT]) wrote:
| >>|
| >>| >Hi Russ,
| >>| >
| >>| >As for the new problem you mentioned, it is likely caused by some
| >>| >deployment setting.
| >>| >The "XXXX.Global " 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(webservice) can not find the certain class (assembly) it
| >>| >requires.(generally global class is the first class which need to be
| >>loaded
| >>| >into runtime...).
| >>| >
| >>| >So on your new 2003 server, go to your
webservice(PayrollEntryService)'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\username......) so that the ASP.NET
| >>process
| >>| >identity can successfully access them.
| >>| >
| >>| >Also, above all , you need to makesure a normal asp.net
| >>| >application(webservice) 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 <
[email protected]>
| >>| >| Newsgroups: microsoft.public.dotnet.general
| >>| >| Subject: Re: Permission Errors
| >>| >| Date: Fri, 21 Oct 2005 15:22:06 -0400
| >>| >| Message-ID: <
[email protected]>
| >>| >| References: <
[email protected]>
| >>| ><
[email protected]>
| >>| ><
[email protected]>
| >>| ><
[email protected]>
| >>| >| 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:
| >>|
|3M
| >>J
| >>|
|mo
| >>o
| >>| >ArLXAoie!/vUojs8u
| >>| >| X-Complaints-To: (e-mail address removed)
| >>| >| X-DMCA-Complaints-To: (e-mail address removed)
| >>| >| 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:
| >>|
|nl
| >>i
| >>|
|ga
| >>n
| >>|
|OS
| >>T
| >>| >ED!not-for-mail
| >>| >| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:52567
| >>| >| X-Tomcat-NG: microsoft.public.dotnet.general
| >>| >|
| >>| >| 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 "PayrollEntryService.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 '/PayrollEntryService' 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
| >>| >| 'PayrollEntryService.Global'.
| >>| >|
| >>| >| Source Error:
| >>| >|
| >>| >|
| >>| >| Line 1: <%@ Application Codebehind="Global.asax.h"
| >>| >| Inherits="PayrollEntryService.Global" %>
| >>| >|
| >>| >|
| >>| >|
| >>| >| Source File: C:\PssDev\PayrollEntryService\global.asax Line: 1
| >>| >|
| >>| >|
| >>| >|
| >>|
|--
| >>-
| >>| >----
| >>| >| Version Information: Microsoft .NET Framework
Version:1.1.4322.2032;
| >>| >| ASP.NET Version:1.1.4322.2032
| >>| >|
| >>| >| On Wed, 19 Oct 2005 03:20:46 GMT, (e-mail address removed)
(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="true" userName="xps.PrsNj.local\Russ"
| >>| >| >password="xxx" />
| >>| >| >
| >>| >| >that means the webservice will running under the impersonate
| >>idenitity.
| >>| >| >Also, the "xps.PrsNj.local\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 <
[email protected]>
| >>| >| >| Newsgroups: microsoft.public.dotnet.general
| >>| >| >| Subject: Re: Permission Errors
| >>| >| >| Date: Mon, 17 Oct 2005 09:42:38 -0400
| >>| >| >| Message-ID: <
[email protected]>
| >>| >| >| References: <
[email protected]>
| >>| >| ><
[email protected]>
| >>| >| >| 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:
| >>| >|
| >>|
|Sj
| >>4
| >>| >x
| >>| >|
| >>|
|26
| >>I
| >>| >P
| >>| >| >8Kdp9Ub8!SFDYpnTo
| >>| >| >| X-Complaints-To: (e-mail address removed)
| >>| >| >| X-DMCA-Complaints-To: (e-mail address removed)
| >>| >| >| 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:
| >>| >|
| >>|
|i!
| >>n
| >>| >e
| >>| >|
| >>|
|e.
| >>c
| >>| >o
| >>| >|
| >>|
|01
|