I'm trying to get the file server working on CE6.0. I'm essentially porting
my application for 5.0 to 6.0. Everything works except for the file server.
When SMB is loading I get the following:
4294927578 PID:36b0002 TID:3a80002 Loading Share: Data
4294927639 PID:36b0002 TID:3a80002 SMB_PRINT: Loading Registry:
Services\SMBServer\Shares\Data
4294927699 PID:36b0002 TID:3a80002 -- Type: 0
4294927759 PID:36b0002 TID:3a80002 -- Path: \Hard Disk2\filestor
4294927821 PID:36b0002 TID:3a80002 -- ACL: *
4294927881 PID:36b0002 TID:3a80002 -- NOT USING READ-ONLY ACL's!
4294927941 PID:36b0002 TID:3a80002 -- Read-ONLYACL:
4294928003 PID:36b0002 TID:3a80002 SMBSRV-CRACKER: cracker delay thread
created 0x920803
4294928064 PID:36b0002 TID:3a80002 WARNING: CreateFileForMapping is being
deprecated! Use CreateFile+CloseHandle instead.
4294928125 PID:36b0002 TID:3a80002 SMB-MEMMAP: Error -- cant open file!: 0x3
4294928266 PID:36b0002 TID:3a80002 SMB_PRINT: Error Opening memory map! --
cant continue
4294928328 PID:36b0002 TID:3a80002 -SMB_Init - StartPrintSpool failed
4294928389 PID:36b0002 TID:3a80002 SMB_Init -- an error occured during
init... cleaning up
4294928449 PID:36b0002 TID:3a80002 SMBSRV:Stopping TCP transport
4294928510 PID:36b0002 TID:3a80002 SMBSRV:Stopping NETBIOS transport
4294928578 PID:36b0002 TID:3a80002 -SMB_Init

There should be plenty of RAM (128megs same setup as our 5.0) so I don't
know why it fails the way it does. Any idea of what could be going wrong here?

Thanks, Daniel

Re: File server on CE6.0 by Luca

Luca
Tue Apr 15 00:34:53 PDT 2008

SMB source code is in PRIVATE tree, if you take a look at it you can see
that a function (StartPrintSpool) fails to open
a file used to swap memory for the print queue with the error
ERROR_FILE_NOT_FOUND. The file name should be set in the registry with tthe
value L"PrintSwapFile" as. Amazingly, MS sample code uses an obsolete
function as CreateFileForMapping...

--

Luca Calligaris
www.eurotech.it

"Aplamon" <Aplamon@discussions.microsoft.com> ha scritto nel messaggio
news:E2B3FAD8-52E6-4735-AB6F-BEB4F7E16E22@microsoft.com...
> I'm trying to get the file server working on CE6.0. I'm essentially
> porting
> my application for 5.0 to 6.0. Everything works except for the file
> server.
> When SMB is loading I get the following:
> 4294927578 PID:36b0002 TID:3a80002 Loading Share: Data
> 4294927639 PID:36b0002 TID:3a80002 SMB_PRINT: Loading Registry:
> Services\SMBServer\Shares\Data
> 4294927699 PID:36b0002 TID:3a80002 -- Type: 0
> 4294927759 PID:36b0002 TID:3a80002 -- Path: \Hard Disk2\filestor
> 4294927821 PID:36b0002 TID:3a80002 -- ACL: *
> 4294927881 PID:36b0002 TID:3a80002 -- NOT USING READ-ONLY ACL's!
> 4294927941 PID:36b0002 TID:3a80002 -- Read-ONLYACL:
> 4294928003 PID:36b0002 TID:3a80002 SMBSRV-CRACKER: cracker delay thread
> created 0x920803
> 4294928064 PID:36b0002 TID:3a80002 WARNING: CreateFileForMapping is being
> deprecated! Use CreateFile+CloseHandle instead.
> 4294928125 PID:36b0002 TID:3a80002 SMB-MEMMAP: Error -- cant open file!:
> 0x3
> 4294928266 PID:36b0002 TID:3a80002 SMB_PRINT: Error Opening memory map! --
> cant continue
> 4294928328 PID:36b0002 TID:3a80002 -SMB_Init - StartPrintSpool failed
> 4294928389 PID:36b0002 TID:3a80002 SMB_Init -- an error occured during
> init... cleaning up
> 4294928449 PID:36b0002 TID:3a80002 SMBSRV:Stopping TCP transport
> 4294928510 PID:36b0002 TID:3a80002 SMBSRV:Stopping NETBIOS transport
> 4294928578 PID:36b0002 TID:3a80002 -SMB_Init
>
> There should be plenty of RAM (128megs same setup as our 5.0) so I don't
> know why it fails the way it does. Any idea of what could be going wrong
> here?
>
> Thanks, Daniel



