System.IO.FileNotFoundException: Could not load assembly “AppName” after update xamarin forms
up vote
1
down vote
favorite
I can't rebuild the project and I'm getting this exception after updating to latest Xamarin Forms 3.4.0.1008975 , if I downgrade it to 3.1.0.583944 or lower the exception will gone and I can build successfully.
I've tried to update VS and clean - close - reopen but the problem still there , I also tried to move the project to C:/ but no luck .
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'SouqAlData, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'SouqAlData.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SouqAlData.Android

visual-studio xamarin xamarin.forms xamarin.android file-not-found
|
show 2 more comments
up vote
1
down vote
favorite
I can't rebuild the project and I'm getting this exception after updating to latest Xamarin Forms 3.4.0.1008975 , if I downgrade it to 3.1.0.583944 or lower the exception will gone and I can build successfully.
I've tried to update VS and clean - close - reopen but the problem still there , I also tried to move the project to C:/ but no luck .
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'SouqAlData, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'SouqAlData.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SouqAlData.Android

visual-studio xamarin xamarin.forms xamarin.android file-not-found
In addition to regular cleaning try deleting the obj and bin folders from all project folders and then try again.
– Gerald Versluis
Nov 20 at 15:42
Can you add the exception in text format, that makes it easier to copy/paste for referencing and searching?
– Dominique
Nov 20 at 15:43
Yes i deleted the obj-bin , same result .
– Khalid Hex
Nov 20 at 15:57
I edited the post ..
– Khalid Hex
Nov 20 at 16:00
which VS version do you use? Update to 15.9.2 and look if you can build it now.
– magicandre1981
Nov 20 at 16:49
|
show 2 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I can't rebuild the project and I'm getting this exception after updating to latest Xamarin Forms 3.4.0.1008975 , if I downgrade it to 3.1.0.583944 or lower the exception will gone and I can build successfully.
I've tried to update VS and clean - close - reopen but the problem still there , I also tried to move the project to C:/ but no luck .
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'SouqAlData, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'SouqAlData.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SouqAlData.Android

visual-studio xamarin xamarin.forms xamarin.android file-not-found
I can't rebuild the project and I'm getting this exception after updating to latest Xamarin Forms 3.4.0.1008975 , if I downgrade it to 3.1.0.583944 or lower the exception will gone and I can build successfully.
I've tried to update VS and clean - close - reopen but the problem still there , I also tried to move the project to C:/ but no luck .
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'SouqAlData, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'SouqAlData.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SouqAlData.Android

