Home

Use .NET dll from Sharepoint Site Pages

%3CLINGO-SUB%20id%3D%22lingo-sub-797460%22%20slang%3D%22en-US%22%3EUse%20.NET%20dll%20from%20Sharepoint%20Site%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797460%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20currently%20in%20an%20internship%20and%20I'm%20not%20a%20big%20SharePoint%20connoisseur.%3C%2FP%3E%3CP%3EMy%20mission%20is%20as%20follow%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F126392i47B2FC2A029F08C6%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20to%20read%20a%20.NET%20dll%20using%20a%20C%23%20script%20on%20a%20Microsoft%20cloud%20server%20(ideally%20SharePoint)%2C%20then%2C%20a%20web%20page%20allows%20the%20user%20to%20use%20this%20dll's%20functions.%20(In%20this%20case%2C%20the%20dll%20generates%20codes%20from%20inputs).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20use%20SharePoint%20Site's%20pages%20as%20interface%20with%20the%20user%20but%20can%20I%20do%20all%20of%20this%20using%20only%20SharePoint%20(storage%2C%20C%23%20scripting)%20%3F%3CBR%20%2F%3EOr%20maybe%2C%20is%20there%20any%20other%20solution%20to%20do%20that%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20your%20feedback%20!%3CBR%20%2F%3ECordially%2C%3CBR%20%2F%3EVivaz%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-797460%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-804118%22%20slang%3D%22en-US%22%3ERe%3A%20Use%20.NET%20dll%20from%20Sharepoint%20Site%20Pages%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-804118%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F389849%22%20target%3D%22_blank%22%3E%40Vivaz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20few%20things%20here%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3ERunning%20C%23%20on%20%22A%20Microsoft%20cloud%20server%22%20ideally%20SharePoint.%3COL%3E%3CLI%3ESharePoint%20in%20the%20Cloud%20(SharePoint%20Online)%20will%20not%20allow%20you%20to%20deploy%20C%23%20code%20to%20it%20directly.%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3CLI%3EWhy%20SharePoint%3F%20Are%20there%20any%20technical%20or%20business%20reasons%20to%20do%20this%20in%20SharePoint%3F%20Is%20this%20an%20app%20that%20will%20be%20consumed%20by%20users%20on%20an%20intranet%20page%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3EHere's%20what%20I%20recommend%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECreate%20a%20standalone%20web%20application%20in%20Azure%20that%20can%20have%20whatever%20back%20end%20you%20want%20to%20communicate%20with%20your%20DLL%2C%20and%20whatever%20front-end%20you%20want%20to%20communicate%20with%20your%20users.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20could%20implement%20your%20own%20back-end%20with%20(for%20example)%20an%20Azure%20Function%20and%20Azure%20API%20Management%20and%20then%20plug%20whatever%20front-end%20you%20want%20into%20it%20-%20be%20it%20a%20standalone%20web%20page%20or%20a%20SharePoint%20full-page%20SPFx%20web%20part.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegardless%2C%20you're%20not%20going%20to%20be%20deploying%20C%23%20to%20a%20SharePoint%20Online%20(cloud)%20environment%20-%20you'll%20need%20to%20deploy%20that%20elsewhere%20such%20as%20Azure%20and%20implement%20front-ends%20depending%20on%20your%20application%20design.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Deleted
Not applicable

Hi !

 

I'm currently in an internship and I'm not a big SharePoint connoisseur.

My mission is as follow:

clipboard_image_0.png

I have to read a .NET dll using a C# script on a Microsoft cloud server (ideally SharePoint), then, a web page allows the user to use this dll's functions. (In this case, the dll generates codes from inputs).

 

I can use SharePoint Site's pages as interface with the user but can I do all of this using only SharePoint (storage, C# scripting) ?
Or maybe, is there any other solution to do that ?

 

Thank you in advance for your feedback !
Cordially,
Vivaz

1 Reply

@Deleted 

 

A few things here:

 

  1. Running C# on "A Microsoft cloud server" ideally SharePoint.
    1. SharePoint in the Cloud (SharePoint Online) will not allow you to deploy C# code to it directly.
  2. Why SharePoint? Are there any technical or business reasons to do this in SharePoint? Is this an app that will be consumed by users on an intranet page?

Here's what I recommend:

 

Create a standalone web application in Azure that can have whatever back end you want to communicate with your DLL, and whatever front-end you want to communicate with your users.

 

You could implement your own back-end with (for example) an Azure Function and Azure API Management and then plug whatever front-end you want into it - be it a standalone web page or a SharePoint full-page SPFx web part.

 

Regardless, you're not going to be deploying C# to a SharePoint Online (cloud) environment - you'll need to deploy that elsewhere such as Azure and implement front-ends depending on your application design.

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies