.NETGURU
Function call problems with vs.net RTM
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-services' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Zongker, Jeremy
-- Copied from [winforms-vb] to [ngfx-services] by Charles M. Carroll <Click here to reveal e-mail address> --    I have a windows service that I just upgraded from Beta2 to RTM.I'm getting the error below whenever I try to call any of my subs now. It'snot the code inside of the subs failing, but the actual call to them that isfailing...?Sub OnTimer(ByVal source As Object, ByVal e AsSystem.Timers.ElapsedEventArgs)    If ds.Tables("SystemVariables").Rows(0)("LastSystemCleanupMsg") ="Pending" Then        SystemCleanup()        ds = GetDS()    End IfEnd SubSub SystemCleanup()End SubEvent Type:    InformationEvent Source:    REGIS Automation ServiceEvent Category:    NoneEvent ID:    0Date:        1/22/2002Time:        12:06:46 PMUser:        N/AComputer:    JZONGKERDescription:System.IO.FileNotFoundException: File or assembly name System, or one of itsdependencies, was not found.File name: "System" at RegisService.RegisService.SystemCleanup() at RegisService.RegisService.OnTimer(Object source, ElapsedEventArgs e)in C:\VBApps\VS.Net\RegisService\RegisService.vb:line 139Fusion log follows: === Pre-bind state information ===LOG: DisplayName = System, Version=1.0.2411.0, Culture=neutral,PublicKeyToken=b77a5c561934e089 (Fully-specified)LOG: Appbase = c:\automation\regisserviceLOG: Initial PrivatePath = NULLCalling assembly : RegisEI, Version=1.0.746.24637, Culture=neutral,PublicKeyToken=null.===LOG: Publisher policy file is not found.LOG: Host configuration file not found.LOG: Using machine configuration file fromC:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\config\machine.config.LOG: Post-policy reference: System, Version=1.0.2411.0, Culture=neutral,PublicKeyToken=b77a5c561934e089LOG: Attempting download of new URLfile:///c:/automation/regisservice/System.DLL.LOG: Attempting download of new URLfile:///c:/automation/regisservice/System/System.DLL.LOG: Attempting download of new URLfile:///c:/automation/regisservice/System.EXE.LOG: Attempting download of new URLfile:///c:/automation/regisservice/System/System.EXE.For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.
Reply to this message...
 
    
Mitch Denny (VIP)
Jeremy,

Judging by the fusion log, it looks like the runtime is
trying to load a version of System.dll that if you are
now running on RTM doesn't exist on your system.

The reason it is triggering when you enter into the
method is because right at the moment where the
wire-up the event handler it will need access to
that assembly.

Anyway, to fix, you might need to actually recompile
your source code. Give it a show and let us know
how you go. If I read the documentation correctly
the runtime is quite strict with assemblies that
are coming out of the GAC.

Hope this helps.

----------------------------------------
- Mitch Denny
- Click here to reveal e-mail address
- +61 (414) 610-141
-

-----Original Message-----
From: Zongker, Jeremy [mailto:Click here to reveal e-mail address]
Sent: Wednesday, 23 January 2002 05:19
To: ngfx-services
Subject: [ngfx-services] Function call problems with vs.net RTM

-- Copied from [winforms-vb] to [ngfx-services] by Charles M. Carroll
<Click here to reveal e-mail address> --

    I have a windows service that I just upgraded from Beta2 to RTM.
I'm getting the error below whenever I try to call any of my subs now.
It's not the code inside of the subs failing, but the actual call to
them that is failing...?

Sub OnTimer(ByVal source As Object, ByVal e As
System.Timers.ElapsedEventArgs)
    If ds.Tables("SystemVariables").Rows(0)("LastSystemCleanupMsg")
= "Pending" Then
        SystemCleanup()
        ds = GetDS()
    End If
End Sub
Sub SystemCleanup()
End Sub

