Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Visual Studio ran into unexpected problem, and may affect some project system functions

$
0
0

I am new to programing so ı have no idea what to do. I was working on blazor web app project and ı was following a toturial in the video they picked up the razor page from server projet and put down to client project but when ı tried ı got this error Visual Studio ran into an unexpected problem,and may affect some project system functions. I think problem in the visual studio settings or some thing similar do can be any thing. And No application was not running.thank you

the razor file ı was talkin to :

@page "/EditVeri"@page "/EditVeri/{id:int}"@inject IVeriService VeriService@rendermode InteractiveWebAssembly<h3>Veri Oluştur</h3><br /><EditForm Model="veri" OnSubmit="HandleSubmit" FormName="editVeri"><label>Kodu</label><InputText @bind-Value="veri.Kodu">@veri.Kodu</InputText><br /><label>Adı</label><InputText @bind-Value="veri.Adı">@veri.Adı</InputText><button type="submit" class="btn btn-primary">Submit</button></EditForm><br /><br /><a class="VeriOnay">Veri Eklendi</a>@code {    [Parameter]    public int id { get; set; }    [SupplyParameterFromForm]    Veris veri { get; set; } = new Veris { Adı = string.Empty, Kodu = string.Empty };<style></style>    async Task HandleSubmit()    {        await VeriService.AddVeri(veri);        await Task.Delay(2000);    }}

and the log file :

=====================11.09.2024 14:01:05RecoverableSystem.NullReferenceException: Object reference not set to an instance of an object.   at Microsoft.VisualStudio.ProjectSystem.ProjectSerialization.CachedProjectItemDefinition.GetMetadata(String name)   at Microsoft.VisualStudio.ProjectSystem.Items.SourceItemsService.<<GetAllLinkedItemsAsync>b__94_0>d.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.ProjectLockService.<ExecuteWithinLockAsync>d__131`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at Microsoft.VisualStudio.ProjectSystem.ProjectLockService.<ExecuteWithinLockAsync>d__131`1.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.CopyPaste.DiskBasedCopyPasteItemHandler.<GatherExistingLinkedItemsPathAsync>d__32.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.CopyPaste.DiskBasedCopyPasteItemHandler.<ValidateItemListAsync>d__26.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode.<>c__DisplayClass58_0.<<DoPasteCoreAsync>b__1>d.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.ProjectLockService.<ExecuteWithinLockAsync>d__130.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at Microsoft.VisualStudio.ProjectSystem.ProjectLockService.<ExecuteWithinLockAsync>d__130.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode.<DoPasteCoreAsync>d__58.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode.<DoPasteAsync>d__57.MoveNext()--- End of stack trace from previous location where exception was thrown ---   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode.<>c__DisplayClass34_0.<<DropArea>b__1>d.MoveNext()===================

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>