I have a webpage , that allows users to create account, login, forgot password.I also create a windows application. I want to connect this app with database that is hosted on web. how can i do this ? i need only database
Publish your website as a Web Service and access that web service in your windows application.
Have a look at this link to create webservices.
Related
I installed a MVC 5 web application on a cloud hosted server. It uses Windows authentication. The company itself uses a different domain than the servers in the cloud use.
For example. The company uses xycom as domain and the cloud computers use xycloudcom as domain.
The xycloudcom servers have access to the AD controller of the xycom domain.
Now I installed an application on the cloud server. It has only Windows Authentication enabled and all works fine when accessing from a computer and account in xycom domain.
The only issue is that I am not able to open the website from the server itself. It opens a dialog asking me for my credentials. If I enter them (my xycom account) I get a 401 Unauthorized.
If I enable Anonymous authentication I can open the web site. So it's not a DNS issue.
Can someone help to solve this issue since I need to trigger an action by a console application in ScheduledTasks using a web request.
Server is Windows 2012 R2.
You will not be able to open the site from the server, if that server is not on the same domain.
The integrated windows authentication would work only if there is a trust between your Cloud VM's domain and the xycom comain.
Hope this helps.
I have created a self-hosted ASP.NET Web API service (using OWIN) that I am running as a Windows service. I want the user to have the option of using Windows authenticated users in SQL Server and I would like the browser/user-agent accessing the (REST API) web service to pass through the NTLM user info so that they get Windows authenticated access to the SQL Server database.
Is there a standard way of doing this?
Thanks.
I want crate application in which i want to have azure remote app .
let us consider the below scenario:
I have implemented the Designer application (report designer) in WPF. now i creating the website,user of this website need to design the report using the report designer application and host in my website. I planed to host my application in azure remote app using this remote app inside my remote application
Is this possible to do that ? if not how can i achieve that my client need both report designer interface and my web application?
Azure RemoteApp clients do not have an API today that allows you to input parameters (i.e.: username, password) and also there is no HTML5 client that you could embed in your website. So, I believe it is not possible to do that right now.
/cd
I have an MVC application that will be running on an IIS 7.5 Server in an application pool running under a service account.
In my application I make a connection to a TFS server, this connection needs to be made by the service account.
My application enforces windows authentication, this is so I can gather usage data about which users use the application. I do this through a custom Action Filter in MVC to collect the username like this: HttpContext.User.Identity.Name
How is it possible for me to impersonate the service account, yet be able to keep the windows username of the original user? I can successfully connect to my TFS server if I use anonymous authentication, while running the application pool under the service account.
Let me know if you need more information.
I am trying to connect to an AX-based web service through ASP.Net and C# but, when I publish my application, querying the web service results in "System.ServiceModel.FaultException: You cannot log on to Microsoft Dynamics AX." However, when I connect to the same web service through a C# console application, the querying works fine. I have copied the code from the console application into the ASP.Net application so that I have ensured that I have done nothing different.
I cannot figure out what the problem could be. I'm sure it's simple but I am at a loss. Any help?
This should be a permissions problem. When you launch the console app it executes through the current user (you, probably you have permissions to connect). When the asp.net site connects it uses an IIS user that needs to have permissions on AX too.