Infinity
Infinity

Reputation: 1325

c# .net - Question about multiple Projects under same solution in Visual Studio 2010

I have project 1 and Project 2. If using File Upload feature in some Project1's code file I want to save the uploaded files in Project 2's folder. What should be the save path?? Like I gave the physical address as D://Project2/images/products/

but it says, I cant give physical path and that only virtual path will be accepted. What should be my saving path?

Please help me out. Thanks.

@Peyman how exactly wil I refer to this folder in my c# code?

@ Peyman I tried your solution..its creating the Upload folder in c:/inetpub or something and giving this error when I am running upload code "C:\inetpub\wwwroot\Upload\images\products\Product1\"

Upvotes: 0

Views: 764

Answers (1)

Peyman
Peyman

Reputation: 3136

You can create virtual folder in your IIS and point to the specific folder in second project. then when you want to upload any file save in Virtual Folder Url.

enter image description here

Upvotes: 1

Related Questions