sharepoint2007

Hi,
I am trying to install server admin templates and followed instruction to run some command at stsadm command-line.
but I am having either "the system cannot find the file specified" or "not recognized for internal or external command, operable progrma or batch file".

What is the problem
can anyone tell me what to do, more than just telling to type some command line

Thanks


Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

Gary A. Bushey MVP

It would help if you could post the actual command line you are using as well where you are running it from (what folder)




Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

Dave Pyett

Have you copied the wsp file into %systemroot%\program files\common files\microsoft shared\web server extensions\12\bin If not, try copying it into there and run the stsadm command again.




Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

sharepoint2007


Hi,
This is what is like....Thanks



C:\>stsadm.exe -help
'stsadm.exe' is not recognized as an internal or external command,
operable program or batch file.


C:\>stsadm -o addsolution -filename <%PROGRAMFILES%\common files\microsoft share
d\web server extensions\12\bin>\applicationtemplatecore.wsp
The system cannot find the file specified.






Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

sharepoint2007

yes I copied as you advised but it still doesn't work and as you can see from the above reply, I copied my problem.

I hope to hear some good advice.
Thanks




Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

Dave Pyett

This is how I got mine to work (I had the same issues to start with)

Copy the ApplicationTemplate.wsp file into the bin folder shown in the above post.
Open up a command prompt and cd to the bin folder (so you run the command from within the bin folder)
Then run the command:
stsadm -o addsolution -filename ApplicationTemplate.wsp
Then:
stsadm -o deploysolution -filename ApplicationTemplate.wsp -allowgacdeployment
Then:
stsadm -o copyappbincontent

Let me know how you get on




Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

sharepoint2007

Thanks, it works!!!

i think it would be nice to add these red things at the end.

stsadm -o deploysolution -filename ApplicationTemplate.wsp -allowgacdeployment -immediate -force

anyway, i can see the site template so i could create but bummer...i got the below message..

sometimes..i wish sharepoint can work with one go....

Feature '75a0fea7-42e8-4527-8313-f63c4c49a7e6' is not installed in this farm, and can not be added to this scope.

Troubleshoot issues with Windows SharePoint Services.

can you also help me on this




Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

ykt

are you settle that problem already I also facing same problem like you.

Help





Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

Dave Pyett

75a0fea7-42e8-4527-8313-f63c4c49a7e6 points to the BugCategories List so you might want to start looking there




Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

sharepoint2007

Hi Ykt,

If you haven't had a chance to deal with this problem.
I will tell you my story.
After all, few days of headache, i realised that my "applicationTemplateCore" wasn't deployed properly. That is the pre-requisit before any other application deployment.
I deployed but I didn't see that there was error.
That is the reason why it comes with those wierd missing error message.

