This is a 2 part question
Q1. In codebehind, I have the following to get the Active Directory ID.
HttpContext.Current.User.Identity.Name
When using VS Dev Server, it gives the correct AD ID. But when using Local IIS Server, it returns an empty string. Why? How can I get the AD ID using Local IIS Web server?
Q2. In codebehind, I have an executable (e.g. abc.exe) which I am executing using System Diagnostic Process. This exe file is stored in project's bin folder.
When using Local IIS Web server, it executes fine. However when using VS Dev Server, it goes into catch complaining it cant find the exe file. Why?
Thank you.
Related
I am developing a .NET (not core) WEB API.
When I run it on mode debug in Visual Studio, and try to call the GET method of my API via Browser or Postman, it works fine!
But I am trying to publish it on my local IIS.
I published it via Visual Studio on a local folder. Created a website on IIS and made it point to the local folder.
When I try to open it on Browser, it just lists the files that are in the local folder. It doesnt execute my webAPI correctly.
Any insight on that?
I am stuck while deploying my windows application (C#) in Visual Studio 2008. I am using setup wizard project to create the msi/exe file. This setup files I need to copy to the UAT server, run the setup and then use the application.
The main issue here is, I have created this application on my local machine and then installing it on UAT by taking remote of UAT server. This works properly. But when my colleague is running same application from his local machine by taking remote of UAT server, the application crashes.
Since the application working with my login, there seems to be no problem with the code.We are using our own windows login credentials for taking remote of UAT server.
Below is the error screenshot:
Please suggest what can be the possible reasons for the same application crashing with other user's id.
Thanks in advance.
0xe053534f is a StackOverflowException. You need to check if your setup script logic is resulting in any such stack overflow
I have a line of code like this:
File.Copy(#"\\192.168.1.40\folder1\1.txt", Server.MapPath("/folder1/") + "1.txt", true );
This code works when I run my project in Visual Studio (IIS Express), but when I publish it on web server (it's in local network i.e. 192.168.1.20), it throws an exception that says access denied.
I checked permissions, nothing seems wrong.
I connected to the web server with Remote Desktop and I copied the file in Explorer without problem.
I gave the Everyone all permissions in 192.168.1.40.
I searched a lot, almost all of them leads to impersonation, but why it's work on local IIS Express and not on main IIS server?
Visual Studio 20008 is installed on a different computer running from Citrix (possibly in a different subnet) which I can access.
I installed IIS V6 on my local machine (Windows 7 Pro). When I create a asp.net c# website in VS2008 it doesn't appear under my wwwroot nor does it host the webpage when run.
I get an: Server Error in '/' Application, HTTP 404 error, resource cannot be found.
In the past both have been on the same computer.
Does VS2008 and IIS V6 have to be on the same computer to host a website project?
Your help is greatly appreciated!
VS uses localhost to debug and run.
I'm not sure if you can change this in VS. As far the application goes to run under IIS on another computer it would have to have the files on the other computer.
May I suggest placing your project on the other computer and using ftp to update files and you would not have to use the VS Debug option, But any class files would require you to publish via FTP the whole site.
I created a website I need to deploy on a different server. We only have teamviewer to access this server.
With just being able to copy the files over to the server, how would I go about getting it running?
Publish site on local machine and upload the published folder on remote machine using filezilla. IIS has c:\inetpub\wwwroot as default website published folder. You may also see this