webbrowser class cookies doesn't work - asp.net

I'm developing an Asp.net MVC application, and in it I use webbrowser class to login to a website.
this works fine in local computer but when I publish my project in server, after navigating to website and trying to login to web site the webbrowser class navigates to cookie required page. I have a dedicated windows server 2012 R2, what should I do?

After one day battling we solved the problem by changing AppPool identity to administrator.

Related

asp.net iis8 app is not loading when using forms authentication

Am using forms authentication. When I tested the app using Visual studio, it all worked fine. But when I created a VD and application in IIS and tried to browse, it just hangs up and the browser is unresponsive. VERY URGENT, Please help
authorization deny users ="?"
Have you tried to browse your application using different browsers?
How did you configure the IIS Server? How's the settings of the Virtual Directory?
If the browser just hangs up when you try to load your application, there are several factors that we need to consider: IIS Server setup/settings, database, web browser, etc.

Asp .net 4 mvc 2 Form Authentication Failure

I am developing an asp.net 4 mvc 2 web application that is a subsite of the main one.
for example the main website is
www.example.com
and the website that I am working on it is going to be
voip.example.com
when a user is typing voip.example.com if the user is not authenticated yet ,my website redirects them to
accounts.example.com
where the login page is, and when they authenticate ,the main website create a cookie with name of
ExampleAuth
and a domain name of
.example.com
and expiration time is till 2015 and redirects to my website voip.example.com.
I am using AuthorizeAttribute form authentication on my website and when the AuthorizeCore method runs on my request that is redirected from main website the result of AuthorizeCore should be true.
On my PC with a win7 and IIS 7.5 it is working just fine but when I deploy it on a server that is windows server 2008 with IIS 7 or even in a windows server 2008 r2 with IIS 7.5 it seems that my web application couldnt access to the authentication cookie that is set by main website.
I think it is some kind of security configuration of IIS or windows server that cause this behaviour because I am using mvc's built in form authentication methods and everything nothing customized.
Recently I uploaded it on a server with windows Server 2008 r2 and IIS 7.5 and it worked but on my server with the same version of iis and windows it isnt working so I think it should be some kind of configuration or .... that cause this behavior.
does anyone know why this is happening ?
It seems there was a bug in asp.net mvc authentication and I solved it with installing
KB2656351 and KB963697 microsoft patches.

Integrate ASP .NET Application in Sharepoint Page Viewer with Basic Authentication

I would like to integrate my own ASP .NET Application into a Sharepoint site in a Page Viewer Web Part (via URL).
My Sharepoint is accessible via: http://subdomain.domain.com
My ASP .NET Application is accessible via: http://othersubdomain.domain.com
Sharepoint and the other application are hosted on different servers.
As the sharepoint and the application should be accesible from outside of my Domain (public via Internet) I use Basic Authentication for both.
Now when I open the Sharepoint site I have to enter my user credentials once and when I navigate to my Applicaiton within sharepoint I have to enter my user credentials for the ASP .NET Application a second time (same credentials, user from a Active directory domain).
Is there a possibility to integrate my application into sharepoint without the need to sign on twice and without the need to install my application on the sharepoint server?
Thank you!

Cannot login after I publish my asp.net web application in IIS 5.1 and 6

I've published my website and tried to host in my localsystem.Im getting the login page but cannot login to my application.When i click the submit button in the login page,the page simply refreshes and comesback.The page is not showing any error like 'invalid username or password' which i've set for not proper login
Im using visualstudio 2008 and iis 5.1. What could be cause of this error ??
Now i installed iis6,but still having the same problem ...........
If you're using the built in asp.net membership and roles you will have to set up new users and roles for the published website because the ones currently in your database will only be valid for the development application; they will have a different applicationId. You would normally do this is IIS but I've never used 5.1 so no idea how to on there.

Pass user credentials between SharePoint web application and ASP.NET web application

I need to integrate my sharepoint site and ASP.net site. So, First login will occur in the SharePoint site with Active Directory authentication and from there i need to traverse to ASP.Net site through a link. Now my question is whether its possible to pass my SharePoint Active Directory credentials to ASP.Net site? Will i be able to do this through a query string? Will i be able to navigate to and fro between SharePoint and ASP.Net sites.
The main point here is the user should not enter his credentials twice ( ie.. He should be authenticated automatically while navigating between two sites.)
What are the options available for me?
Do these things possible to achieve? SharePoint will be hosted using Windows SharePoint Services 3.0.
Thanks in advance,
ReplyQuote
Is the ASP.NET site on the same network? If so, then you can use AD (Windows Auth) for authentication on the ASP.NET site just like you're using it on the SharePoint site. You don't need to pass the credentials, and you can't anyway since all you have is an authenticated identity. If you configure the ASP.NET site to require Windows Authentication, you'll be able to get the user's identity from the server variables (AUTH_USER).
See How to: Use Windows Authentication in ASP.NET 2.0

Resources