Tag Info

New answers tagged


You can try running the code in elevated mode. Also make sure the web application app pool account has Write Permission on the directory where the file is being created. SPSecurity.RunWithElevatedPrivileges(delegate() { //Your code goes here });


There are two ALIAS which can be configured - for 32 and 64 bit. Make sure you have both and try again.


If you didn't had a page already existing with name = "WelcomeNew", then people will try to access site and get Page Not Found error. An Ideal SharePoint approach is a follows Create an External Content Type (ECT) and use this to connect to you SQL Server In ECT you can define methods which you want to act on the backend (Ex: SQL Table) Read All Items ...


The best practice will be creating a webservice layer to pull the SQL data based and expose via REST API or JSON formats that are compatable with javascript. Then consume or manipulate the data via javascript. In this way you can handle all your security related aspects and SQL related queries with in the web service layer.

Top 50 recent answers are included