My Xamarin form apps was running like 5 minutes ago then all of sudden it stop working. The apps close instantly after it started.
Below shows message display at Visual studio output,
Assembly Loader probing location: 'System.Buffers'.
Could not load assembly 'System.Buffers' during startup registration.
This might be due to an invalid debug installation.
A common cause is to 'adb install' the app directly instead of doing from the IDE.
Things that I tried but failed to resolve the problem,
Reinstall System.Buffer from Nuget package.
Clean bin and obj folder of android
Unchecked use shared runtime at Android options
Clean solution and rebuild solution
Forum that I referred
https://forums.xamarin.com/discussion/115983/stuck-on-error-could-not-load-assembly-system-buffers-during-startup-registration
https://forums.xamarin.com/discussion/63584/android-could-not-load-assembly-xxx-during-startup-registration
https://bugzilla.xamarin.com/show_bug.cgi?id=44518
Can anyone helps me? Thanks in advance
I have found the solution from one of the forum.
Uninstall System.Buffer and install System.Memory using NuGet package to your project and its done. Hope it helps you.
I have solved this issue in little bit different manner. I have installed System.Memory from NuGet package manager without uninstalling System.Buffer. Then only error is gone. If I am uninstalling System.Buffer I still face the same issue.
I have just installed VS2012 on my system and VS2010 was already installed. I have a project made in VS2010 which was build successfully but later when i have installed VS2012 then it gives an error while build. Here is the error :
Error 430 The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments
I have searched on google and i found some of articles with the solution of this problem. All they have mentioned that either remove the tags or remove the runat="server" from the table tag to solve this issue. I have tried and it worked for me.
But now my main concern is that i have more than 100 such pages and i don't want to remove it from each and every page. So is there any alternative solution to solve this issue. I mean to say can we handle this error in web.config or somewhere else so that i don't need to do it for every page.
If you have any idea then kindly suggest me and your suggestions will be really appreciated. Thanks in advance.
Solution to this issue is nicely expalained in below link
http://connect.microsoft.com/VisualStudio/feedback/details/766115/value-of-type-system-web-ui-htmlcontrols-htmlgenericcontrol-cannot-be-converted-to-system-web-ui-htmlcontrols-htmltablerow
and you can apply a patch released by MS for this issue:
http://support.microsoft.com/kb/2750147
I'm unable to get the SPA template to work from Visual Studio 2013.
I've installed the Web Tools update, and created a fresh project choosing the Web SPA template option.
unfortunately, I get the error
An unknown error occurred.
This is caused by a failed webapi request which has the following error message (from fiddler):
No OWIN environment is available for the request
I can't find any information anywhere on how to get this to run.. can anyone help?
Thanks
TL;DR
Don't use a space in the project name
Kiran, I went to reproduce the problem from scratch. I messed around with the first project (trying to get it to work) so much that I didn't think it would be much help in diagnosing the problem.
The new project worked fine... Isn't it great when you can't reproduce the problem?
Well I looked carefully at what I did differently.. couldn't think of anything, yet yesterday, I spent all evening trying to get this work... I'd recreated the project from scratch several times!
Finally I realised... I named my project "Test SPA" whereas today I was too lazy to write such a long name.. just called it "SPA".
Just created a new project with a space in the name.. and have successfully reproduced the problem.
Let me know if you still need me to send a project, I think you should be able to repro without one though if you use a space in the project name
For one of the solutions, I don't see the Clean Solution option neither in the context menu when I right click on the solution name in the Solution Explorer nor in the Build menu. When I make any changes to the project and debug, VS never hits the break point and I get the "The breakpoint will not currently be hit. The source code is different from the original version." message. My understanding is that I need to clean the solution.
For other solutions, I do see the Clean solution and I don't have the same issue.
If you are using website project then their wont be clean solution option,it's available only with web application projects.
Finally had to create a brand new solution and add the projects from the older solution to the newly created one. Not sure what the problem was, but this helped.
I also faced the similar problem recently and this is what I came to.
I guess you are running an older code version than the one you want to debug on. Rebuild the project(s), paying attention to dependencies. Use the "Rebuild" feature.
If it's a Web application project, just clean it yourself by nuking all DLLs in the bin. Then rebuild. I assume it builds without errors?
If you're running a web site, as apposed to a web application project, you probably don't have an actual solution, or even a project file.
For a web site, you need to rebuild the website (from the build menu), or manually delete all of the dlls to accomplish the same thing.
Edit:
How are you debugging? Are you using Cassini (the built in visual studio debugger), or attaching to an IIS process?
I would also try this:
Go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files and delete the folder that has the same name as your website.
I had the same problem. Visual Studio was building my old code with debug. I opened a new instance of Visual Studio and opened my solution with it and it now works fine. No idea what happened.
You can also clean using devenv /clean SolnConfigName SolutionName in the command line environment.
Here is the reference: http://msdn.microsoft.com/en-us/vstudio/aa718635.aspx
For a website solution, just clean your web browser history and the Cache there.
Has anyone had experience with VS2008 incorrectly identifying variables in the code-behind as not being defined on the .aspx page? How was this resolved? The page is executing properly without any runtime or compilation errors.
Nevermind. Closing and re-opening the document in question seems to have resolved the problem. Anyone watch "The IT Crowd"? ... haha. "Have you tried turning it off and on again?" Seems to solve everything.
Check out my answer to my question here: Web site reports xxx does not exist in current context after upgrade to VS2008 Sp1
There is a hotfix for this if your getting the same issue I was.