• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

SStorhaug
#1 Posted : Wednesday, February 3, 2010 7:02:13 AM(UTC)
SStorhaug

Rank: Member

Joined: 11/20/2005(UTC)
Posts: 122

I have been struggling with this issue for more than a day now. Everything works perfectly in the development and test environments, however when I click the "Go to Admin" link after logging in in production I get a compilation error. The details of the error are as follows:





<H1>Server Error in '/' Application.
<HR width="100%" color=silver SIZE=1>
</H1>
<H2>Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. </H2>
[color=#ffffcc>

[tr ][td ]<CODE>
Line]Line 12: Dim latest As String = BVSoftware.Bvc5.Core.Utilities.VersionHelper.GetLatestVersionFromBV()
Line 13: Dim isLatest As Boolean = BVSoftware.Bvc5.Core.Utilities.VersionHelper.IsLatestVersion(latest)
[/color]Line 14:
Line 15: If (isLatest) Then</PRE>[/code][/td][/tr]</TABLE>


<B>[color=#ffffcc>

[tr ][td ]<CODE>
WRN:]To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</PRE>[/code][/td][/tr]</TABLE>


<FONT face=Verdana>Stack Trace:[/color]




[table width="100%" bgColor=#ffffcc][tr ][td ]<CODE>
[FileNotFoundException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.] BVSoftware.Bvc5.Core.Utilities.VersionHelper.IsLatestVersion(String latestVersionNumber, String currentVersionNumber) +0
BVSoftware.Bvc5.Core.Utilities.VersionHelper.IsLatestVersion(String latestVersionNumber) +11
BVAdmin_Controls_LatestVersionCheck.LoadVersionCheck() in C:\_ShutterContractor\Sites\www.foldingchairdepot.com\bvadmin\Controls\LatestVersionCheck.ascx.vb:13
BVAdmin_Controls_LatestVersionCheck.Page_Load(Object sender, EventArgs e) in C:\_ShutterContractor\Sites\www.foldingchairdepot.com\bvadmin\Controls\LatestVersionCheck.ascx.vb:7
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.BasePartialCachingControl.LoadRecursive() +113
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
</PRE>[/code][/td][/tr][/table]



I reworked all of the dependencies because I had my project set up to step through the core and some other projects. Now I just have compiled DLLs in the /bin directory with no external references. However, the error persists.



It looks like I might have a dependency that was compiled with a really old version of the core, but I am not sure which one it could be. The attachment shows what my /bin directory looks like.



I have done tons of research, but this compilation issue can happen for a variety of reasons.



Then I started to try to deduce what was different between the test and production environments. The only 2 things I could come up with were:



<OL>
<LI>The production environment doesn't have the latest service packs for .NET 2.0 or .NET 3.0 - they are both at SP2 in the test environment, but the production environment doesn't have SP2 installed.
* The production environment may not be running with Full Trust CAS.
</OL>
Our hosting provider specifically instructed us not to install any Windows Updates because they will corrupt our VPS. I may be able to update to the latest version by submitting a help ticket, but there are no guarantees that they will be able to install the service packs and more importantly, there are no guarantees the service packs will fix the issue at hand.

I looked around to try to figure out how to enable Full Trust for Code Access Security, but stragely I couldn't find any documentation on how to do this. There are plenty of documents on how to configure security for Medium Trust, but I found one document that says vaguely that Full Trust is configured at the machine level, but it didn't say where.

My only real hope is that someone ran into this issue before who can point me in the right direction.
SStorhaug attached the following image(s):
Dependencies.gif (51kb) downloaded 42 time(s).

You cannot view/download attachments. Try to login or register.
SStorhaug
#2 Posted : Wednesday, February 3, 2010 7:41:24 AM(UTC)
SStorhaug

Rank: Member

Joined: 11/20/2005(UTC)
Posts: 122

Ok....(slaps forehead)...I was assuming the whole time the file that was being searched for was BVC Core version 3.5. I re-read the message again, looking carefully at the PublicKeyToken and realized that I didn't install version 3.5 of .NET on the production server yet.

I am in the process of installing it now - 99.9% sure this will fix the issue.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012