All,
I am trying to add some .net applications I wrote to a virtual directory
underneath the sharepoint services web site. I am having some problems and
wondering if a) this is possible and/or recommended and b) if there is
another way. I want to add the projects under the sharepoint site as I want
authentication but do not want my users to have to login everytime they
access a net app from within the sharepoint site. Ideally, they login to
sharepoint. Then they click on a link which takes them to the .net project.
The .net project grabs the login information of the user to display custom
content. Since the virtual directory is underneath sharepoint, I only have
to set the integrated authentication (and no anonymous) setting in Internet
Services Manager for the sharepoint site and not the virtual directories,
right? Anyways, on to the problem:
The server is a clean install of Windows Server 2003 with WSS installed.
The server is also running SQL 2000 sp3a for storing the sharepoint data. In
internet information services, the sharepoint site is the default web site.
I added a virtual directory named "netapps" in the default web site and its
data comes from e:\netapps where e is a local drive. I went into Sharepoint
Central Administration, clicked on configure virtual server settings, clicked
on default, clicked on define managed paths and added netapps as an excluded
path. On my PC (windows XP), I am able to browse http://myserver/netapps and
it does bring up a default page rather than sharepoint - so that is good.
Now, on my machine with Visual Studio 2003, I have set it to work with File
Share (in Tools, Options, Projects, Web Settings). I go to create a new
project (asp.net web application) and put in
http://myserver/netapps/allotments as the location where allotments is one of
many netapps I want to create. (and I have created a folder
e:\netapps\allotments).
The get back an error that the project folder at
http://myserver/netapps/allotments cannot be opened with the path
\\myserver\wwwroot$\netapps\allotments. So, I retry with a new path
(removing the wwwroot$) from the location. I should also note that the
netapps folder is shared and I can reach it from within windows explorer and
see all contents.
When I click OK, it tells me that the web was created successfully but an
error occurred when trying to configure the application root. When I click
ok on this error, it complains that it is unable to set permissions on the
bin folder. I end up with a project that I don't think is correct or is it?
Do I now need to do other configuration changes?
I have looked everywhere for solutions and the closest I can come is that
the frontpage extensions may not be configured properly. But, since this is
a virtual directory underneath sharepoint, you cannot configure the frontpage
extensions. They are loaded on the windows 2003 server but I only added them
recently as another way to try and get this working. From what I understand,
I should not need them since Sharepoint handles frontpage integration,
correct?
Any ideas would be greatly appreciated. Both the server and client are
running asp.net 1.1 I can take an existing .net app and literally copy the
contents over to the new server and it works. But, I really want to develop
off the new one.
On a related note, is there an easy way to make a copy of an existing .net
web app and change it without affecting the original? If you change anything
on a copy on the new server, it affects the original code on the existing
server...
Thanks,
Ken Wigle