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
Related
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.
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
How do I setup the project on the network instead of localhost? I want to setup a Remote Site, I think is the lingo
Go into visual studio
File, open website and put the website name in the box and a password to open the source.
Create a unique url name like myWebApp.mycompany.com
When I create a new website application in visual studio. When I am ready to debug Visual Studio sets all this up for me and it runs on local host automatically.
I guess in my scenario I gotta set it up manually. How do I accomplish this?
I created a new virtual directory, went through the permissions wizard and keep getting this error:
Failed to access IIS metabase.
If you are trying to deploy somewhere you can access via a windows share, it is often easier to just deploy to disk by publishing to the file system and setup the IIS bits manually. In that case, you'll need the name of the server and a share to push to.
Setting the url will be configured in IIS where you host the web app. When you are debugging in visual studio it is running a copy of the web app locally so you can test it. You shouldn't be trying to host the web app within the visual studio debugger.
To configure this you will need to set the host header for the website to myWebApp.mycompany.com. This will tell IIS that incoming requests with this domain map to this website.
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.