So, if you install "ApplicationTemplateCore" from insturction(http://www.microsoft.com/downloads/details.aspx FamilyId=C1039E13-94DA-4D7D-8CAE-3B96FA5A4045&displaylang=en)
then, you should be able to use all those template without any problem.




Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

Lemuel Paul

Hi,

This is Lemuel Paul here.

You can copy the following code as a batch file. Save the batch file in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN as"install.bat" (file name as u wish). Try executing the batch file. It will do what you would like to do. The .wsp file will deployed !!! I tried, it worked out for me. Then reset the IIS.

install.bat

------------

@ECHO OFF

SET /P INPUT="Please enter the name of the .wsp file you want to deploy: "

ECHO.

ECHO Starting deployment of %INPUT%

:CHOICE

SET /P CHOICE="Are you sure you want to continue (Y or N): "

if %CHOICE%==Y goto YES

if %CHOICE%==y goto YES

if %CHOICE%==N goto NO

if %CHOICE%==n goto NO

ECHO %CHOICE% is not recognized. Please re-enter your answer.

goto CHOICE

:YES

ECHO Adding the Solution.

stsadm -o addsolution -filename %INPUT%

ECHO Executing service jobs.

stsadm -o execadmsvcjobs

ECHO Deploying the Solution.

stsadm -o deploysolution -name %INPUT% -immediate -allowGacDeployment -allowCasPolicies

ECHO Final Execution processing.

stsadm -o copyappbincontent

stsadm -o execadmsvcjobs

GOTO END

:NO

EXIT

:END

ECHO All Done!

:MORE

SET /P MORE="Want to install another solution (Y or N): "

if %MORE%==Y goto START

if %MORE%==y goto START

if %MORE%==N goto NO

if %MORE%==n goto NO

ECHO %CHOICE% is not recognized. Please re-enter your answer.

goto MORE

Thanks,

Lemuel Paul.

lemuel.paul@gmail.com






Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

DanP

I was getting the same error. I couldn't create the site, but it still reserved the URL. In other words, if I look at all site content, I can see the subsite I attempted to create, but clicking the link gives me an error because it never actually got created.

Any idea how I can delete these "orphaned" URLs





Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

sdeswart

The way I have been removing the 'orphaned' URLs is via Site Settings > Site Content and Structure. Navigate to the parent site to the 'orphan' and then put a check box next to the 'orphan' and use 'Actions' to delete the site.

Hope that helps!

The real reason I'm posing here though is I am having a similar issue in getting my templates to work. Here is what I have done.

1. Added C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN to my PATH.

2. Copied the file ApplicationTemplateCore.wsp to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN

3. While logged into the MOSS server as the SharePoint Administrator ran the following commands:

stsadm -o addsolution -filename ApplicationTemplateCore.wsp

stsadm -o deploysolution -name ApplicationTemplateCore.wsp -allowgacdeployment -immediate

4. Migrated to SharePoint Central Administration > Operations > Solution Management

5. I see the following Solution Properties:

Name: applicationtemplatecore.wsp
Type: Core Solution
Contains Web Application Resource: No
Contains Global Assembly: Yes
Contains Code Access Security Policy: No
Deployment Server Type: Front-end Web server
Deployment Status: Deploying
Deployed To: None

Now, the problem. It stayed on Deployment Status: Deploying for 3 hours!

I have verified that the Windows SharePoint Services Administration Service is started.

I have tried stopping the deployment via the following commands:

stsadm -o enumdeployments (to find the ID in format xxxxxx-xxx-xxx-xxxxxxxxxx)
stsadm -o canceldeployment -id xxxxxx-xxx-xxx-xxxxxxxxx

After stopping the deployment I removed the Application Template via the following command:

stsadm -o deletesolution -name applicationtemplatecore.wsp

I tried installing it again, using the same steps as above, but have had the same results each time, the Deployment Status sits on Deploying and does not ever seem to deploy!

I think I have been pretty complete in what I have done, and sure do hope there is somebody who knows what may be wrong with my deployment. I would love to be able to use these templates, but can't seem to get past this Application Template issue.

Thanks,

Steve





Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

sdrandr

Steve -

I had same issue. It was the -immediate parameter in my deploysolution statement. I had to canceldeployment then deploysolution using the -local statement.

That worked. I got the fix from http://nemesisv.blogspot.com/2007_03_01_archive.html

It's a weird site but had the fix for me.





Re: SharePoint - General Question and Answers and Discussion MOSS 2007-server admin templates stsadm command

dmacleo

after 2 hours messing around this install.bat files saved me.

thank you

Lemuel Paul wrote:

Hi,

This is Lemuel Paul here.

You can copy the following code as a batch file. Save the batch file in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN as"install.bat" (file name as u wish). Try executing the batch file. It will do what you would like to do. The .wsp file will deployed !!! I tried, it worked out for me. Then reset the IIS.

install.bat

------------

@ECHO OFF

SET /P INPUT="Please enter the name of the .wsp file you want to deploy: "

ECHO.

ECHO Starting deployment of %INPUT%

:CHOICE

SET /P CHOICE="Are you sure you want to continue (Y or N): "

if %CHOICE%==Y goto YES

if %CHOICE%==y goto YES

if %CHOICE%==N goto NO

if %CHOICE%==n goto NO

ECHO %CHOICE% is not recognized. Please re-enter your answer.

goto CHOICE

:YES

ECHO Adding the Solution.

stsadm -o addsolution -filename %INPUT%

ECHO Executing service jobs.

stsadm -o execadmsvcjobs

ECHO Deploying the Solution.

stsadm -o deploysolution -name %INPUT% -immediate -allowGacDeployment -allowCasPolicies

ECHO Final Execution processing.

stsadm -o copyappbincontent

stsadm -o execadmsvcjobs

GOTO END

:NO

EXIT

:END

ECHO All Done!

:MORE

SET /P MORE="Want to install another solution (Y or N): "

if %MORE%==Y goto START

if %MORE%==y goto START

if %MORE%==N goto NO

if %MORE%==n goto NO

ECHO %CHOICE% is not recognized. Please re-enter your answer.

goto MORE

Thanks,

Lemuel Paul.

lemuel.paul@gmail.com