Event Type:    Information
Event Source:    REGIS Automation Service
Event Category:    None
Event ID:    0
Date:        1/22/2002
Time:        12:06:46 PM
User:        N/A
Computer:    JZONGKER
Description:
System.IO.FileNotFoundException: File or assembly name System, or one of
its dependencies, was not found. File name: "System"
at RegisService.RegisService.SystemCleanup()
at RegisService.RegisService.OnTimer(Object source, ElapsedEventArgs
e) in C:\VBApps\VS.Net\RegisService\RegisService.vb:line 139

Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = c:\automation\regisservice
LOG: Initial PrivatePath = NULL
Calling assembly : RegisEI, Version=1.0.746.24637, Culture=neutral,
PublicKeyToken=null. ===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System.DLL.
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System/System.DLL.
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System.EXE.
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System/System.EXE.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
| [ngfx-services] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-services.asp = JOIN/QUIT

Reply to this message...
 
    
Zongker, Jeremy
I came to the same conclusion last night. I did recompile several times and
it didn't help. I also tried removing and re-adding the reference to
system.dll and that also didn't help. Finally I started a new project and
copied and pasted all my code into it and that fixed it. Looks like it just
didn't want to let go of the old reference. Thanks.

-----Original Message-----
From: Mitch Denny [mailto:Click here to reveal e-mail address]
Sent: Tuesday, January 22, 2002 7:17 PM
To: ngfx-services
Subject: [ngfx-services] RE: Function call problems with vs.net RTM

Jeremy,

Judging by the fusion log, it looks like the runtime is
trying to load a version of System.dll that if you are
now running on RTM doesn't exist on your system.

The reason it is triggering when you enter into the
method is because right at the moment where the
wire-up the event handler it will need access to
that assembly.

Anyway, to fix, you might need to actually recompile
your source code. Give it a show and let us know
how you go. If I read the documentation correctly
the runtime is quite strict with assemblies that
are coming out of the GAC.

Hope this helps.

----------------------------------------
- Mitch Denny
- Click here to reveal e-mail address
- +61 (414) 610-141
-

-----Original Message-----
From: Zongker, Jeremy [mailto:Click here to reveal e-mail address]
Sent: Wednesday, 23 January 2002 05:19
To: ngfx-services
Subject: [ngfx-services] Function call problems with vs.net RTM

-- Copied from [winforms-vb] to [ngfx-services] by Charles M. Carroll
<Click here to reveal e-mail address> --

    I have a windows service that I just upgraded from Beta2 to RTM. I'm
getting the error below whenever I try to call any of my subs now. It's not
the code inside of the subs failing, but the actual call to them that is
failing...?

Sub OnTimer(ByVal source As Object, ByVal e As
System.Timers.ElapsedEventArgs)
    If ds.Tables("SystemVariables").Rows(0)("LastSystemCleanupMsg")
= "Pending" Then
        SystemCleanup()
        ds = GetDS()
    End If
End Sub
Sub SystemCleanup()
End Sub

Event Type:    Information
Event Source:    REGIS Automation Service
Event Category:    None
Event ID:    0
Date:        1/22/2002
Time:        12:06:46 PM
User:        N/A
Computer:    JZONGKER
Description:
System.IO.FileNotFoundException: File or assembly name System, or one of its
dependencies, was not found. File name: "System"
at RegisService.RegisService.SystemCleanup()
at RegisService.RegisService.OnTimer(Object source, ElapsedEventArgs
e) in C:\VBApps\VS.Net\RegisService\RegisService.vb:line 139

Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = c:\automation\regisservice
LOG: Initial PrivatePath = NULL
Calling assembly : RegisEI, Version=1.0.746.24637, Culture=neutral,
PublicKeyToken=null. ===

LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System.DLL.
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System/System.DLL.
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System.EXE.
LOG: Attempting download of new URL
file:///c:/automation/regisservice/System/System.EXE.

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
| [ngfx-services] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-services.asp = JOIN/QUIT

| [ngfx-services] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-services.asp = JOIN/QUIT

Reply to this message...
 
 
System.IO.FileNotFoundException
System.Timers.ElapsedEventArgs




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification