You are viewing limited content. For full access, please sign in.

Question

Question

Invalid Request when moving document to folder containing a period

asked on March 18, 2015 Show version history

I'm having this issue using both the 32 and 64 bit RepositoryAccess 9.0.0.0 libraries. This has been running fine for over a year, until just this last week. I believe it started after we applied updates to our Windows Server 2008 R2 server.

I'm running the following code snippet

static void Main(string[] args)
{
	Session session = new Session();
	session.LogIn(new RepositoryRegistration("server", "repository"));

	DocumentInfo doc = Document.GetDocumentInfo(177876, session);

	FolderInfo folder = Folder.GetFolderInfo(177885, session);

	doc.MoveTo(folder, "Successful Test", EntryNameOption.AutoRename);
}

If the destination folder is named, e.g. "Destination Folder", this will work fine. However, if it's named "1.Destination Folder", I get an "Invalid Request" exception.

Does anyone have any ideas as to why this is happening, or steps I could take to fix it? Thank you.

Edit

Upon further testing, it looks like it's the period that's causing the issue. I can rename our folders to work around this, but I'm still scratching my head as to why the issue popped up out of nowhere.

0 0

Answer

SELECTED ANSWER
replied on March 18, 2015

This is due to changes in the .NET URI handling (see this post). We are working on a fix for Repository Access. Try changing your project to .NET 4.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.