Assembly load issue
I have a class library(Package) in which I have some RazorEngine 3.7.0 code which parses a template.
When I invoke the Parse() method on the library from a unit test, it works, but when I call it from a web API, I get the error "Could not load file or assembly 'System.Web.Razor, Version=3.0.0.0."
Not sure why this is happening.
I saw this StackOverflow discussion and thought it might be a similar issue:
http://stackoverflow.com/questions/29007962/how-can-i-diagnose-missing-dependencies-or-other-loader-failures-in-dnx/29161703#29161703
But even when I cleaned up all the packages and runtime folders, reinstalled dnvm and ran a restore, the issue persists.
I have uploaded the code sample to this repo - you should be able to replicate the problem with this code sample: https://github.com/girish-a/try
This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a temporary error. The following address(es) deferred:
[email protected] Domain spinthemoose.com has exceeded the max emails per hour (214/200 (107%)) allowed. Message will be reattempted later
------- This is a copy of the message, including all the headers. ------ Received: from github-smtp2-ext8.iad.github.net ([192.30.252.199]:36528 helo=github-smtp2a-ext-cp1-prd.iad.github.net) by cp1164.blacksun.ca with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from [email protected]) id 1eVkGw-0001Hc-Nt for [email protected]; Sun, 31 Dec 2017 14:31:54 -0600 Date: Sun, 31 Dec 2017 12:31:34 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1514752294; bh=gwEOTfaleDPKXCkWTo8LPID3JoSJOvPHW7vFYSzCEq0=; h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=UhQk2M9jZGrlE0p1KWHE/PkENwcFW60Ooi62acWVtlqpDjgrG34miUxMPT3T5Tx3w ga1h6lA38bizJIH2cEK7RY1dBQ5kF3LwLqZDcqxwRWX0fbBY6SxnWiZLXfhNiauIPZ VIjQ5nxs5lAr663aZwU0c6YOVE/IdQ48zh5fAQZ4= From: "ASP.NET Hello Bot" [email protected] Reply-To: aspnet/Home [email protected] To: aspnet/Home [email protected] Cc: Subscribed [email protected] Message-ID: aspnet/Home/issue/848/issue_event/[email protected] In-Reply-To: aspnet/Home/issues/[email protected] References: aspnet/Home/issues/[email protected] Subject: Re: [aspnet/Home] Assembly load issue (#848) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5a494926c585_9d43f84f8762f341988859"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Sender: aspnet-hello X-GitHub-Recipient: davidalpert X-GitHub-Reason: subscribed List-ID: aspnet/Home <Home.aspnet.github.com> List-Archive: https://github.com/aspnet/Home List-Post: mailto:[email protected] List-Unsubscribe: mailto:unsub+0000a9448c5779fe4be2232f0aecd84c60baa688640c799892cf0000000116610b2692a169ce060ff389@reply.github.com, https://github.com/notifications/unsubscribe/AACpREqdgxrlwTPb0bYqqk5T1B2of4fUks5tF-8mgaJpZM4Ftwdc X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: [email protected]
----==_mimepart_5a494926c585_9d43f84f8762f341988859 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit
Closed #848.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/aspnet/Home/issues/848#event-1405408537 ----==_mimepart_5a494926c585_9d43f84f8762f341988859 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Closed #848.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.![]()
----==_mimepart_5a494926c585_9d43f84f8762f341988859--
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a temporary error. The following address(es) deferred:
[email protected] Domain spinthemoose.com has exceeded the max emails per hour (215/200 (107%)) allowed. Message will be reattempted later
------- This is a copy of the message, including all the headers. ------ Received: from o11.sgmail.github.com ([167.89.101.202]:24611) by cp1164.blacksun.ca with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from [email protected]) id 1eVkGx-0001Hi-I6 for [email protected]; Sun, 31 Dec 2017 14:31:55 -0600 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=p7nb3SBsjSN7yWgA9zvxD5vdJGk=; b=sANxzp31kmjCz3jr mniXfUB+WK8Sa289qWP+MZwoBGSWJgqkvP8pwLAWcvP7NibxYlCQ5jA2Vfxx784O jmm4RrsvpmHYMUMnvA0TfsLn8UGlqiOO/xK4QQ15LILOH9RhZ8WV73fOZUhwUurv 9pxjQTCSDUBM3Si3c68HOSbeW9Y= Received: by filter0855p1mdw1.sendgrid.net with SMTP id filter0855p1mdw1-30371-5A494926-2 2017-12-31 20:31:34.048732057 +0000 UTC Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0016p1iad2.sendgrid.net (SG) with ESMTP id 0UI-Rv_aQJaZtb-bBf-I9w for [email protected]; Sun, 31 Dec 2017 20:31:34.019 +0000 (UTC) Date: Sun, 31 Dec 2017 20:31:34 +0000 (UTC) From: "ASP.NET Hello Bot" [email protected] Reply-To: aspnet/Home [email protected] To: aspnet/Home [email protected] Cc: Subscribed [email protected] Message-ID: aspnet/Home/issues/848/[email protected] In-Reply-To: aspnet/Home/issues/[email protected] References: aspnet/Home/issues/[email protected] Subject: Re: [aspnet/Home] Assembly load issue (#848) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5a494925d8cd6_39643f8da51e4f343932d5"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Sender: aspnet-hello X-GitHub-Recipient: davidalpert X-GitHub-Reason: subscribed List-ID: aspnet/Home <Home.aspnet.github.com> List-Archive: https://github.com/aspnet/Home List-Post: mailto:[email protected] List-Unsubscribe: mailto:unsub+0000a944a6e0a1861e6fcf4d9069700e5f011a88de49581a92cf0000000116610b2592a169ce060ff389@reply.github.com, https://github.com/notifications/unsubscribe/AACpRN4v-T3MYnLWkxaVTzHX9_JHH8Jcks5tF-8lgaJpZM4Ftwdc X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: [email protected] X-SG-EID: rlj3t9ahcX0BZUzAOlajQ3VmBXo43xFJc4M1ImIDJhHmwIX97y/ZoREzhcz2KHCLPfr7FIaqJFj9EJ vz8IYn2KYZHcItYmqPm0bruxx2yYYnDDpHzsdK87gRBCSylvIHVIhohriDkVS6wY/cIhBnGGUwSDnv kiuTB/0INUWTfATGwpqkrUS9rKJMIEjb8OI39YrzliPrzC2Uyw/8An+SszxUJnaERqX/2U2zhxLScr 1SFdPHxeEg19G7XNVumf6h
----==_mimepart_5a494925d8cd6_39643f8da51e4f343932d5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit
This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/aspnet/Home/issues/848#issuecomment-354622560 ----==_mimepart_5a494925d8cd6_39643f8da51e4f343932d5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This issue is being closed because it has not been updated in 3 months.<= /p>
We apologize if this causes any inconvenience. We ask that if you are st= ill encountering this issue, please log a new issue with updated informatio= n and we will investigate.
&mda=
sh;
You are receiving this because you are subscribed to this thread.<=
br />Reply to this email directly, view it on GitHub, or mute the thread.
----==_mimepart_5a494925d8cd6_39643f8da51e4f343932d5--