Hi Russ,
Really glad that you've got things working again. Some further comments
below:
As for the "\TempConve rt3" 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:
"\XXXsubpathnam e"
If the physical path of the virtual dir is not under wwwroot, it'll need to
be specified as full path like;
"d:\webfolder\m yapp"
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 <ru****@eticomm .net>
| Newsgroups: microsoft.publi c.dotnet.genera l
| Subject: Re: Permission Errors
| Date: Tue, 25 Oct 2005 17:34:07 -0400
| Message-ID: <57************ *************** *****@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>
<pu************ *************** *****@4ax.com>
<zU************ **@TK2MSFTNGXA0 1.phx.gbl>
<nc************ *************** *****@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: 415
| NNTP-Posting-Host: 68.37.155.53
| X-Trace:
sv3-LqLh1Gv0FhKollb ANUwXP+jOcniU/lYmpor8sgSono4g ZiurKYb7YfWana1 LnJVv+5Kgruh7
/E5qL8l!EIEIdaRQ 2sat71zPr5A50eQ FF00y2MFhVwR8mL Wu4/b+D0kp/PlSyu3zI5rcBnci 2+zt
pSD7sMlL!Z0iYV6 KU
| 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:52823
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| 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\Payr ollEntryService ". I then deleted
| PayrollEntrySer vice 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 "\PayrollEntryS ervice". 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
|
| On Tue, 25 Oct 2005 14:27:04 -0400, Russ <ru****@eticomm .net> wrote:
|
| >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
| >> 'PayrollEntrySe rvice.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 <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********** ****@TK2MSFTNGX A01.phx.gbl>
| >><d4********** *************** *******@4ax.com >
| >><4u********** ****@TK2MSFTNGX A01.phx.gbl>
| >><nc********** *************** *******@4ax.com >
| >><xt********** ****@TK2MSFTNGX A01.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 LJNh3hCvTz
mI
|e3Bucmc!CRFb1 C/9kkVDy0wpDnOrXP LBGWeNLui/9utwvtcS9YNztk6 3oX2WPMPyWnCufQ JZB7
kt
| >>G589JJzw!ujIE jHcT
| >>| 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 TNGP08.phx.gbl! newsfeed00.sul. t-online.de!t-on
li
|ne.de!border2 .nntp.dca.gigan ews.com!border1 .nntp.dca.gigan ews.com!nntp.gi g
an
|ews.com!local 01.nntp.dca.gig anews.com!nntp. comcast.com!new s.comcast.com.P O
ST
| >>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
| >>automatical ly
| >>| >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 wTQG
3M
| >>J
| >>|
|uOW6yvi!Oh4n J9x+wxOR0neSTms AJJ2RUlucT5voq4 zjyjd5/cH6Ik6BJ4XkBaGp D25dXcsAP
mo
| >>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:
| >>|
|TK2MSFTNGXA0 1.phx.gbl!TK2MS FTNGP08.phx.gbl !newsfeed00.sul .t-online.de!t-o
nl
| >>i
| >>|
|ne.de!border 2.nntp.dca.giga news.com!border 1.nntp.dca.giga news.com!nntp.g i
ga
| >>n
| >>|
|ews.com!loca l01.nntp.dca.gi ganews.com!nntp .comcast.com!ne ws.comcast.com. P
OS
| >>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 0WYIV5S0
Sj
| >>4
| >>| >x
| >>| >|
| >>|
|XAEYD4F!+gD 1O9UCRQPn/fWaZqe5gZu0a+kJ Qob50YgYeH4Vz0b 8yN5CDADz5iCAiA yr6i+J
26
| >>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:
| >>| >|
| >>|
|TK2MSFTNGXA 01.phx.gbl!TK2M SFTFEED02.phx.g bl!tornado.fast webnet.it!tisca l
i!
| >>n
| >>| >e
| >>| >|
| >>|
|wsfeed1.ip. tiscali.net!pro xad.net!216.239 .36.134.MISMATC H!postnews.goog l
e.
| >>c
| >>| >o
| >>| >|
| >>|
|m!news4.goo gle.com!border1 .nntp.dca.gigan ews.com!nntp.gi ganews.com!loca l
01
|