Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Oclick021
    @Oclick021
    14:24:25.760: Starting job: Handling Razor update: Pages\SilverController.razor
    14:24:25.760: Job failed: Handling Razor update: Pages\SilverController.razor
    System.ArgumentException: Value cannot be null or an empty string. (Parameter 'path')
    at Microsoft.AspNetCore.Razor.Language.RazorProject.NormalizeAndEnsureValidPath(String path)
    at LiveSharp.VirtualRazorProjectFileSystem.GetItem(String path, String fileKind)
    at LiveSharp.CompositeRazorProjectFileSystem.GetItem(String path, String fileKind)
    at LiveSharp.RazorBuildEngine.GetGeneratedCode(TextDocument document)
    at LiveSharp.RazorHandler.GetGeneratedCode(TextDocument document)
    at LiveSharp.LiveSharpWorkspace.<>cDisplayClass28_0.<RazorFileChanged>b0()
    at LiveSharp.Infrastructure.JobQueue.<>cDisplayClass7_0.<<AddAsyncJob>b0>d.MoveNext()
    This is the Exception im getting if the change is in the Library
    pwhsoft
    @pwhsoft
    I cannot use livesharp anymore because of the following bug: System.IO.IOException: The process cannot access the file 'D:\projects\this\is\my\project\path\logs\main20210215.log' because it is being used by another process.
    Mihhail Maslakov
    @ionoy
    @Oclick021 do you have any unusual project items in the component library?
    pwhsoft
    @pwhsoft
    Yes. My application is storing the logfiles in dev mode in the project directory.
    Livesharp then tells me it cannot compile becauSe of a log
    how can I exclude this files from livesharp?
    I meant because of a lock on the logfile
    Mihhail Maslakov
    @ionoy
    @pwhsoft can you move it to the output directory like bin? why do you have a runtime log in the project directory?
    pwhsoft
    @pwhsoft
    Just for dev purposes. I will change it and them I will look if it works. But isnt there a way to exclude such files by file ending?
    Mihhail Maslakov
    @ionoy
    Yeah, there needs to be a way. You are just the first one who encountered it. Could you add an issue on GitHub?
    David Ferguson
    @somecodeguy_twitter
    @ionoy BTW, I can confirm if livesharp is enabled and the server not running, I get infinite loops in my app of it trying to reconnect. I can confirm this by attaching my debugger and watching debut output.
    Another scenario I found, if you have the debugger attached and you change code, the debugger still has the old symbols loaded and won't hit breakpoints properly anymore.
    Junior
    @Muhammad-Waleed-Hafeez
    blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
    Unhandled exception rendering component: Object reference not set to an instance of an object.
    System.NullReferenceException: Object reference not set to an instance of an object.
    at ContentBlazorChromiumExtension.App.BuildRenderTree(RenderTreeBuilder builder) in C:\Users\waleed.hafeez\source\repos\ContentBlazorChromiumExtension-master\ContentBlazorChromiumExtension\App.razor:line 48
    at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b
    6_0(RenderTreeBuilder builder)
    at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
    at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
    at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    I'm getting this error can some one tell me how should i resolve it.
    @foreach (string item in strArray)
    {
    <tr>
    <td>@item</td>
    </tr>
    }
    the "strArray" is my stringArray in c# method it shows the data perfectly fine on console.writeLine(item). but when i try to display my items in html's table -body it shows me abbove error. why?
    note: the html and c# code is in my app.razor file.
    Mihhail Maslakov
    @ionoy
    @somecodeguy_twitter the cpu issue will be fixed in the next release
    can't do much about breakpoints though, .NET just doesn't support it yet as far as I'm concerned
    @Muhammad-Waleed-Hafeez does this work without LiveSharp installed?
    Junior
    @Muhammad-Waleed-Hafeez
    @ionoy .. i haven't installed livesharp on my laptop yet. why?
    ricibald
    @ricibald

    Hi, my license doesn't work, but my status is ACTIVE, this is the error:

    12:54:00.684: Failed to update the license info System.ArgumentException: accessKey at LiveSharp.Dashboard.Services.LicenseInfo..ctor(String licenseKeyBase64, String accessKey) at LiveSharp.Dashboard.Pages.Index.<>c__DisplayClass12_0.<UpdateLicenseInfo>b__0()
    
    12:54:00.684: Loading license failed System.Exception: License not found at LiveSharp.Dashboard.Services.LicenseService.LoadLicense(String email, String accessKey) at LiveSharp.Dashboard.Pages.Index.LoadLicense()
    
    12:54:00.683: Load license failed for: xxx@gmail.com System.Exception: License not found at LiveSharp.Dashboard.Services.LicenseService.LoadLicense(String email, String accessKey)
    
    12:54:00.682: LiveSharp license activation failed for xxx@gmail.com: The SSL connection could not be established, see inner exception.
    
    12:54:00.329: LiveSharp license activation failed for xxx@gmail.com: License has expired
    
    12:48:32.784: Failed to update the license info System.ArgumentException: accessKey at LiveSharp.Dashboard.Services.LicenseInfo..ctor(String licenseKeyBase64, String accessKey) at LiveSharp.Dashboard.Pages.Index.<>c__DisplayClass12_0.<UpdateLicenseInfo>b__0()

    I think the error is in The SSL connection could not be established

    Mihhail Maslakov
    @ionoy
    @Muhammad-Waleed-Hafeez then you are asking for help in the wrong channel. This channel is for LiveSharp issues only.
    @ricibald please PM me your email
    Junior
    @Muhammad-Waleed-Hafeez
    @ionoy ... ok sorry.
    Mihhail Maslakov
    @ionoy
    @Muhammad-Waleed-Hafeez no problem
    David Ferguson
    @somecodeguy_twitter
    @ionoy Will the next realease allow us to ignore the build warning on support assemblies?
    Mihhail Maslakov
    @ionoy
    @somecodeguy_twitter do you mean the "start method not found" warning?
    David Ferguson
    @somecodeguy_twitter
    Yes
    Mihhail Maslakov
    @ionoy
    yep, this should be gone in the next version
    David Ferguson
    @somecodeguy_twitter
    Awesome, thanks!
    cliff v
    @powerdude

    Hi, i'm getting errors trying to use LiveSharp and Live Unit Testing in VS. LiveSharp won't compile the project(s)

    [13:29:15.024 Error] - BuildManager - Project assets file 'd:\temp\LiveSharBug2\BlankApp1\BlankApp1\obj\project.assets.json' is missing. Performing a NuGet restore may resolve this issue.
    [13:29:15.354 Verbose] - BuildManager - warning CS8021: No value for RuntimeMetadataVersion found. No assembly containing System.Object was found nor was a value for RuntimeMetadataVersion specified through options.
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1\BlankApp1\LiveSharp.dashboard.cs(4,12): error CS0246: The type or namespace name 'LiveSharpInjectAttribute' could not be found (are you missing a using directive or an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1\BlankApp1\LiveSharp.dashboard.cs(4,12): error CS0246: The type or namespace name 'LiveSharpInject' could not be found (are you missing a using directive or an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1\BlankApp1\Properties\AssemblyInfo.cs(3,12): error CS0246: The type or namespace name 'XamlCompilationAttribute' could not be found (are you missing a using directive or an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1\BlankApp1\Properties\AssemblyInfo.cs(3,12): error CS0246: The type or namespace name 'XamlCompilation' could not be found (are you missing a using directive or an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0.NETStandard,Version=v2.0.AssemblyAttributes.cs(4,35): error CS0234: The type or namespace name 'Versioning' does not exist in the namespace 'System.Runtime' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0\BlankApp1.AssemblyInfo.cs(14,19): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'System' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0\BlankApp1.AssemblyInfo.cs(15,19): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'System' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0\BlankApp1.AssemblyInfo.cs(16,19): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'System' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0\BlankApp1.AssemblyInfo.cs(17,19): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'System' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0\BlankApp1.AssemblyInfo.cs(18,19): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'System' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0\BlankApp1.AssemblyInfo.cs(19,19): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'System' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1.vs\BlankApp1\v16\lut\0\i\BlankApp1\Debug\netstandard2.0\BlankApp1.AssemblyInfo.cs(20,19): error CS0234: The type or namespace name 'Reflection' does not exist in the namespace 'System' (are you missing an assembly reference?)
    [13:29:15.354 Verbose] - BuildManager - d:\temp\LiveSharBug2\BlankApp1\BlankApp1\LiveSharp.dashboard.cs(4,28): error CS0518: Predefi

    I can post a zip of the project, but basically create a Prism Forms app project and then add a xUnit test project that uses .Net5. In the default test, just add an assert.
    Mihhail Maslakov
    @ionoy
    @powerdude you can try going into the project directory and run dotnet restore there
    it usually helps with `project.assets.json' is missing problem
    Junior
    @Muhammad-Waleed-Hafeez
    image.png
    CSHTML5.Interop.ExecuteJavaScript("alert($0)", messageToDisplay);
    ....
    i'm trying to place JavaScript code directly inside my C# code but for some reason don't know what am i missing here.
    @using System.Reflection;
    using System.Xml.Linq;
    @using Microsoft.JSInterop
    ......
    i have included above packages but nothing changed in my error.
    Mihhail Maslakov
    @ionoy
    @Muhammad-Waleed-Hafeez this is a general Blazor issue, not a LiveSharp one
    David Ferguson
    @somecodeguy_twitter
    @ionoy Any word on when the next version is going to be released?
    ricibald
    @ricibald
    Hi, how can I use the [LiveSharpInject] pattern?
    I need to inject just classes in MyNamespace ending with "ViewModel" or "VM"
    Mihhail Maslakov
    @ionoy
    @somecodeguy_twitter I could publish a release today if testing goes well
    @ricibald something like [LiveSharpInject("MyApp.*ViewModel")
    you can also use a base type for that [LiveSharpInject(typeof(MyApp.ViewModelBase))]
    Mihhail Maslakov
    @ionoy
    @somecodeguy_twitter new release won't be published this week, sorry. I still have some stuff to clean up before upload.
    early next week is the current estimate
    David Ferguson
    @somecodeguy_twitter
    @ionoy Great!
    SparkyTD
    @SparkyTD
    Hi! Not sure if this is the right place, but I would like to report a bug in LiveSharp. I am working on an ASP.Net Core web app using .NET 5, and whenever an exception is thrown in a PageModel, it causes an InvalidProgramException ("The JIT compiler encountered invalid IL code or an internal limitation"). This makes it really difficult to debug exceptions in the program. I've uploaded a minimal demo project that demonstrates the problem here. This is what the exception is supposed to look like (no LiveSharp installed), and this is what I get instead (with LiveSharp). The stack traces seem to be the same, the only difference is the exception itself on the first line.
    I'm using JetBrains Rider and my OS is Linux.
    Alberto
    @3DSX
    Hi