Resource assembly missing?

H

Harry Simpson

I'm downloading a file from the web service folder on the server. Of course
it works great in my dev environment but deployed I keep getting the
following error:

ex.message = "could not find resource assembly"

I've narrowed it down to this bit of code but the error message doesn't make
sense in this context to me.....any ideas?

Which resource assembly could it be wanting and missing here????

TIA Much

************DA CODE SEGMENT*************************************************
Try

Dim wr As HttpWebRequest = CType(m_rec.Create(FullFilePath), HttpWebRequest)

Dim ws As HttpWebResponse = CType(wr.GetResponse(), HttpWebResponse)

Dim str As Stream = ws.GetResponseStream()

Dim inBuf(1000000) As Byte

Dim bytesToRead As Integer = CInt(inBuf.Length)

Dim bytesRead As Integer = 0

While bytesToRead > 0

Dim n As Integer = str.Read(inBuf, bytesRead, bytesToRead)

If n = 0 Then

Exit While

End If

bytesRead += n

bytesToRead -= n

End While

Dim fi As FileInfo

If File.Exists("\Application\" & strJustTheFileName) Then

fi = New FileInfo("\Application\" & strJustTheFileName)

fi.Attributes = FileAttributes.Normal

End If

Dim fstr As New FileStream("\Application\" & strJustTheFileName,
FileMode.Create)

fstr.Write(inBuf, 0, bytesRead)

str.Close()

fstr.Close()

inBuf = Nothing

fi.Attributes = FileAttributes.ReadOnly

Catch ex As Exception

MsgBox("Error in Download - Please try later. (" & ex.Message.ToString &
")", MsgBoxStyle.OKOnly, "Error in Download")

Exit Sub

End Try

Next
 
I

Ilya Tumanov [MS]

H

Harry Simpson

Thanks Ilya,

I've sent the System_SR_ENU.CAB that I found on my system to the client and
they tapped it and it does absolutely nothing. What's the
problem....shouldn't it go into some sort of installation mode or say it
installed or something?

Thanks
Harry
 
I

Ilya Tumanov [MS]

Yes, it should. Either CAB installation was done incorrectly or device does
not have CAB installer (possible for custom CE devices).



Please make sure your customer knows how to install CAB files manually:



1. Copy CAB to the device.

2. Click on it (on device).



Common mistakes include clicking CAB on desktop and skipping step #2.




--
Best regards,



Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
H

Harry Simpson

Ilya,

I can't get it to open/install when clicked on my PPC either.

I use a script to reinstall from the application directory (non-Volatile on
the Symbol PPT8800) on hard reset. Apparently i'm short circuiting the
manual CAB install somehow by doing this...I install several cab files on
hard reset automatically but the Cab installer must get hosed as far as
manual CAB installs. How would I manually add this CAB installer
functionality to a device?

Appreciate your assistance with this!


Thanks
Harry Simpson
 
I

Ilya Tumanov [MS]

If your device indeed does not have CAB installer (WCELOAD.EXE), that's the
end of it and there's nothing you can do (unless you can build OS image with
CAB installer for this device).
However, this device sure has CAB installer as you can install some CABs on
hard reset. You can do the same for SR CAB, it's redistributable.
Or you can launch "\windows\wceload.exe \full\path\to\cab\file.cab" from
console.

--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
H

Harry Simpson

Ilya,

I copied the wceload.exe into the directory with the System_SR_ENU.cab file
and tapped the file and got the following error message:
'System_SR_ENU' is not a valid Pocket PC application.

I'm tried the
92 KB 2005-08-19 11:46 AM file
331 KB 2005-09-01 2:01 PM file
92 KB 2002-09-24 9:56 PM file

Any idea what the problem may be?

TIA
Harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top