Anil Kumar
Anil Kumar

Reputation: 11

Installing Sensenet on Local Host

I had installed sensenet using nuget package manager and visual studio and able to run sensenet using visual studio. But when i tried using IIS and same packages, error is coming. i didnt find any installation guide to run on IIS local host.

I had installed all the modules (Web pages, Work space using visual studio)

Error details

Upvotes: 0

Views: 165

Answers (2)

VargaJoe
VargaJoe

Reputation: 175

I've usually got this error when I'd forgot to set the pool user. Application pool user must be an owner of the sensenet database. On local environment maybe the quickest way to set the windows user to the pool. It's a good enough way for development purposes.

For multi-user environment consider to create a technical user in windows and set it on both the pool and for the db. For example if "the user" IIS: Application Pools / "the pool" / Advanced Settings / Process Model / Identity / set "the user" Management Studio: DB Server / Security / Logins / "the user" / Properties / User Mapping / "the database" / check db_owner

Upvotes: 1

user2125323
user2125323

Reputation: 11

I was also trying this just today and faced exactly this issue.

It seems you have installed Sensenet.Services DB with integrated authentication. In that case when you host the Site on IIS, it does not have access to logged in user. It works under AppPool identity user context.

As I see you have 2 quick options.

Configure the AppPool to run under a windows account which has access to DB or Make necessary changes to connectionstrings to access db with DB account (Username/Password instead of integrated security)

I hope someone who knows about sensenet more than me can answer if there is a easy way to do that.

I am stuck on the next step. For me, it starts but when browsing to default site, it throws a 404. Whereas, just like you, everything works fine when running using IIS Express in Visual Studio. I really hope someone can guide us through this. Otherwise my next option is to try LogicalDoc or Nuxeo :(.

I really want to give Sensenet a try. It looks very promising.

Upvotes: 1

Related Questions