visual-studio xamarin xamarin.forms xamarin.android file-not-found
visual-studio xamarin xamarin.forms xamarin.android file-not-found
edited Nov 20 at 16:48
magicandre1981
15k34778
15k34778
asked Nov 20 at 15:35
Khalid Hex
267
267
In addition to regular cleaning try deleting the obj and bin folders from all project folders and then try again.
– Gerald Versluis
Nov 20 at 15:42
Can you add the exception in text format, that makes it easier to copy/paste for referencing and searching?
– Dominique
Nov 20 at 15:43
Yes i deleted the obj-bin , same result .
– Khalid Hex
Nov 20 at 15:57
I edited the post ..
– Khalid Hex
Nov 20 at 16:00
which VS version do you use? Update to 15.9.2 and look if you can build it now.
– magicandre1981
Nov 20 at 16:49
|
show 2 more comments
In addition to regular cleaning try deleting the obj and bin folders from all project folders and then try again.
– Gerald Versluis
Nov 20 at 15:42
Can you add the exception in text format, that makes it easier to copy/paste for referencing and searching?
– Dominique
Nov 20 at 15:43
Yes i deleted the obj-bin , same result .
– Khalid Hex
Nov 20 at 15:57
I edited the post ..
– Khalid Hex
Nov 20 at 16:00
which VS version do you use? Update to 15.9.2 and look if you can build it now.
– magicandre1981
Nov 20 at 16:49
In addition to regular cleaning try deleting the obj and bin folders from all project folders and then try again.
– Gerald Versluis
Nov 20 at 15:42
In addition to regular cleaning try deleting the obj and bin folders from all project folders and then try again.
– Gerald Versluis
Nov 20 at 15:42
Can you add the exception in text format, that makes it easier to copy/paste for referencing and searching?
– Dominique
Nov 20 at 15:43
Can you add the exception in text format, that makes it easier to copy/paste for referencing and searching?
– Dominique
Nov 20 at 15:43
Yes i deleted the obj-bin , same result .
– Khalid Hex
Nov 20 at 15:57
Yes i deleted the obj-bin , same result .
– Khalid Hex
Nov 20 at 15:57
I edited the post ..
– Khalid Hex
Nov 20 at 16:00
I edited the post ..
– Khalid Hex
Nov 20 at 16:00
which VS version do you use? Update to 15.9.2 and look if you can build it now.
– magicandre1981
Nov 20 at 16:49
which VS version do you use? Update to 15.9.2 and look if you can build it now.
– magicandre1981
Nov 20 at 16:49
|
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
My understanding of the situation tells me that you do not have the latest version of Xamarin which comes along with Visual Studio 15.9.xx.
And hence when you update your Xamarin Forms package to the latest version of that is available it sees a discrepancy in between the versions and hence might be throwing this. One more reason could be that when you update your Xamarin Forms package, somehow the path for your SouqAlData.dll is lost by VS and hence you get this error. What I would suggest you do in case two is that you provide the proper path for your .dll again to VS and see if that helps you build the project.
You can give the path as follows:
- Remove the existing reference to the .dll
- In your project go to References>Add Reference>Browse then give it the .dll path from your solution directory.
Update:
From recent Xamarin forms update code behind doesn't support Task return type as signatures for event handlers.
So Replacing the Task with Void return type did the trick. Reference
Well i can't reference it because it doesn't exist , like i said i can't build the project ... when i downgrade to a lower version i can build the project and the directory that contain .dll is there ... but when i update the packages and hit rebuild the netstandard2.0 directory that contain SouqAlData.dll doesn't exist and i think that because the project hasn't successfully been built in the first place .
– Khalid Hex
Nov 21 at 13:46
IsSouqAlDataa project in your solution or an external dll?
– G.hakim
Nov 21 at 13:50
That is the project name ..
– Khalid Hex
Nov 21 at 13:55
Did you try updating visual studio to the latest version?
– G.hakim
Nov 21 at 14:01
I update it to latest version 15.9.2 ....
– Khalid Hex
Nov 21 at 14:05
|
show 5 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53396444%2fsystem-io-filenotfoundexception-could-not-load-assembly-appname-after-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
My understanding of the situation tells me that you do not have the latest version of Xamarin which comes along with Visual Studio 15.9.xx.
And hence when you update your Xamarin Forms package to the latest version of that is available it sees a discrepancy in between the versions and hence might be throwing this. One more reason could be that when you update your Xamarin Forms package, somehow the path for your SouqAlData.dll is lost by VS and hence you get this error. What I would suggest you do in case two is that you provide the proper path for your .dll again to VS and see if that helps you build the project.
You can give the path as follows:
- Remove the existing reference to the .dll
- In your project go to References>Add Reference>Browse then give it the .dll path from your solution directory.
Update:
From recent Xamarin forms update code behind doesn't support Task return type as signatures for event handlers.
So Replacing the Task with Void return type did the trick. Reference
Well i can't reference it because it doesn't exist , like i said i can't build the project ... when i downgrade to a lower version i can build the project and the directory that contain .dll is there ... but when i update the packages and hit rebuild the netstandard2.0 directory that contain SouqAlData.dll doesn't exist and i think that because the project hasn't successfully been built in the first place .
– Khalid Hex
Nov 21 at 13:46
IsSouqAlDataa project in your solution or an external dll?
– G.hakim
Nov 21 at 13:50
That is the project name ..
– Khalid Hex
Nov 21 at 13:55
Did you try updating visual studio to the latest version?
– G.hakim
Nov 21 at 14:01
I update it to latest version 15.9.2 ....
– Khalid Hex
Nov 21 at 14:05
|
show 5 more comments
up vote
1
down vote
accepted
My understanding of the situation tells me that you do not have the latest version of Xamarin which comes along with Visual Studio 15.9.xx.
And hence when you update your Xamarin Forms package to the latest version of that is available it sees a discrepancy in between the versions and hence might be throwing this. One more reason could be that when you update your Xamarin Forms package, somehow the path for your SouqAlData.dll is lost by VS and hence you get this error. What I would suggest you do in case two is that you provide the proper path for your .dll again to VS and see if that helps you build the project.
You can give the path as follows:
- Remove the existing reference to the .dll
- In your project go to References>Add Reference>Browse then give it the .dll path from your solution directory.
Update:
From recent Xamarin forms update code behind doesn't support Task return type as signatures for event handlers.
So Replacing the Task with Void return type did the trick. Reference
Well i can't reference it because it doesn't exist , like i said i can't build the project ... when i downgrade to a lower version i can build the project and the directory that contain .dll is there ... but when i update the packages and hit rebuild the netstandard2.0 directory that contain SouqAlData.dll doesn't exist and i think that because the project hasn't successfully been built in the first place .
– Khalid Hex
Nov 21 at 13:46
IsSouqAlDataa project in your solution or an external dll?
– G.hakim
Nov 21 at 13:50
That is the project name ..
– Khalid Hex
Nov 21 at 13:55
Did you try updating visual studio to the latest version?
– G.hakim
Nov 21 at 14:01
I update it to latest version 15.9.2 ....
– Khalid Hex
Nov 21 at 14:05
|
show 5 more comments
up vote
1
down vote
accepted
up vote
1
down vote
accepted
My understanding of the situation tells me that you do not have the latest version of Xamarin which comes along with Visual Studio 15.9.xx.
And hence when you update your Xamarin Forms package to the latest version of that is available it sees a discrepancy in between the versions and hence might be throwing this. One more reason could be that when you update your Xamarin Forms package, somehow the path for your SouqAlData.dll is lost by VS and hence you get this error. What I would suggest you do in case two is that you provide the proper path for your .dll again to VS and see if that helps you build the project.
You can give the path as follows:
- Remove the existing reference to the .dll
- In your project go to References>Add Reference>Browse then give it the .dll path from your solution directory.
Update:
From recent Xamarin forms update code behind doesn't support Task return type as signatures for event handlers.
So Replacing the Task with Void return type did the trick. Reference
My understanding of the situation tells me that you do not have the latest version of Xamarin which comes along with Visual Studio 15.9.xx.
And hence when you update your Xamarin Forms package to the latest version of that is available it sees a discrepancy in between the versions and hence might be throwing this. One more reason could be that when you update your Xamarin Forms package, somehow the path for your SouqAlData.dll is lost by VS and hence you get this error. What I would suggest you do in case two is that you provide the proper path for your .dll again to VS and see if that helps you build the project.
You can give the path as follows:
- Remove the existing reference to the .dll
- In your project go to References>Add Reference>Browse then give it the .dll path from your solution directory.
Update:
From recent Xamarin forms update code behind doesn't support Task return type as signatures for event handlers.
So Replacing the Task with Void return type did the trick. Reference
edited Nov 21 at 14:29
answered Nov 21 at 11:41
G.hakim
2,7231627
2,7231627
Well i can't reference it because it doesn't exist , like i said i can't build the project ... when i downgrade to a lower version i can build the project and the directory that contain .dll is there ... but when i update the packages and hit rebuild the netstandard2.0 directory that contain SouqAlData.dll doesn't exist and i think that because the project hasn't successfully been built in the first place .
– Khalid Hex
Nov 21 at 13:46
IsSouqAlDataa project in your solution or an external dll?
– G.hakim
Nov 21 at 13:50
That is the project name ..
– Khalid Hex
Nov 21 at 13:55
Did you try updating visual studio to the latest version?
– G.hakim
Nov 21 at 14:01
I update it to latest version 15.9.2 ....
– Khalid Hex
Nov 21 at 14:05
|
show 5 more comments
Well i can't reference it because it doesn't exist , like i said i can't build the project ... when i downgrade to a lower version i can build the project and the directory that contain .dll is there ... but when i update the packages and hit rebuild the netstandard2.0 directory that contain SouqAlData.dll doesn't exist and i think that because the project hasn't successfully been built in the first place .
– Khalid Hex
Nov 21 at 13:46
IsSouqAlDataa project in your solution or an external dll?
– G.hakim
Nov 21 at 13:50
That is the project name ..
– Khalid Hex
Nov 21 at 13:55
Did you try updating visual studio to the latest version?
– G.hakim
Nov 21 at 14:01
I update it to latest version 15.9.2 ....
– Khalid Hex
Nov 21 at 14:05
Well i can't reference it because it doesn't exist , like i said i can't build the project ... when i downgrade to a lower version i can build the project and the directory that contain .dll is there ... but when i update the packages and hit rebuild the netstandard2.0 directory that contain SouqAlData.dll doesn't exist and i think that because the project hasn't successfully been built in the first place .
– Khalid Hex
Nov 21 at 13:46
Well i can't reference it because it doesn't exist , like i said i can't build the project ... when i downgrade to a lower version i can build the project and the directory that contain .dll is there ... but when i update the packages and hit rebuild the netstandard2.0 directory that contain SouqAlData.dll doesn't exist and i think that because the project hasn't successfully been built in the first place .
– Khalid Hex
Nov 21 at 13:46
Is
SouqAlData a project in your solution or an external dll?– G.hakim
Nov 21 at 13:50
Is
SouqAlData a project in your solution or an external dll?– G.hakim
Nov 21 at 13:50
That is the project name ..
– Khalid Hex
Nov 21 at 13:55
That is the project name ..
– Khalid Hex
Nov 21 at 13:55
Did you try updating visual studio to the latest version?
– G.hakim
Nov 21 at 14:01
Did you try updating visual studio to the latest version?
– G.hakim
Nov 21 at 14:01
I update it to latest version 15.9.2 ....
– Khalid Hex
Nov 21 at 14:05
I update it to latest version 15.9.2 ....
– Khalid Hex
Nov 21 at 14:05
|
show 5 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53396444%2fsystem-io-filenotfoundexception-could-not-load-assembly-appname-after-update%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
In addition to regular cleaning try deleting the obj and bin folders from all project folders and then try again.
– Gerald Versluis
Nov 20 at 15:42
Can you add the exception in text format, that makes it easier to copy/paste for referencing and searching?
– Dominique
Nov 20 at 15:43
Yes i deleted the obj-bin , same result .
– Khalid Hex
Nov 20 at 15:57
I edited the post ..
– Khalid Hex
Nov 20 at 16:00
which VS version do you use? Update to 15.9.2 and look if you can build it now.
– magicandre1981
Nov 20 at 16:49