[sldev] problem with login to opensim

Cai Xiao(dynaturtle) dynaturtle.cai at gmail.com
Wed May 13 01:36:03 PDT 2009


Hey, guys,     I am new to second life and I am trying to develop a robot
using open metaverse. But I was confused with upload function. My program
sometimes breaks with a exception as following:
    System.Exception was unhandled  Message="NewFileAgentInventory
capability is not currently available"
  Source="OpenMetaverse"
  StackTrace:
       at OpenMetaverse.InventoryManager.RequestCreateItemFromAsset(Byte[]
data, String name, String description, AssetType assetType, InventoryType
invType, UUID folderID, ProgressCallback progCallback,
ItemCreatedFromAssetCallback callback)
       at OpenMetaverseStudy.PrimCreation.DoUpload(Byte[] UploadData, String
fileName) in F:\graduate
essay\3dpku\trunk\OpenMetaverseStudy\OpenMetaverseStudy\PrimCreation.cs:line
98
       at OpenMetaverseStudy.PrimCreation..ctor(OverlayStruct[]
overlayArray) in F:\graduate
essay\3dpku\trunk\OpenMetaverseStudy\OpenMetaverseStudy\PrimCreation.cs:line
276
       at OpenMetaverseStudy.Program.PrimAddFromDBDemo() in F:\graduate
essay\3dpku\trunk\OpenMetaverseStudy\OpenMetaverseStudy\Program.cs:line 123
       at OpenMetaverseStudy.Program.Main(String[] args) in F:\graduate
essay\3dpku\trunk\OpenMetaverseStudy\OpenMetaverseStudy\Program.cs:line 182
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

my code is as following:
       client.Inventory.RequestCreateItemFromAsset(UploadData, name,
"Uploaded with Testclient",
                    AssetType.Texture, InventoryType.Texture,
client.Inventory.FindFolderForType(AssetType.Texture),

                    delegate(CapsClient cclient, long bytesReceived, long
bytesSent, long totalBytesToReceive, long totalBytesToSend)
                    {
                        if (bytesSent > 0)
                            Console.WriteLine(String.Format("Texture upload:
{0} / {1}", bytesSent, totalBytesToSend));
                    },

                    delegate(bool success, string status, UUID itemID, UUID
assetID)
                    {
                        Console.WriteLine(String.Format(
                            "RequestCreateItemFromAsset() returned:
Success={0}, Status={1}, ItemID={2}, AssetID={3}",
                            success, status, itemID, assetID));

                        UUIDTable.Add(name, assetID);
                        TextureID = assetID;
                        Console.WriteLine(String.Format("Upload took {0}",
DateTime.Now.Subtract(start)));
                        uploadCompleteEvents[completedUploadTexture].Set();
                        completedUploadTexture ++;
                    }
                );

can anyone help me fix the problem?
Thanks a lot.

-- 
Department of Spatial Information Science&Technology,
School of Earth&Space Science, Peking University

ADD: Room 3028, Building 46, Peking University, Beijing, P.R. China
Zip Code: 100871
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20090513/aa8ef2d1/attachment-0001.htm 


More information about the SLDev mailing list