System.Runtime.InteropServices.COM Exception (0x81070E35): O método não é permitido nesta pasta. (method not permited in this folder)
I have this error on my logs the code is prety simple. Any ideas? I havent found ref to the COM EXP anywhere (0x81070E35) foreach (SPFile file in folder.Files) { string strNewFileUrl = string.Format("{0}/{1}", strTempFolderUrl, file.Name); Debug(logger, "strNewFileUrl: " + strNewFileUrl); file.CopyTo(strNewFileUrl); } MOSS SP2 in Portuguese, the SP message is: "Method not permited in this folder". both File Urls in logs are ok, it seems the error is on the last one, both are less than 255 chars. strNewFileUrl: http://xxxxxxx.xxxx.xxx.xxx/xxx/xxxxxxxxx xxx/xxxxxx xxxxxxxxx/xxxxxxx/xxxxxxxx xxx/xxxxxxxxxxxxxxxxxxxxxxx/xxxx/temp/xx_xxxxx.html strNewFileUrl: http://xxxxxxx.xxxx.xxx.xxx/xxx/xxxxxxxxx xxx/xxxxxx xxxxxxxxx/xxxxxxx/xxxxxxxx xxx/xxxxxxxxxxxxxxxxxxxxxxx/xxxx/temp/xxx.pdf ERROR Exception: Microsoft.SharePoint.SPException: O método não é permitido nesta pasta. ---> System.Runtime.InteropServices.COMException (0x81070E35): O método não é permitido nesta pasta. at Microsoft.SharePoint.Library.SPRequestInternalClass.MoveUrl(String bstrUrl, String bstrWebRelOldUrl, String bstrWebRelNewUrl, Int32 grf) at Microsoft.SharePoint.Library.SPRequest.MoveUrl(String bstrUrl, String bstrWebRelOldUrl, String bstrWebRelNewUrl, Int32 grf) --- End of inner exception stack trace --- at Microsoft.SharePoint.Library.SPRequest.MoveUrl(String bstrUrl, String bstrWebRelOldUrl, String bstrWebRelNewUrl, Int32 grf) at Microsoft.SharePoint.SPFolder.MoveCopyInternal(String strNewUrl, Boolean bIsCopy) at Microsoft.SharePoint.SPFolder.MoveTo(String strNewUrl) at MyMethod() http://pontodepartilha.blogspot.com
April 7th, 2010 8:20pm

It seems that this error should be fixed in SP2. http://support.microsoft.com/kb/827930 Can you verify the version of your MOSS? It should be 12.0.0.6421. Cogito, ergo sum.
Free Windows Admin Tool Kit Click here and download it now
April 13th, 2010 6:06am

Thanks alot for your time. We have installed March CU after SP2 so our version is: Version: 12.0.0.6529 http://pontodepartilha.blogspot.com
April 13th, 2010 11:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics