Database Reference
In-Depth Information
catch (Exception ex)
{
this.Error = new AddonDataHandlerException(ex.Message);
}
asyncCallback(this);
_completeStatus = true;
}
}
}
The code in Listing 4-6 is explained toward the end of this chapter in the section
“Understanding the Custom Data provider code.”
Note
now build the project. Once the build is successful, right-click on the
VisioDataService project, then click on 'Publish...'. Choose target location and
publish the wSP file.
If you are performing this step on your local development machine, try the Deploy
option from the project properties.
Tip
Deploy the wSP using either STSADM or windows PowerShell commands to add the
solution to your SharePoint site.
Open Central Administration ➤ Application Management ➤ Manage Service
Applications ➤ Visio graphics Service.
Click on Trusted Data Providers and then on Add a new Trusted Data Provider.
Under Trusted Data Provider ID, enter the fully qualified assembly signature (in my
case, it is Altsis.VisioDataService,VisioDataService, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=<publickeytoken> ). Please see
http://blah.winsmarts.com/2009-12-SharePoint_Productivity_
Tip_of_the_day.aspx for a convenient way to extract assembly signatures.
Under Trusted Data Provider Type, enter the value 6 (for Visio Custom Data
Providers).
Under Trusted Data Provider Description, enter a valid description such as Visio
Custom Data Services Provider and click OK.
Your service provider is now ready and will display in the available service
provider list.
Open the web.config file that belongs to your SharePoint web application and paste
the code in Listing 4-7 under the system.serviceModel section.
 
 
Search WWH ::




Custom Search