|
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.
|
|
|
|
|
Hi,
I dont have any idea regarding this
"Did you try the following powershell command?
Gacutil /i C:\temp\mydll.dll".
Thanks,
Hemadri.T
|
|
|
|
|
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
------------------------------
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.
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
Hi,
'Microsoft.SharePoint.WebControls.FieldLabel' does not contain a definition for 'lblResults' and no extension method 'lblResults' accepting a first argument of type 'Microsoft.SharePoint.WebControls.FieldLabel' could be found (are you missing a using directive or an assembly reference?)
lblResults.Text ="Files are Uploaded to Shared Document Library";
lblResults.Font.Bold = true;
this.lblResults.ForeColor = System.Drawing.Color.Blue;
Thanks,
Hemadri.T
|
|
|
|
|
|
Hi,
public class WebpartUploadFiles : System.Web.UI.WebControls.WebParts.WebPart
Thanks,
Hemadri.T
|
|
|
|
|
You don't have to doublepost. I answered it already. Take a look, then you see it.
------------------------------
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.
|
|
|
|
|
|
Hi,
Error 1 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Error 2 The type or namespace name 'Label' could not be found (are you missing a using directive or an assembly reference?)
Thanks,
Hemadri.T
|
|
|
|
|
HemadriT wrote: Error 1 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Did you added reference to System.Web? After that include "using System.Web.UI".
HemadriT wrote: Error 2 The type or namespace name 'Label' could not be found (are you missing a using directive or an assembly reference?)
There is no Label in "Microsoft.SharePoint.WebControls" nor in "System.Web.UI". Do you want to use FieldLabel?
By the way, if the answers help you, feel free to state that or vote up. I get never feedback from you and I try really hard to help you.
------------------------------
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.
|
|
|
|
|
Hi,
•Add the following references by right clicking on the WebpartUploadFiles project and clicking on “Add Reference”: Microsoft.SharePoint and Microsoft.SharePoint.WebControls.But i didt get Microsoft.SharePoint.WebControls in that list.
Thanks,
Hemadri.T
|
|
|
|
|
HemadriT wrote: But i didt get Microsoft.SharePoint.WebControls in that list.
Of course not. Microsoft.SharePoint.WebControls is part of the package Microsoft.SharePoint.
Add reference to Microsoft.SharePoint then include the namespaces:
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
------------------------------
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.
|
|
|
|
|
Hi,
In my page i am going to create icons like NEW,UPLODE,SETTINGS.For these i need to do some custom logic.Consider all these things
SHAREPOINT FOUNDATION 2010 is enough or
SHAREPOINT SERVER 2010 IS NEED.
Thank you,
Hemadri.T
|
|
|
|
|
Hi,
I am going to create new website like Shared doucumet. In that first page i want to create new icons like NEW,UPLOAD, ACTIONS.When i click "NEW" it seems create new folder, "UPLOAD" for uploading documents...These three icon i need to create in the top of the page itself.And i am going to create few accounts for access these shared document.For these and all SHAREPOINT FOUNDATION2010 is enough or i need to go SHAREPOINT SERVER2010.
Thanks,
Hemadri.T
|
|
|
|
|
If these are the only requirements, SharePoint Foundation 2010 should be enough.
------------------------------
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.
|
|
|
|
|
Hello everyone,
I'm trying to figure out how people manage to have a separate development server and a production server environment when they do SharePoint development. There are some obvious ways of deploying Web parts but how do you synchronize a Site or a Site Collection where you do things like customizing a Document Library by creating some Site Columns in a content type hub for instance. I mean you can't always do changes in a live environment right. So please elaborate a bit on this.
Kind regards,
|
|
|
|
|
When you have a development server all new features will be installed there first and after they work fine, they'll finde their way to the production server.
So the except for the content, the features are the same.
If you need the same content, you can clone the production server instead of installing a development server, make backups from the production server and restore them to the development server.
But I wouldn't see, why you should do that. You never need all the content to test, do you?
------------------------------
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.
|
|
|
|