Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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)

??
Posted
Updated 23-Oct-14 20:44pm
v2

add anonymous access to your page in web config file like below
XML
<configuration>


    <location path="job.aspx">
        <system.web>
            <authorization>
                <allow users="*" />
            </authorization>
        </system.web>
    </location>
</configuration>
 
Share this answer
 
Comments
Am Gayathri 24-Oct-14 1:54am    
I tried this , it doesn't work.
Hi,

Putting this job into an ASPX page doesn't seem appropriate. If it was me I'd take the code from your ASP.Net page, put it into a command line application and then set the task scheduler to run the command line application instead.

But that said...

DamithSL is correct that you allow all users to access a page using the location and authorization elements in the web config.

But you probably need to look at the identity providers in the Authorisation section in IIS and enable anonymous access and impersonation for your project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900