Ahmed Adly Ali

hi all,

i'm developing custom web part and i need to register it as a safe control

but i can't find any folder within this path: c:\Inetpub\wwwroot\wss\VirtualDirectories represents my site or site collection

i mean that this path : C:\Inetpub\wwwroot\wss\VirtualDirectories contains just 2 folder named : 80 and 32859 and the 80 is used for the default site adn the other for the central administration site,

can any body help me to fine where to register and deploy my assemply

regards



Re: SharePoint - Development and Programming can't find my site virtual directory

Ahmed Adly Ali

does this happen because im working with the default web application .. so i will need to create a new web application from the central administration site then create my site collection under it





Re: SharePoint - Development and Programming can't find my site virtual directory

chinmayv84

and on which port your SSP is running

by default on port 80 'my site' is hosted so web.config of port 80 can be used.

To get information about port on which mysite is hosted,

Click on shared services under Shared services administration on central Admin page. (by default name of default shared service is SharedService1)

On SSP admin page click on My Site Settings under User Profiles and My Sites.

Now check port number under Personal site provider .

~ChinmayV






Re: SharePoint - Development and Programming can't find my site virtual directory

oleh.vmr

you can register it by adding to GAC, for this you must give you webpart strong name in Visual St2005 and then simple copy it to C:\WINDOWS\assembly






Re: SharePoint - Development and Programming can't find my site virtual directory

Jack Burnish

If you are working within the first created website on Sharepoint, then the virtual directory registered as '80' is your virtual directory.

Within that virtual directory, you are looking for two things.

1. The 'Bin' folder to publish your dll to. If there isn't one, its okay to create one.

2. The web.config file

Open the web.config file

Within it, you will see a lot of assemblies already registered as 'safe'

copy one, paste it to a new line within the same block

rename it to match what your assembly is named.

save.

Open your site. go to site settings. go to web part gallery. Click New. Your webpart should show up there.

Check the box next to it and click 'Populate gallery'

go back to the page you want it on.

Edit page

Add new webpart

Note - If you did not use 'Strong Naming' then you do not need the token the web.config file requests. If you did, there are tutorials on the primary sharepoint development page for retrieving the token.

There is also a good webcast on developing webparts for sharepoint that goes through this process step by step.

http://msdn2.microsoft.com/en-us/sharepoint/aa905692.aspx

Good luck.






Re: SharePoint - Development and Programming can't find my site virtual directory

Ahmed Adly Ali

is the ssp managemen feature available for wss3 as im working on wss not moss

and if it's not available should i create a new web application from the central administration

thx alot





Re: SharePoint - Development and Programming can't find my site virtual directory

Jack Burnish

If you are talking about Self Service Web Page creation. Yes, its available through Central Administration as a setting to be turned on.

However, even without Self Service turned on, you can still click on 'Site Settings' then 'Create' to create any sub sites that you need. (Permissions needed - Site Owner)

If you need a new top level website, then I'd recommend creating it from Central Administration.

If you are talking about something else, I don't have a clue, as my experience is with WSS 3.0, not MOSS.






Re: SharePoint - Development and Programming can't find my site virtual directory

Ahmed Adly Ali

the problem that i need to create my site with a seperate web.config and iis app so that i can deploy my custom web parts into it.. so the question is, do i need to create a seperate web application with a seperate port from the central administration or there is another way

thx





Re: SharePoint - Development and Programming can't find my site virtual directory

Jack Burnish

Sorry bout the late response, its been hectic.

If you create a new top level web application just for webparts, you'll still need to import those webparts into the other site.

If you need a top level Sharepoint website you can either.

1. Use Central Administration to create and provision the site

or

2. Use the STSADM.EXE command line tool to create and provision the top level site yourself.

or

3. Sharepoint Designer 2007 I think will also provision top level sites for you.

Yes, you will need to specify a different port for the new top level site






Re: SharePoint - Development and Programming can't find my site virtual directory

Ahmed Adly Ali

thx jack for your response, but will these 3 options allow me to create a seperate folder for my site ( for web part deployment ) and other stuff

thx alot





Re: SharePoint - Development and Programming can't find my site virtual directory

Jack Burnish

Yes. If you are creating a testbed area to practice with, just create a new top-level application through the central administrator.

The default location for your playground will end up being c:\inetpub\wwwroot\(Port Number Assigned)\blah blah blah

You can then deploy the webpart to JUST that site instead of a Farm level so you can test and break it without all your users watching their screens bounce all over the place.

Personally, I just have a subsite that I use off of my primary site for testing purposes. Either way works.






Re: SharePoint - Development and Programming can't find my site virtual directory

Ahmed Adly Ali

thx alot jack, that exactly what i needed to know