开发者

Removing dependency on IIS Windows Authentication from a Visual Studio ASP.NET project

I have Visual Studio 2008 installed on W开发者_如何学Goindows Vista Home Edition. I need to build and run an ASP.NET project that uses IIS Windows Authentication, which is not available on Vista Home. Now when I try to open the project in VS I get an error:

The Web Application project ... is configured to use IIS [...] you must install the following IIS components: Windows Authentication

Can I remove the dependency on the Windows Authentication component from the project somehow, so that I can at least open it in Visual Studio?


In web.config you'll see the line

<authentication mode="Windows"/>

Replace it with

<authentication mode="None"/>

Notepad should do the job. Of course depending on the actual code that checks identity in the application everything else may fall apart.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