开发者

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

开发者 https://www.devze.com 2023-01-31 14:04 出处:网络
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.

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

精彩评论

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