Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Access denied creating a content database from webpart event

$
0
0

Hi!

I have a webpart where must be possible to create a content database on a button click event.

I run the code inside a RunWithPrivilegies block and the App pool user account is configured to create databases in SQL Server. If I execute the code in a console application the database is successfully created, but if I run it through the webpart an "access denied" exception is resulted (it is the same code).

Any tips for what must be going wrong?

Thanks


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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