Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2007

Tip: Looking for answers? Try searching our database.

VS 2005 post Build event problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve B. - 31 May 2007 14:30 GMT
Hi,

I'm working on Windows 2003 Server SP2 X64 edition to create SharePoint
extentions.

After each rebuild, I have to recycle app pool that use the extention I've
build, that's why I wanted to add the following line in post build events :

"%windir%\system32\cscript.exe" "%windir%\system32\iisapp.vbs" /a "My SP app
pool" /r

This command line is working perfectly when I open it in a cmd window, but
in VS, I get an error (in the output pane):

"Microsoft (R) Windows Script Host Version 5.6

Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Input Error: Can not find script file "c:\windows\system32\iisapp.vbs".

What is wrong ?

Thanks,

Steve
Andrew McDonald - 31 May 2007 22:18 GMT
> Hi,
>
[quoted text clipped - 17 lines]
>
> What is wrong ?

I've no idea about the Windows Script Host, but perhaps it's interpreting
the quote marks as part of the filename. What happens if you remove them
from %windir%\system32\iisapp.vbs?

--
Andy
Steve B. - 01 Jun 2007 08:16 GMT
I tried but that does not change...

Steve

>> Hi,
>>
[quoted text clipped - 25 lines]
> --
> Andy
Ashot Geodakov - 02 Jun 2007 03:14 GMT
Perhaps Visual Studio can not translate the environment variables that you
specify between %%s.

Try instead just hardcode these paths like:
C:\Windows\system32\cscript.exe C:\Windows\System32\system32\iisapp.vbs /a
"My SP app pool" /r

> Hi,
>
[quoted text clipped - 21 lines]
>
> Steve
Steve B. - 04 Jun 2007 07:52 GMT
As you can see in my first post, the error message says that the file
c:\windows\system32\iisapp.vbs cannot be found.
So I suppose the env variable are correctly expanded.

I also tried with the full hardcoded path (in case my hypothesis was not
correct), but I got the same error.

Thanks,
Steve

> Perhaps Visual Studio can not translate the environment variables that you
> specify between %%s.
[quoted text clipped - 29 lines]
>>
>> Steve
Ashot Geodakov - 04 Jun 2007 08:05 GMT
Sorry I misread your first post.

As an option, could you create a .BAT file with that command and call that
.BAT from VS?

> As you can see in my first post, the error message says that the file
> c:\windows\system32\iisapp.vbs cannot be found.
[quoted text clipped - 39 lines]
>>>
>>> Steve
Steve B. - 05 Jun 2007 08:53 GMT
I also tried, with the same result...

> Sorry I misread your first post.
>
[quoted text clipped - 44 lines]
>>>>
>>>> Steve

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.