Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2007

Tip: Looking for answers? Try searching our database.

WSE 3.0 declarative security problem.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iidelchik@yahoo.com - 08 Aug 2006 00:41 GMT
Hi all,

I've a really stupid problem. I've declared policy for my WS proxy in a
policy file, referenced from app.config and added an attribute to my
proxy class [Policy("MyPolicy")]. Everything looks to be pretty
straight forward. But on a stage of proxy object creation I'm getting
problem:
"WSE2000: PolicyAttribute cannot resolve policy name 'ClientPolicy' to
a policy instance. This may indicate that the policy file does not
specify a policy with such name."

I've checked everything, naming is ok. Proxy is auto generated by
WseWsdl3.

Any ideas would be highly appreciated.

Elijah
iidelchik@yahoo.com - 08 Aug 2006 00:57 GMT
Just realised, it can be misleading. Of cause I use 'ClientPolicy'  in
Policy attribute instead of "MyPolicy", mentioned above.
Jerry - 31 Oct 2007 17:34 GMT
> Hi all,
>
[quoted text clipped - 13 lines]
>
> Elijah

I have this exact same problem.
It only manifests itself on Windows Server 2003 (using SP2). It works on Windows XP and Vista.
It also only manifests itself in the Debug build. The release build works fine (even on Server 2003).

What could be different between the Release and Debug builds? I've searched for #if(DEBUB) statements throughout my code and there is nothing related to WSE that should have any effect. Also, I've compared the App.config and wse3policyCache.config files between Release and Debug and they are exactly the same.

Has anyone else experienced this issue?

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.