Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Error with Web Service

Error with Web Service

Scheduled Pinned Locked Moved SharePoint
sharepointsysadmintestingbeta-testinghelp
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sifar 0
    wrote on last edited by
    #1

    Hi Friends, I have a very simple testing Web Application on my SharePoint server. The appliation utilizes a Web Service that resides on a different machine in LAN. I have updated wss_mediumtrust.config and wss_minimaltrust.config files. I have inserted below code in these files.

    <PermissionSet class="NamedPermissionSet" version="1" Name="MY_WEBSERVICE_NAME">
    <IPermission class="AspNetHostingPermission" version="1" Level="Medium"/>
    <IPermission class="SecurityPermission" version="1" Flags="Execution"/>
    <IPermission class="WebPartPermission" version="1" Connections="True"/>
    <IPermission class="WebPermission" version="1" Unrestricted="true">
    <ConnectAccess>
    <URI uri="http://IP_ADDRESS/VIRTUAL_DIR/Service.asmx"/>
    </ConnectAccess>
    </IPermission>
    <IPermission class="SharePointPermission" version="1" ObjectModel="True" UnsafeSaveOnGet="True"/>
    </PermissionSet>

    Now, the whole application is running fine. But the button is clicked that calls the web service an error message An unexpected error has occurred comes up. The Web Application is running fine with web service when executed directly from the Browser. Please advise..

    Regards, -SIFAR.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups