Groups | Blog | Home
all groups > dotnet web services enhancements > january 2005 >

dotnet web services enhancements : WSE Policy under 2003


Joly1
1/11/2005 9:10:45 AM
Hi,

I have a doctored VBS/ASP classic apllication whcih consumes a WSE
proxy expossed through COM, correctly marshalled for interoperability.
It uses inetinfo.exe.config in order for the IIS 5.0 to pull the WSE
config information. This works correctly.

In order test this a .Net WinForms test harness was created to fire the
WSE proxy and on Windows 2000 this works no problems. When I move the
code onto Windows 2003 I get the following error:

WSE453: An error was encountered loading or parsing the policy document
in the following file.

I've watch the file and the contents of the file are deleted. If I
open the within IE it parses no problem.
Any help, as ever, received with thanks

Jol
Dilip Krishnan
1/11/2005 3:39:50 PM
Hello Joly1,
From another post - "May sound bizzare but try this... Copy the file contents
to clipboard
and paste it in the policy file in the server and save it and see if it works.


I've found when you copy a config file sometimes it introduces control characters
in the policy files."



HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

[quoted text, click to view]

Joly1
1/12/2005 3:36:36 AM
Hi Dilip,

Thanks for the post. My colleague Patrick made that post, sorry I
should have said. Yes I tried that with no avail. I put the policy
document through a reliable text editor and checked the control
characters and the encoding (UTF-8) and everything is fine but policy
still gets deleted.

I'm now trying some code changes. There is not thing within the code
directly touches the policy document but I'm starting to pull my hair
out. I'm convinced that it is being cause by a config within the .Net
framework but I'm at a loss.

Many Thanks
Jolyon
Joly1
1/12/2005 4:57:11 AM
I found the error. User error, wetware . . . Faulty developer. Anyway
I had set the url of the webservice to address of the Policy file by
mistake. Cu*t'n'paste error I think there know as.

Thanks for the help
AddThis Social Bookmark Button