Re: File server on CE6.0 by Aplamon

Aplamon
Tue Apr 15 07:25:01 PDT 2008

Luca,

Thanks, that was the problem.
It seems that the file and print server aren't very separate anymore in CE6.
I don't even have the print server component added in my catalog, only the
file server. The registry settings are also a direct transfer from my CE5
configuration and it worked fine there. Microsoft also stated in the
documentation that no changes are needed to migrate to 6.

/Daniel

"Luca Calligaris" wrote:

> SMB source code is in PRIVATE tree, if you take a look at it you can see
> that a function (StartPrintSpool) fails to open
> a file used to swap memory for the print queue with the error
> ERROR_FILE_NOT_FOUND. The file name should be set in the registry with tthe
> value L"PrintSwapFile" as. Amazingly, MS sample code uses an obsolete
> function as CreateFileForMapping...
>
> --
>
> Luca Calligaris
> www.eurotech.it
>
> "Aplamon" <Aplamon@discussions.microsoft.com> ha scritto nel messaggio
> news:E2B3FAD8-52E6-4735-AB6F-BEB4F7E16E22@microsoft.com...
> > I'm trying to get the file server working on CE6.0. I'm essentially
> > porting
> > my application for 5.0 to 6.0. Everything works except for the file
> > server.
> > When SMB is loading I get the following:
> > 4294927578 PID:36b0002 TID:3a80002 Loading Share: Data
> > 4294927639 PID:36b0002 TID:3a80002 SMB_PRINT: Loading Registry:
> > Services\SMBServer\Shares\Data
> > 4294927699 PID:36b0002 TID:3a80002 -- Type: 0
> > 4294927759 PID:36b0002 TID:3a80002 -- Path: \Hard Disk2\filestor
> > 4294927821 PID:36b0002 TID:3a80002 -- ACL: *
> > 4294927881 PID:36b0002 TID:3a80002 -- NOT USING READ-ONLY ACL's!
> > 4294927941 PID:36b0002 TID:3a80002 -- Read-ONLYACL:
> > 4294928003 PID:36b0002 TID:3a80002 SMBSRV-CRACKER: cracker delay thread
> > created 0x920803
> > 4294928064 PID:36b0002 TID:3a80002 WARNING: CreateFileForMapping is being
> > deprecated! Use CreateFile+CloseHandle instead.
> > 4294928125 PID:36b0002 TID:3a80002 SMB-MEMMAP: Error -- cant open file!:
> > 0x3
> > 4294928266 PID:36b0002 TID:3a80002 SMB_PRINT: Error Opening memory map! --
> > cant continue
> > 4294928328 PID:36b0002 TID:3a80002 -SMB_Init - StartPrintSpool failed
> > 4294928389 PID:36b0002 TID:3a80002 SMB_Init -- an error occured during
> > init... cleaning up
> > 4294928449 PID:36b0002 TID:3a80002 SMBSRV:Stopping TCP transport
> > 4294928510 PID:36b0002 TID:3a80002 SMBSRV:Stopping NETBIOS transport
> > 4294928578 PID:36b0002 TID:3a80002 -SMB_Init
> >
> > There should be plenty of RAM (128megs same setup as our 5.0) so I don't
> > know why it fails the way it does. Any idea of what could be going wrong
> > here?
> >
> > Thanks, Daniel
>
>
>