开发者

Intellisense stops working in aspx files when identity impersonate is set

开发者 https://www.devze.com 2023-01-24 05:14 出处:网络
This one has me stumped. I have an MVC 2.0 environment in a S#arp layout, everything works great, and I have Intellisense working in my aspx file (for things like HTML helpers and Model properties)

This one has me stumped.

I have an MVC 2.0 environment in a S#arp layout, everything works great, and I have Intellisense working in my aspx file (for things like HTML helpers and Model properties)

As soon as I add the line:

<identity impersonate="true" u开发者_如何学运维serName="xyz" password="abc" />

To my web.config, I lose Intellisense on my aspx files!

Does anyone have any idea of why this is happening? Or have any experience with this?


Ok, finally figured this out.

It looks like the impersonated user needs write access to a folder within the S#arp folder structure. I still don't know which since I assumed \bin and that didn't work.

So, give the impersonated user read/write access to your project folder and intellisense is back!

0

精彩评论

暂无评论...
验证码 换一张
取 消