I have an IIS7 server where I'm building an administrative portal. This portal is required to read and write files that exist on a Linux machine.
What do I need to do to make this happen? Do I simply need to create a virtual directory from IIS pointing to the Linux directory with a service account (application pool identity)?
Yes. Map a network drive to the linux machine and create a virtual dir pointing to the mapped drive. Make sure that proper permissions are set.
Related
I am making a web application in asp.net there i am making a directory in F drive through c# code. The code runs fine on my system and in IIS also but the problem is that when my partner using the same ip of my system the directory is not being created in his system i want who ever using the ip of my system the folder should be created and files should be save on that.In the second image my partner is running the application the files get save on my directory not on his system
check your local directory it will be save there not on the system using this ip address.
I have a Web Service running on IIS and I want to access a mapped network folder. How will I inform IIs for the mapping..
If I try to use the UNC path it outputs the error "current format not supported"...
Thank you
If you're running Windows Server 2008 or Window 7 you can try to create a link to the UNC path.
mklink /D D:\IISFolder \\servername\sharediisfolder
The server share can then access D:\IISFolder.
If you're on older windows servers use
net use
I am able to create Virtual Directory on local machine, but I want to create it on a remote machine.
Any Help will be appreciated.
Thanx
In IIS Manager you could connect a remote server and manage it locally.
Allow remote IIS manager to create virtual directories
https://forums.iis.net/p/1163088/1926748.aspx
Here are some similar cases for you to check about :
How to Create IIS Virtual Directories in Visual Studio
http://msdn.microsoft.com/en-us/library/d6cw6cfs.aspx
How to create a virtual directory on an existing Web site to a folder that resides on a remote computer
http://support.microsoft.com/kb/308150
I have used appcmd to create websites on my local computer. There doesn't appear to be a server parameter which means that i have to remote desktop on to each machine that i'm deploying to and run the appcmd command.
Also, can i use appcmd to deploy to IIS 6.0? If not, how do i deploy to remote IIS 6.0 web servers? I've tried the iisweb.vbs but i can't get it to run on my windows 7 computer because it can#t find the Microsoft.cmdlib. I have tired registering this file but it doesn't make a difference.
Using psexec.exe from sysinternals has worked for me to run appcmd on the IIS7 host from my administration host.
you can run a web service on the target machine, the web service should have the privileges
to add websites to the iis server (done by using System.DirectoryServices
After much searching of the internet i could not find an existing tool that needs to do what i need it to do. So in the end i had to create my own utility application that creates websites using WMI.
I wanted to run a .net application on a laptop. I created the application(aspx pages and SQL database) on a computer that has VS 08 installed. Now i wanted to run this application on a laptop that does not have SQL sever 2005 installed.
As far as the aspx pages if i publish them to a zip drive copy it to my laptop and go into IIS and define a new virtual directory to point where my pages are that should work RIGHT??
Now for the database i don't know what i need to do
any ideas???
Publish the web app to a folder on the laptop and create an IIS Virtual directory pointing to that folder.
As for the DB, install an express version of SQL Server (http://www.microsoft.com/express/Database/) and
point you web app at them.
Have you considered using SQL Server Compact Edition? This will allow you to move the db around with the application.
You need to install sql server on the client(laptop) so you can run the application properly
As far as the aspx pages if i publish
them to a zip drive copy it to my
laptop and go into IIS and define a
new virtual directory to point where
my pages are that should work RIGHT??
Yes this should work.
As for the database, you'll need to install it on the computer you are running IIS on and copy the schema and data over or (I would recommend this way) have your code connect to a server which has the database on it.
You need to install at a minimum SQL Server 2005 express edition. You may also need to change the connection settings for your application, which may be in your .config file(depending on how you did your conneciton in your application) and depending on whether the server instance and database name you choose are different from what you used on your development computer.