Multiple projects in a solution

Last post 07-23-2008 9:04 AM by Virrum. 3 replies.

Sort Posts:

  • Multiple projects in a solution

    07-22-2008, 4:38 AM
    • Loading...
    • Virrum
    • Joined on 06-14-2006, 7:09 AM
    • Sandefjord, Norway
    • Posts 34

    Hi!

    I'm working with a website solution where I have imported the PdfSharp projects and MigraDocLite projects. I've managed to get my original project to use these projects after some troubling. So locally it works perfect.

    My problem occurs when I have used Copy website, and copied it to my web server. I've checked that the Bin folder contains the DLL files that are required, but it will not write PDF files. There is no error either, it seems like my site just ignores all code that refers to PDFsharp. 

     Do you have some tips for me to fix this?

     

    Thanks in advance!

  • Re: Multiple projects in a solution

    07-22-2008, 4:30 PM

    Perhaps the difference is in user credentials? Locally you are probably running site on development server and your own user crdentials while on a server site runs as default network service account. You may have to set ASP.NET for user impersonation.

    Thanks

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

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Multiple projects in a solution

    07-23-2008, 7:42 AM
    • Loading...
    • Virrum
    • Joined on 06-14-2006, 7:09 AM
    • Sandefjord, Norway
    • Posts 34
    It's true that I run it through the built in web server in VS. In the web server, it runs with the IUSR_COMPUTERNAME I guess. I've added this user to the user group and gave the group write premission to the local folder PDFsharp is supposed to save the file to. I tried to use impersonation with my domain user, which is member of the Administrator group in the web server, but it still didn't work. I've set it to write to a subfolder of the website. I'm pretty lost here now. I know that the dll files is being read, I tried to delete one of them, and I got a runtime error, i don't get that when the dll is in the BIN folder. So it seems the PDFsharp codes is present.
  • Re: Multiple projects in a solution

    07-23-2008, 9:04 AM
    Answer
    • Loading...
    • Virrum
    • Joined on 06-14-2006, 7:09 AM
    • Sandefjord, Norway
    • Posts 34
    I'm so embarresed. I had an error in my output path! For the permissions, all I had to do was to allow the Users group to write to the folder...
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter