Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. How to drag "WebpartUploadFiles.dll to Assembly".

How to drag "WebpartUploadFiles.dll to Assembly".

Scheduled Pinned Locked Moved SharePoint
dotnettutorial
15 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HemadriT
    wrote on last edited by
    #1

    Hi, I am going to drag and drop the following compiled assembly into the GAC (by default, c:\windows\assembly) "WebpartUploadFiles.dll to Assembly". But i am not able to drag that webpartUploadFiles.dll to assembly. Thanks, Hemadri.T

    I 1 Reply Last reply
    0
    • H HemadriT

      Hi, I am going to drag and drop the following compiled assembly into the GAC (by default, c:\windows\assembly) "WebpartUploadFiles.dll to Assembly". But i am not able to drag that webpartUploadFiles.dll to assembly. Thanks, Hemadri.T

      I Offline
      I Offline
      Ingo
      wrote on last edited by
      #2

      HemadriT wrote:

      But i am not able to drag that webpartUploadFiles.dll to assembly.

      Did you sign the assembly? Take a look at: http://blog.mediawhole.com/2008/02/deploying-sharepoint-dlls-to-gac.html[^]

      ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

      H 1 Reply Last reply
      0
      • I Ingo

        HemadriT wrote:

        But i am not able to drag that webpartUploadFiles.dll to assembly.

        Did you sign the assembly? Take a look at: http://blog.mediawhole.com/2008/02/deploying-sharepoint-dlls-to-gac.html[^]

        ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

        H Offline
        H Offline
        HemadriT
        wrote on last edited by
        #3

        Hi, Yes i sign the assembly like WebpartUploadFiles.snk. And i got WebpartUploadFiles.snk in the solution explorer. But i am not able to drag and drop WebpartUploadFiles.dll to Assembly. Thanks, Hemadri.T

        I 2 Replies Last reply
        0
        • H HemadriT

          Hi, Yes i sign the assembly like WebpartUploadFiles.snk. And i got WebpartUploadFiles.snk in the solution explorer. But i am not able to drag and drop WebpartUploadFiles.dll to Assembly. Thanks, Hemadri.T

          I Offline
          I Offline
          Ingo
          wrote on last edited by
          #4

          Did you try the following powershell command?

          Gacutil /i C:\temp\mydll.dll

          Pretending that it is placed in temp!

          ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

          1 Reply Last reply
          0
          • H HemadriT

            Hi, Yes i sign the assembly like WebpartUploadFiles.snk. And i got WebpartUploadFiles.snk in the solution explorer. But i am not able to drag and drop WebpartUploadFiles.dll to Assembly. Thanks, Hemadri.T

            I Offline
            I Offline
            Ingo
            wrote on last edited by
            #5

            Did you try the following powershell command?

            Gacutil /i C:\temp\mydll.dll

            Pretending that it is placed in temp!

            ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

            H 1 Reply Last reply
            0
            • I Ingo

              Did you try the following powershell command?

              Gacutil /i C:\temp\mydll.dll

              Pretending that it is placed in temp!

              ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

              H Offline
              H Offline
              HemadriT
              wrote on last edited by
              #6

              Hi, I dont have any idea regarding this "Did you try the following powershell command? Gacutil /i C:\temp\mydll.dll". Thanks, Hemadri.T

              I 1 Reply Last reply
              0
              • H HemadriT

                Hi, I dont have any idea regarding this "Did you try the following powershell command? Gacutil /i C:\temp\mydll.dll". Thanks, Hemadri.T

                I Offline
                I Offline
                Ingo
                wrote on last edited by
                #7

                HemadriT wrote:

                I dont have any idea regarding this

                No Problem! 1. Copy mydll.dll to temp 2. Open Windows Startmenue, type "powershell" open the Windows Powershell or the SharePoint 2010 Administration Shell 3. Set alias to Gacutil, type:

                Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"

                4. Add dll to gac, type:

                Gacutil /i C:\temp\mydll.dll"

                5. Be ready for activating it in SharePoint Centraladministration :cool:

                ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                H 1 Reply Last reply
                0
                • I Ingo

                  HemadriT wrote:

                  I dont have any idea regarding this

                  No Problem! 1. Copy mydll.dll to temp 2. Open Windows Startmenue, type "powershell" open the Windows Powershell or the SharePoint 2010 Administration Shell 3. Set alias to Gacutil, type:

                  Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"

                  4. Add dll to gac, type:

                  Gacutil /i C:\temp\mydll.dll"

                  5. Be ready for activating it in SharePoint Centraladministration :cool:

                  ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                  H Offline
                  H Offline
                  HemadriT
                  wrote on last edited by
                  #8

                  Hi, I tryed what u told but still i am not getting. and one more thing is my project is saved in the following path. "C:\Users\Administrator\Documents\Visual Studio 2010\Projects\WebpartUploadFiles\WebpartUploadFiles\" And my assembly path is :C:\Windows\assembly". Thanks, Hemadri.T

                  I 1 Reply Last reply
                  0
                  • H HemadriT

                    Hi, I tryed what u told but still i am not getting. and one more thing is my project is saved in the following path. "C:\Users\Administrator\Documents\Visual Studio 2010\Projects\WebpartUploadFiles\WebpartUploadFiles\" And my assembly path is :C:\Windows\assembly". Thanks, Hemadri.T

                    I Offline
                    I Offline
                    Ingo
                    wrote on last edited by
                    #9

                    HemadriT wrote:

                    my project is saved in the following path. "C:\Users\Administrator\Documents\Visual Studio 2010\Projects\WebpartUploadFiles\WebpartUploadFiles\"

                    Well of course you can type the complete path to the dll you have build, but it would be much easier to copy the compiled dll to the temp folder. And I bet the path you stated is not the complete one. Something like "\bin\Release\yourdll.dll" is missing Is there an error-message given?

                    ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                    H 1 Reply Last reply
                    0
                    • I Ingo

                      HemadriT wrote:

                      my project is saved in the following path. "C:\Users\Administrator\Documents\Visual Studio 2010\Projects\WebpartUploadFiles\WebpartUploadFiles\"

                      Well of course you can type the complete path to the dll you have build, but it would be much easier to copy the compiled dll to the temp folder. And I bet the path you stated is not the complete one. Something like "\bin\Release\yourdll.dll" is missing Is there an error-message given?

                      ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                      H Offline
                      H Offline
                      HemadriT
                      wrote on last edited by
                      #10

                      Hi, I am really sorry to say this,I am not getting which you send 1. Copy mydll.dll to temp 2. Open Windows Startmenue, type "powershell" open the Windows Powershell or the SharePoint 2010 Administration Shell 3. Set alias to Gacutil, type: Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" 4. Add dll to gac, type: Gacutil /i C:\temp\mydll.dll". Thanks, Hemadri.T

                      I 1 Reply Last reply
                      0
                      • H HemadriT

                        Hi, I am really sorry to say this,I am not getting which you send 1. Copy mydll.dll to temp 2. Open Windows Startmenue, type "powershell" open the Windows Powershell or the SharePoint 2010 Administration Shell 3. Set alias to Gacutil, type: Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" 4. Add dll to gac, type: Gacutil /i C:\temp\mydll.dll". Thanks, Hemadri.T

                        I Offline
                        I Offline
                        Ingo
                        wrote on last edited by
                        #11

                        Ok. No Problem!

                        HemadriT wrote:

                        1. Copy mydll.dll to temp

                        You take the dll-file you have just compiled from the projects bin\release folder and place it in a directory C:\temp

                        HemadriT wrote:

                        Open Windows Startmenue, type "powershell" open the Windows Powershell or the SharePoint 2010 Administration Shell

                        When you open the Windows-Startmenue type Powershell. Windows Powershell is shown in the menue, click on it.

                        HemadriT wrote:

                        3. Set alias to Gacutil, type:
                        Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"

                        In the powershell that just has opened type the following line:

                        Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"

                        HemadriT wrote:

                        4. Add dll to gac, type:

                        Again in the powershell type:

                        Gacutil /i C:\temp\mydll.dll".

                        I hope, that it's now clear. For Powershell just use google - there are many examples and powershell is a powerful tool for all sharepoint admins and sharepoint developers.

                        ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                        H 1 Reply Last reply
                        0
                        • I Ingo

                          Ok. No Problem!

                          HemadriT wrote:

                          1. Copy mydll.dll to temp

                          You take the dll-file you have just compiled from the projects bin\release folder and place it in a directory C:\temp

                          HemadriT wrote:

                          Open Windows Startmenue, type "powershell" open the Windows Powershell or the SharePoint 2010 Administration Shell

                          When you open the Windows-Startmenue type Powershell. Windows Powershell is shown in the menue, click on it.

                          HemadriT wrote:

                          3. Set alias to Gacutil, type:
                          Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"

                          In the powershell that just has opened type the following line:

                          Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"

                          HemadriT wrote:

                          4. Add dll to gac, type:

                          Again in the powershell type:

                          Gacutil /i C:\temp\mydll.dll".

                          I hope, that it's now clear. For Powershell just use google - there are many examples and powershell is a powerful tool for all sharepoint admins and sharepoint developers.

                          ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                          H Offline
                          H Offline
                          HemadriT
                          wrote on last edited by
                          #12

                          Hi, mydll.dll means Which i got in "bin" folder(WebpartUploadFiles.dll) right.And i am not getting "Temp" how can i get it.Sorry if i am irritate you. Thanks, Hemadri.T

                          I 1 Reply Last reply
                          0
                          • H HemadriT

                            Hi, mydll.dll means Which i got in "bin" folder(WebpartUploadFiles.dll) right.And i am not getting "Temp" how can i get it.Sorry if i am irritate you. Thanks, Hemadri.T

                            I Offline
                            I Offline
                            Ingo
                            wrote on last edited by
                            #13

                            HemadriT wrote:

                            mydll.dll means Which i got in "bin" folder(WebpartUploadFiles.dll) right.

                            Correct!

                            HemadriT wrote:

                            And i am not getting "Temp" how can i get it.Sorry if i am irritate you.

                            Uh! If there is no Temp folder under C:\ use the Windows Explorer to create a new folder, call it "temp".

                            HemadriT wrote:

                            Sorry if i am irritate you

                            No Problem!

                            ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                            H 2 Replies Last reply
                            0
                            • I Ingo

                              HemadriT wrote:

                              mydll.dll means Which i got in "bin" folder(WebpartUploadFiles.dll) right.

                              Correct!

                              HemadriT wrote:

                              And i am not getting "Temp" how can i get it.Sorry if i am irritate you.

                              Uh! If there is no Temp folder under C:\ use the Windows Explorer to create a new folder, call it "temp".

                              HemadriT wrote:

                              Sorry if i am irritate you

                              No Problem!

                              ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                              H Offline
                              H Offline
                              HemadriT
                              wrote on last edited by
                              #14

                              Hi, I created new folder like "Temp" and i past the dll which i got in "bin" folder. I tryed the remaining part which you told but i didnt get.One more thing i need to tel you, my ddl location is C:\Users\Administrator\Documents\Visual Studio 2010\Projects\WebpartUploadFiles\WebpartUploadFiles\bin\Debug. But Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" is different know Thanks, Hemadri.T

                              1 Reply Last reply
                              0
                              • I Ingo

                                HemadriT wrote:

                                mydll.dll means Which i got in "bin" folder(WebpartUploadFiles.dll) right.

                                Correct!

                                HemadriT wrote:

                                And i am not getting "Temp" how can i get it.Sorry if i am irritate you.

                                Uh! If there is no Temp folder under C:\ use the Windows Explorer to create a new folder, call it "temp".

                                HemadriT wrote:

                                Sorry if i am irritate you

                                No Problem!

                                ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

                                H Offline
                                H Offline
                                HemadriT
                                wrote on last edited by
                                #15

                                Hi, 1. Copy mydll.dll to temp 2. Open Windows Startmenue, type "powershell" open the Windows Powershell or the SharePoint 2010 Administration Shell I completed upto this. from 3rd point onwards i tryed in powershall but i am not able to got that.. 3. Set alias to Gacutil, type: Set-Alias Name:Gacutil -Value "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe" 4. Add dll to gac, type: Gacutil /i C:\temp\mydll.dll" Thanks, Hemadri.T

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups