Click here to Skip to main content
15,889,438 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionCould not load type 'Google.Apis.Requests.IErrorResponseHandler' from assembly 'Google.Apis' Pin
zish7912-Dec-13 0:55
zish7912-Dec-13 0:55 
AnswerRe: Could not load type 'Google.Apis.Requests.IErrorResponseHandler' from assembly 'Google.Apis' Pin
Pete O'Hanlon12-Dec-13 1:19
mvePete O'Hanlon12-Dec-13 1:19 
SuggestionRe: Could not load type 'Google.Apis.Requests.IErrorResponseHandler' from assembly 'Google.Apis' Pin
thatraja12-Dec-13 3:31
professionalthatraja12-Dec-13 3:31 
QuestionMessage Closed Pin
10-Dec-13 2:42
Member 1045722310-Dec-13 2:42 
AnswerRe: Crystal Reports Pin
thatraja10-Dec-13 2:52
professionalthatraja10-Dec-13 2:52 
QuestionProgramming keyboard and mouse actions Pin
wyjohnson8-Dec-13 8:39
wyjohnson8-Dec-13 8:39 
AnswerRe: Programming keyboard and mouse actions Pin
Pete O'Hanlon8-Dec-13 23:06
mvePete O'Hanlon8-Dec-13 23:06 
QuestionSigned/Unsigned Assembly Load Conflict Pin
Squiggs7-Dec-13 14:56
Squiggs7-Dec-13 14:56 
I wrote a C++ mixed-mode (native and CLI) DLL. Call this assembly C1. It has a project reference to another assembly called R1.

Then, I wrote another mixed-mode DLL called assembly C2. It also has a project reference to R1.

These mixed-mode DLL's are loaded by a native Windows application. The assemblies are unsigned.


Current versions of the mixed-mode DLL's work with the original version of the native application if all assemblies are updated. However, I have a requirement to be able to update C1 without updating C2. Unfortunately, C1 and C2 both share R1 as a common dependency, and different versions of R1 are incompatible. This defines the root problem.

In an effort to resolve this, I updated C1 to create a new application domain whose private path (for probing) is a sub-directory of the application directory. The new R1 is located in the sub-directory. The new C1 is located in the application directory. The old C2 and R1 are also located in the application directory. The new versions of C1 and R1 are signed. Denote the old assemblies as C1A, C2A, and R1A. Denote the new assemblies as C1B and R1B. I am logging assembly loads in a handler to the separate app domain's AssemblyLoad event.


When the application runs, I see that C1B is loaded. Then, R1B is loaded into the separate app domain. Unexpectedly, R1A is loaded into the separate app domain. When a type from R1 is instantiated, the runtime is using R1A instead of R1B. Due to the aforementioned incompatibility of R1 versions, all sorts of exceptions ensue.

I then ran ildasm.exe against R1A. Next, I ran ilasm.exe against the resultant .IL file, specifying the key I used when building R1B. This generated a signed version of R1A. Denote the unsigned R1A as R1A1 and the signed version as R1A2. Finally, I copied R1A2 into the application directory. Now, the runtime skips R1A2 and only loads R1B in the separate application domain.


To me, the behavior of R1A1 violates the entire purpose of generating strongly named assemblies. What am I missing?
QuestionI wanna sell two my windows 8 metro applications Pin
comiscience5-Dec-13 23:08
comiscience5-Dec-13 23:08 
AnswerRe: I wanna sell two my windows 8 metro applications Pin
Richard MacCutchan6-Dec-13 0:06
mveRichard MacCutchan6-Dec-13 0:06 
GeneralRe: I wanna sell two my windows 8 metro applications Pin
comiscience6-Dec-13 0:20
comiscience6-Dec-13 0:20 
AnswerRe: I wanna sell two my windows 8 metro applications Pin
creampemutihwajah17-Dec-13 14:51
professionalcreampemutihwajah17-Dec-13 14:51 
QuestionHow to RESTful design or getting two tables in one JSON object Pin
mrhs5-Dec-13 17:06
mrhs5-Dec-13 17:06 
AnswerRe: How to RESTful design or getting two tables in one JSON object Pin
jschell6-Dec-13 12:11
jschell6-Dec-13 12:11 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
mrhs6-Dec-13 17:14
mrhs6-Dec-13 17:14 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
jschell7-Dec-13 10:29
jschell7-Dec-13 10:29 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
mrhs7-Dec-13 20:36
mrhs7-Dec-13 20:36 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
jschell9-Dec-13 15:14
jschell9-Dec-13 15:14 
Questionlocate the FILESTREAM data Pin
Member 103249742-Dec-13 23:24
Member 103249742-Dec-13 23:24 
AnswerRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 2:31
mveRichard MacCutchan3-Dec-13 2:31 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 2:40
Member 103249743-Dec-13 2:40 
GeneralRe: locate the FILESTREAM data Pin
Pete O'Hanlon3-Dec-13 2:42
mvePete O'Hanlon3-Dec-13 2:42 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 2:49
Member 103249743-Dec-13 2:49 
GeneralRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 2:59
mveRichard MacCutchan3-Dec-13 2:59 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 3:09
Member 103249743-Dec-13 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.