?
Solved

/keyfile

Posted on 2008-11-17
8
Medium Priority
?
783 Views
Last Modified: 2012-05-05
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("..\\..\\ActiveDateTime.key")]
[assembly: AssemblyKeyName("")]

[assembly: AssemblyKeyFile("..\\..\\ActiveDateTime.key")]
needs to be updated.


------ Rebuild All started: Project: ActiveDateTime, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\ActiveDateTime.dll /target:library ActiveDateTime.cs DateChangedEventArgs.cs Properties\AssemblyInfo.cs
C:\inetpub\wwwroot\OmegaLove_CS\OL_DateTimePicker\ActiveDateTime\ActiveDateTime\Properties\AssemblyInfo.cs(76,12): warning CS1699: Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'

Compile complete -- 0 errors, 1 warnings
ActiveDateTime -> C:\inetpub\wwwroot\OmegaLove_CS\OL_DateTimePicker\ActiveDateTime\ActiveDateTime\bin\Debug\ActiveDateTime.dll
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
0
Comment
Question by:mathieu_cupryk
  • 4
  • 4
8 Comments
 
LVL 13

Expert Comment

by:kaylanreilor
ID: 22982955
From doc:
In order to sign an assembly, it is necessary to specify a key file. Prior to Microsoft Visual C# 2005, you specified the key file using CLR attributes in source code. THESE ATTRIBUTES ARE NOW DEPRECATED.

Beginning in Microsoft Visual C# 2005, you should use the Signing Page of the Project Designer or the Assembly Linker to specify the key file.
Use http://msdn.microsoft.com/en-us/library/w2kyay38.aspx instead of the AssemblyKeyFileAttribute attribute.
0
 

Author Comment

by:mathieu_cupryk
ID: 22985428
is it necessary to sign an assembly?
0
 
LVL 13

Expert Comment

by:kaylanreilor
ID: 22992797
If you want to register some dll into a GAC for example. You need to register an assembly into the GAC (and then it's mandatory that your assembly has a string name) if your assembly is supposed to be shared by several application for example... However it depends on what you are doing with your assembly. Do you need to deploy it on customer machines in the context where your company sells a software ?
An assembly is identified by its text name, version number and culture info. However, these pieces of info will not guarantee that an assembly will be unique. There might be cases in which 2 soft publishers end up using the same identity and lead to some strnge behaviours on the targetted machines. You greatly reduce such issues by giving strong names to your assemblies. A strong name strengthens an assembly's identity by qualifying it with the sofware identity. .Net framework uses a standard crypto technique known as digital signing.
Signing is also usefull when you want to be sure that your assembly has not been tampered.
Let's have a look : http://www.csharp411.com/net-assembly-faq-part-3-strong-names-and-signing
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:mathieu_cupryk
ID: 22994810
The assembly should be signed?
0
 

Author Comment

by:mathieu_cupryk
ID: 22994866
when and when not to sign an assembly?
0
 
LVL 13

Expert Comment

by:kaylanreilor
ID: 22995331
I don't understand your questions since I provided an explanation about what the signature is for. Moreover the link I proposed go further deeper in this explanation.
So the only one who can answer your questions is yourself since you know what you need.
0
 

Author Comment

by:mathieu_cupryk
ID: 22996893
I think it is important to go with signing the assemblies.
0
 
LVL 13

Accepted Solution

by:
kaylanreilor earned 2000 total points
ID: 23001637
OK, so let's go for signing... Then, where is the issue now ?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question