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 / November 2004

Tip: Looking for answers? Try searching our database.

Cant connect to webservice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roland Wolters - 25 Oct 2004 07:29 GMT
Hi,

My app uses a webservice to get data from the database. The webservice
itself is already placed on the production webserver, and connecting
with my develop machine over the internet it works fine. The webservice
uses wse2 very basic authentication by simply sending a username token
in this way:

    SlimDossier=new proxy.SlimDossierWse();
    SoapContext requestContext = SlimDossier.RequestSoapContext;
    UsernameToken userToken=new UsernameToken(UserName, Password,
PasswordOption.SendPlainText);                   
    requestContext.Security.Tokens.Add(userToken);

after that I call a simple method to trigger authentication check.

Again: this works fine on my develop machine.

On the production machine (Win2003 TerminalServer) however I get this
error: WSE032: There was an error loading the microsoft.web.services2
configuration section

This is the config section:

<configSections>
   <section name="microsoft.web.services2"
type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration,
Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
 </configSections>

Or maybe this section:

<microsoft.web.services2>
   <diagnostics />
</microsoft.web.services2>

The same WSE is installed (SP1) on this machine. I gave the app "full
trust".

What am I missing here?

Greetings,

Roland
Signature

---
Roland Wolters
http://www.habbiebabbie.net
***** Please react via UseNet only ********

Dan Rogers - 15 Nov 2004 23:50 GMT
Hi Roland,

How was the web service implementation copied over to the non-development
web server?  The easiest way to get it "all" over is to use the Publish
feature from the file menu when your web service solution is loaded.  This
will copy the config file, the aspx, the bin, and any dependent DLL's from
the project directory.  It is possible the config is in the wrong place,
has improper permissions, etc - but it's hard to tell.  There may also be
WSE 2.0 config information in the system level config files - so make sure
that WSE was installed in the same way, by an administrator, on both
machines.

I hope this helps,

Dan Rogers
Microsoft Corporation
--------------------
>Subject: Cant connect to webservice
>From: Roland Wolters <Roland@wolters-ict.nl>
>Organization: Wolters ICT
>Message-ID: <Xns958D5657D3168woltersictnl@207.46.248.16>
>User-Agent: Xnews/5.04.25
>X-Face:
&CQ$FIr!=+=w,8`0Q^Ug"1>F[(/op8->E;NQet`5fe$;=e*!Z5&REvp<~Tj|"Y[|8OcJ{w#z&mB7
B:I)XO*%_|\]|YW$C>>$Q[9-#K~c$tQ^Mf0,wMo?h\C)TE>f
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>Date: Sun, 24 Oct 2004 23:29:45 -0700
>NNTP-Posting-Host: 193.172.59.147
>Lines: 1        
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP15.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26223
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 43 lines]
>
>Roland

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.