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 / April 2005

Tip: Looking for answers? Try searching our database.

Configuring WSE2 in App.Config

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luc - 18 Apr 2005 15:11 GMT
Hi, I'm trying to allow my windows application to send Dime Attachments
larger than 4MB  accross a network to another program using SOAP.  To do this
I added the following code to an App.Config file:

<?xml version="1.0" encoding="utf-8" ?>

<configuration>
<microsoft.web.services2>
<messaging>
<maxRequestLength>NewLength</maxRequestLength>
</messaging>
</microsoft.web.services2>
</configuration>

The application sends and receives data, so I also have a SoapReceiver in
the same project.  Anytime I try and initialize my Receiver class (MyReceiver
= New clsReceiver) I get the following error: There was an error loading the
microsoft.web.services2 configuration section.

Does anyone know what the problem might be?
Keenan Newton - 18 Apr 2005 20:00 GMT
Are you missing the Configuration Section declaration  it will look
sometrhing like this

<?xml version="1.0" encoding="utf-8" ?>

<configuration>
  <configSection>
       <section
             name="microsoft.web.services2"

type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration,
Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
   </configSection>

//Rest of you config file here

*****************************

Its actually pretty wel documented in the help file.  Look under the
Cnfiguration Schema heading
Luc - 21 Apr 2005 14:43 GMT
Hi Keenan, thanks for the reply.  I did as you suggested and I went a got
some information on the MSDN site, however I still get the same error.  It
occurs anytime I try and use either a SoapSender or SoapReceiver.  Once agai
the error I get is "There was an error loading the microsoft.web.services2
configuration section".  Any other ideas of what it might be?

> Are you missing the Configuration Section declaration  it will look
> sometrhing like this
[quoted text clipped - 17 lines]
> Its actually pretty wel documented in the help file.  Look under the
> Cnfiguration Schema heading
Luc - 21 Apr 2005 15:31 GMT
Well I kept playing with it and it finally works, turns out I forgot an "s"
at the end of diagnostics.  However I thought I had tried taking out the
diagnostics tags before so who knows what was going on.  Other things that I
did was install SP3 and I put the section tag in the configSections part all
on one line.  Hopefully this was of help to a few of you.

> Hi Keenan, thanks for the reply.  I did as you suggested and I went a got
> some information on the MSDN site, however I still get the same error.  It
[quoted text clipped - 23 lines]
> > Its actually pretty wel documented in the help file.  Look under the
> > Cnfiguration Schema heading

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.