Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8852099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:19:00+00:00 2026-06-14T13:19:00+00:00

I have a project that uses the Pkcs12ProtectedConfigurationProvider . There were never any problems

  • 0

I have a project that uses the Pkcs12ProtectedConfigurationProvider. There were never any problems using this dll in azure when targeting windows server 2008 sp2 or r2. However, when I tried to deploy to azure using windows server 2012 (osFamily=”3″), I got an exception stating that the assembly could not be found.

I vaguely recall running into this in the emulator, and the solution was to add this dll to the GAC. I googled and found these instructions regarding how to install a DLL into the GAC as an azure startup task. Everything works as long as I have the gacutil and the related .cmd file in the root of the web role project. However, I want to move this into the app’s /startup folder where I have other startup commands.

So far I have been unable to get this to work. gacutil isn’t very helpful either as I have not been able to get it to show any output after I run commands against it. Here is what I have tried:

in the csdef file:

<Startup>
  <!-- other tasks, such as disabling the IIS idle timeout -->
  <Task commandLine="startup\gacRegistrations.cmd" executionContext="elevated" taskType="simple" />
</Startup>

in the gacRegistrations.cmd file:

gacutil /nologo /i ..\PKCS12ProtectedConfigurationProvider.dll
exit /b 0

I think the problem has to do with the syntax referencing the dll’s location in the cmd file. All of the relevant files are set to build action: none and copy to output directory:copy always. However, the gacutil.exe and cmd file get copied to webrole/bin/startup, whereas the PKCS12ProtectedConfigurationProvider.dll file is 1 folder up, in webrole/bin.

What is the correct syntax here? Should I try gacutil /nologo /i ..\.\PKCS12ProtectedConfigurationProvider.dll? Like I said, everything works fine when the files are not nested in a /startup directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:19:01+00:00Added an answer on June 14, 2026 at 1:19 pm

    The current directory is always the bin folder, so you should try the following:

    startup\gacutil /nologo /i PKCS12ProtectedConfigurationProvider.dll
    exit /b 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that uses Serve and is version controlled using Git. Serve
I have a project that uses an Access DB file for reference tables. This
I have a project that uses System.Runtime.Serialization assembly. I am using the type DataContractSerializer
I have a project that uses Java and Groovy intermixed. This works very well.
I have a project that uses a Java library converted using IKVM . I
I have a project that uses GLSL shaders. This project is designed not to
I have a project that uses a DLL that I have created. Everything works
I have a project that uses SystemConfiguration.Framework. I've been using xcode, where adding the
I have a project that uses Spring Webflow 2, extensively. There's well over 30
Hi have a project that uses the functions in prnadmin.dll, in order to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.