ASP.NET CORE MVC Can't Configure Manage Files in Azure Cloud Storage

Posted by: thanhthuyeths on 6 April 2023, 6:59 pm EST

  • Posted 6 April 2023, 6:59 pm EST

    I’m looking to use the FileManager control for an ASP.NET core MVC project. I am following the instructions in the link below:

    https://www.grapecity.com/componentone/docs/webapi/online-webapicore/configureazureservice.html

    In step add library: (C1.Web.Api.dll, C1.Web.Api.Cloud.dll) it gives an error below so it cannot add StorageProvider [app.UseStorageProviders().AddAzureStorage(“Azure”, “AzureStorageConnectionString”)]

    Package ‘C1.Web.Api.ja 4.8.20222.320’ was restored using ‘.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4 .7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1’ instead of the project target framework ‘net6.0’. This package may not be fully compatible with your project.

    Are there any detailed instructions or samples for configuring Azure Web API Service? Please help me

  • Posted 9 April 2023, 5:37 pm EST

    Hello Team,

    Can Anyone Solve This.

  • Posted 11 April 2023, 9:41 am EST

    Hi,

    The DLLS you are using is for Asp.Net MVC WebApi. Please refer to work with Asp.Net Core MVC WebAPIs.

    https://www.grapecity.com/componentone/docs/webapi/online-webapicore/using-vs-template.html

    Please also refer to the following documentation for configuring the cloud service:

    https://www.grapecity.com/componentone/docs/webapi/online-webapicore/cloud-services.html

    Hope it helps!

    Regards,

    Manish Gupta

  • Posted 12 April 2023, 3:21 pm EST - Updated 12 April 2023, 3:28 pm EST

    Hi,

    Thanks for sharing the documentation.

    I am having problems about Configure Azure Web API Service: I have installed the dlls (C1.AspNetCore.Api.dll, C1.AspNetCore.Api.Cloud.dll, WindowsAzure.Storage.dll) according to the documentation below but I don’t see the function app.UseStorageProviders().AddAzureStorage(), do I need to install any more libraries?

    Link Refer: https://www.grapecity.com/componentone/docs/webapi/online-webapi/configureazureservice.html

    Please help me

  • Posted 12 April 2023, 3:38 pm EST - Updated 12 April 2023, 3:50 pm EST

    Hi,

    I am also having another problem when using Manage Files in Local Storage: In the Service WebAPI section got the data as shown below:

    But when displaying the Manage Files control, it does not display the list of folders and files, I have tried two ways like the code below but it doesn’t work? Please help me

    <c1-file-manager id="FileManager" host-url="https://localhost:7157" init-path="MyFiles/Files" cloud-type="LocalStorage">
    </c1-file-manager>

    <c1-file-manager id="manager2" host-url="@Url.Content("https://localhost:7157")" cloud-	 
        type="LocalStorage" container-name="Files" root-folder="MyFiles" style="width:100%;"></c1-file-manager>

  • Posted 16 April 2023, 4:44 am EST

    Hi,

    We are sorry for the inconvenience, there seems an issue with the AzureStorage. We have forwarded this to the concerned team for further investigation with the internal tracking id C1Web-29412.

    Regarding the local file explorer:

    Please use the following code snippet:

    <c1-file-manager id="manager1" host-url="https://localhost:7198" cloud-type="LocalStorage" root-folder="MyFiles">
    </c1-file-manager> 

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels