AddFromTemplate Method Path Error 
Author Message
 AddFromTemplate Method Path Error

Quote:

> Hi All

> I am trying to programically create a new web application. It all seems
> pretty straight forward but I am seemly stuck on the AddFromTemplate
method.

> I created a new web application and named it projBuilderTemplate and
created
> it on "http://localhost/ProjBuilderTemplate/ProjBuilderTemplate.vbproj"

> I have tried buth the UNC and the URl to the project file and it fails
> either way. With the UNC way it says it is a web application and so the
URL
> should be used to the file. When I use the URL (I tried using
http://machine
> name/ as well) it says it can not find the file.

> Enclosed is my code:

> Dim soln As Solution()

> Dim proj As Project

> Dim msg As String

> soln = dte.solution

> soln.Create("c:\temp3", "MyNewSolution")

> Dim template As String

> template =

"http://localhost/ProjBuilderTemplate/ProjBuilderTemplate.vbproj"

- Show quoted text -

Quote:

> proj = soln.AddFromTemplate(template, "c:\temp3", "My New Project", True)

> soln.SaveAs("c:\temp3\newsolution.sln")

> msg = "Created new solution: " & soln.FullName & vbCrLf

> msg = msg & "Created new project: " & proj.Name

> MsgBox(msg)

> Any advice would be greatly appreciated.

> Best Regards,

> Keith



Tue, 26 Apr 2005 17:41:28 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. AddFromTemplate Method Path Error

2. Best method of determining path, relative path and/or flie name

3. Error 405(Method not allowed) error in using webclient.uploadfile method

4. Long Path Names give Runtime error 76 - Path not found

5. Public Method in a class calling a private method in same class yields ByRef error

6. Access97, Win95 Error 76 Path error 99

7. Error 75: File/Path Access Error

8. Path/File access error (Error 75)

9. Error 75: File/Path Access Error

10. Run Time Error -- Path/File Access Error

11. Error 75 (Path/File access error) ???

12. Anyone seen this error: File/Path access error.

 

 
Powered by phpBB® Forum Software