Author Topic: Cant copy music to MTP memory card  (Read 58118 times)

Mirtma

  • Guest
Here is log from Windows 7 PC. Program is crashing when detecting MTP devices in this version also. When I disconnect Nokia and try to start program again, it also crashes.

28.1.2010 16:57:21 - 6.1.7600.0 - 1.1.3599.37038 - System.InvalidOperationException: There is an error in XML document (201, 43). ---> System.InvalidOperationException: Instance validation error: 'EditClickedColumn' is not a valid value for ApplicationCommand.
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderApplicationSettings.Read1_ApplicationCommand(String s)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderApplicationSettings.Read9_KeyCommandPair(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderApplicationSettings.Read23_ApplicationSettings(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderApplicationSettings.Read24_ApplicationSettings()
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
   at #=qYRO83Aa0_15wbk6I61GIhWDpri2WL$_TnYyWk08rXNk=.#=qzjnvFMUhUAtU5yjU4xibeg==(#=qUKatLCBFAO_qW1seKK55VaNksX8aLMNCAc_dz4gEZec= #=qp_1FG3vXR4ieVYrpCVJmKA==)
   at #=qYRO83Aa0_15wbk6I61GIhWDpri2WL$_TnYyWk08rXNk=.#=qmd6uI873yX0nizgINAjWZw==(#=qAoEfhE0ScbEzbXAa4GH_XnqPVfMU7o4$NzKdujDV5q0= #=qZImcRp8s_wXcgv792wjkHeAKO2i7W_2FaDDRo657GIE=)

28.1.2010 19:40:55 - 6.1.7600.0 - 1.2.3677.39164 - System.NullReferenceException: Object reference not set to an instance of an object.
   at #=q1RVEsr1C2n67RidD$jp_VhNYMJwkhwfn_yu4sRtXpjEUNf2ZXfd5D7drMCd0cpwq.#=qdI3lI3tamdRYAd3J8tZhug==(#=q_ZU7qYnNYo2yh1Sn7Iqs7T2mPlvnViLZT_lCgRJo8EzbbNNqUFVHVohwqxMxa2Wa #=qsicMEKI4Xeek9uW$EHs9Qw==)
   at #=qEL9bDktGbyAUNVXguE_vY2NY4kSBIkanXfDQf0t1l88=.#=qfl2okEly0DYx$TLA0e7j_g==(Boolean #=qQJePiEpddVS$Cjs1rLOxaj6a$E1bwwc0SkkQCynV9r4=)

28.1.2010 19:43:02 - 6.1.7600.0 - 1.2.3677.39164 - System.NullReferenceException: Object reference not set to an instance of an object.
   at #=q1RVEsr1C2n67RidD$jp_VhNYMJwkhwfn_yu4sRtXpjEUNf2ZXfd5D7drMCd0cpwq.#=qdI3lI3tamdRYAd3J8tZhug==(#=q_ZU7qYnNYo2yh1Sn7Iqs7T2mPlvnViLZT_lCgRJo8EzbbNNqUFVHVohwqxMxa2Wa #=qsicMEKI4Xeek9uW$EHs9Qw==)
   at #=qEL9bDktGbyAUNVXguE_vY2NY4kSBIkanXfDQf0t1l88=.#=qfl2okEly0DYx$TLA0e7j_g==(Boolean #=qQJePiEpddVS$Cjs1rLOxaj6a$E1bwwc0SkkQCynV9r4=)

29.1.2010 15:42:23 - Detect MTP devices
29.1.2010 15:43:38 - Detect MTP devices

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34351
on your windows 7 machine would you be able to search for the following 4 files - they should be in the same sub-folder of the windows folder.
Could you let me know the version number, the creation date and the modification date of each (i have indicated the version and date i am expecting). You can see this information when you highlight each file, it should show down the bottom of windows explorer

Portabledeviceapi.dll
version=6.1.7600.20525   11-Sep-2009

Portabledeviceclassextension.dll
version=6.1.7600.16385   14-Jul-2009

Portabledeviceconnectapi.dll
version=6.1.7600.16385   14-Jul-2009

Portabledevicetypes.dll
version=6.1.7600.16385   14-Jul-2009


Also which version of windows 7 (beta, RC, or final) and is it 32 or 64 bit?
Last Edit: January 29, 2010, 04:06:35 PM by Steven

Mirtma

  • Guest
Interesting. I have files in 4 subfulders:
file Portabledeviceapi.dll is in

System32\en-US: 14.7.2009 739 kb 6.1.7600.16385
winsxs\amd64_microsoft... , 14.7.2009 739 kb 6.1.7600.16385
SysWOW64\en-US,  14.7.2009 534 kb 6.1.7600.16385
winsx\x86_microsoft-windows-w.... 14.7.2009 534 kb  6.1.7600.16385

Since version number is the same, i will specify only files in System32\en-US folder

Portabledeviceclassextension.dll
version=6.1.7600.16385   14-Jul-2009

Portabledeviceconnectapi.dll
version=6.1.7600.16385   14-Jul-2009

Portabledevicetypes.dll
version=6.1.7600.16385   14-Jul-2009

As I can see my  Portabledeviceapi.dll is older then yours.
I have Windows 7 64  bit final (7600.16385) Home premium

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34351
actually the versions on my PC are older than yours (the versions i listed are the latest from microsoft). However i have an idea what might be happening in your case.
Could you unzip this to a new folder somewhere
If you already have your device plugged in, run test.exe and press button1 it will try and open the device - hopefully it wont crash!

http://www.mydatanest.com/files/stevenmmm/53545_g5u0m/Test.zip

Mirtma

  • Guest

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34351
fantastic - its working!

next could you overwrite the 2 files:
Portabledeviceapi.dll
Portabledevicetypes.dll

with the equivalent files from:
SysWOW64\en-US

and redo the test

if that works, could you overwrite with the 2 files from
System32\en-US
if i expect the test.exe will fail with this

Mirtma

  • Guest
Yes, you're right. With SysWOW64 files I've got same codes like before, with System32 files, i got window with "fail" message.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34351
could you email me the 2 files from SysWOW64\en-US
so i can test on my pc
i'll PM you my email address


Mirtma

  • Guest

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34351
thanks for letting me know. I'll give you an updated test.exe tonight for your windows7 machine to see if i can find out some more info why its failing


Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34351
could you try this test program - just unzip to a new directory (or delete all files in the old test one first) and run test.exe

http://www.mydatanest.com/files/stevenmmm/54618_dp1wj/Test.zip

click button 1 and it should show the device ids of your devices and then button 2 - it will display message boxes and i would like to know the last message before stopping

one question, do you have an AMD or Intel processor?
Last Edit: February 01, 2010, 08:58:24 PM by Steven

Mirtma

  • Guest

Mirtma

  • Guest
Results:

First button:

1=\\?\root#wpd#0000#{6ac27878-a6fa-4155-ba85-f98f491d4f33}
2=\\?\wpdbusenumroot#umb#2&37c186b&0&storage#volume#_??_usbstor#disk&ven_generic&prod_usb__cf_reader&rev_0.00#00000000000006&0##{6ac27878-a6fa-4155-ba85-f98f491d4f33}
3=\\?\wpdbusenumroot#umb#2&37c186b&0&storage#volume#_??_usbstor#disk&ven_generic&prod_usb__ms_reader&rev_0.00#00000000000006&2##{6ac27878-a6fa-4155-ba85-f98f491d4f33}
4=\\?\wpdbusenumroot#umb#2&37c186b&0&storage#volume#_??_usbstor#disk&ven_generic&prod_usb__sd_reader&rev_0.00#00000000000006&1##{6ac27878-a6fa-4155-ba85-f98f491d4f33}
5=\\?\wpdbusenumroot#umb#2&37c186b&0&storage#volume#_??_usbstor#disk&ven_generic&prod_usb__sm_reader&rev_0.00#00000000000006&3##{6ac27878-a6fa-4155-ba85-f98f491d4f33}

Second button:
index=1, step=1
index=1, step=2
index=1, step=3
1 done! name=Nokia N95 8GB
index=2, step=1
index=2, step=2
Unhandeled exception details:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x800706F8): The supplied user buffer is not valid for the requested operation. (Exception from HRESULT: 0x800706F8)
   at PortableDeviceApiLib.PortableDeviceManagerClass.GetDeviceFriendlyName(String pszPnPDeviceID, UInt16[] pDeviceFriendlyName, UInt32& pcchDeviceFriendlyName)
   at Test.Form1.Button2_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Test
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Matjaz/Desktop/test/Test.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Interop.PortableDeviceApiLib
    Assembly Version: 1.0.0.0
    Win32 Version:
    CodeBase: file:///C:/Users/Matjaz/Desktop/test/Interop.PortableDeviceApiLib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.