具有挑战性的问题,如何从一个页面删除NTLM身份验证?等待答案 [英] Challenging problem, How to remove NTLM authentication from one page ?Waiting for answers

查看:92
本文介绍了具有挑战性的问题,如何从一个页面删除NTLM身份验证?等待答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个包含10个以上页面的网站。这里有一页可以进行某种数据提取并创建pdf文件。这应该是每天午夜发生的。

我有在一页的pageload中编写代码(比如job.aspx)所以当我运行这个页面时,这个过程就会发生(即创建pdf)。

所以我在我的Windows调度程序中安排了一个工作来运行这个url(因此它将创建pdf)但问题是,当调度程序按作业打开此页面时,它将要求凭据,因为它在IIS中进行了NTLM身份验证。



所以我不希望这个页面检查身份验证,(其他页面应该这样做)



有什么想法吗?

I have created a website which contains more than 10 pages.Here one page will do some kind of extraction of data and create pdf files.This should happen on daily basis at midnight.
I have written the code in pageload of one page (say job.aspx) so when i run this page this process will happen(ie creating pdf).
So i scheduled one job in my windows scheduler to run this url(So that it will create pdf) But the problem here is when the scheduler open this page by job it will ask for credentials since its a NTLM authentication in IIS.

So i don't want this page to check for authentication, (other pages should do)

Any idea ?

推荐答案

您需要做的就是使用Web.config中的位置标记覆盖该文件的身份验证。



http://weblogs.asp.net/gurusarkar/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config [ ^ ]以帮助解释它。
All you need to do is use the location tag in Web.config to override the authentication for that one file.

There is a good article at http://weblogs.asp.net/gurusarkar/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config[^] to help explain it.


嗨。,



你应该不使用网页来安排任务。您可以使用Windows任务计划程序编写控制台应用程序和计划。







写一个Windows服务并将其安装在服务器中。



以上所有内容都支持创建pdf,更新db等...
Hi.,

You should not use webpage for scheduling tasks. You could write a console application and schedule using windows task scheduler.

or

Write a windows service and install it in the server.

All the above will support to create pdf, update db, etc...


这篇关于具有挑战性的问题,如何从一个页面删除NTLM身份验证?等待答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