Message 1 of 5
generatefilenumber .NET
Not applicable
06-04-2013
01:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I Will make a command that get the next file number of a scheme, I have the following code:
private void bt_Click(object sender, EventArgs e)
{
login = new UserPasswordCredentials(
"****", "****", "****", "****",
true // log in as read-only, which doesn't consume a license
);
using (WebServiceManager serviceManager = new WebServiceManager(login))
{
try
{
string nombre = serviceManager.DocumentService.GenerateFileNumber(2, null);
LB.Text = nombre;
}
catch (System.Exception ex)
{
MessageBox.Show(ex.ToString(), "Error");
return;
}
}But When I run the program it throws the 303 Exception...Permission Invalid
With this credentials I can acces to Vault Workgroup without problem
I attached a file with the scheme. My scheme contains 2 Predefined List fields and a sequential number. I dont know if my params are the correct for the GenerateFileNumber method, the first is the Scheme ID but the second is the string[] fields, I dont know if I must put the text of a predefined list for example "Z1" or only an index "1"....
I use Vault workgroup, and Visual studio 2010
Thank you very much.
