CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: Date Entered: 1/5/2007 12:29:22 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 588 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"steven.miles"
NewsGroup User
Assembly generation failed -- Referenced assembly does not have a strong name1/5/2007 12:29:22 PM

0

Hi,

I've attempted to migrate a VS2005 "Web Site Project" to "Web Application Project". I overcome all issues except 1. When i try to build my new project it compains that a referenced assembly isn't strong named. Unfortunatley this is a third party .NET assembly so it is not built as part of my solution. Both new and old web projects are instructed to be signed in the assemblyinfo.cs the old web site project compiles and publishes fine and the new one doesn't. I've read some pages that suggest i can sign my precompiled(3rd party) assembly but haven't found anything that suggests how this is done. Ultimatley i have 2 questions.

1. What is the difference between "Site" and "Application" projects that makes this a problem for one and not the other?

2. How do i get my new application project to build Smile

Thanks.

Steve.

 

"mkamoski" <>
NewsGroup User
Re: Assembly generation failed -- Referenced assembly does not have a strong name1/5/2007 2:22:36 PM

0

steven.miles:

Hi,

I've attempted to migrate a VS2005 "Web Site Project" to "Web Application Project". I overcome all issues except 1. When i try to build my new project it compains that a referenced assembly isn't strong named. Unfortunatley this is a third party .NET assembly so it is not built as part of my solution. Both new and old web projects are instructed to be signed in the assemblyinfo.cs the old web site project compiles and publishes fine and the new one doesn't. I've read some pages that suggest i can sign my precompiled(3rd party) assembly but haven't found anything that suggests how this is done. Ultimatley i have 2 questions.

1. What is the difference between "Site" and "Application" projects that makes this a problem for one and not the other?

2. How do i get my new application project to build Smile

Thanks.

Steve.

 

(1)

Web-Site Project is a project type that is built-in to VS.NET 2005. It provides a structure for building an ASP.NET web-based application. For compilation, as Web-Site Project uses the "new" compilation model for web-sites promoted by VS.NET 2005. This compilation model rests on the Precompilation of the site and it is quite different from the "old" compilation model in VS.NET 2003. There are many ways to configure Precompilation, but, in general the site compiles to >1 DLL files and 0..N content files/placeholders. It is complicated, but not too much so once you find the Precompilation configuration that you like. It can be more secure that the old VS.NET 2003 compilation model. See below for more details.

A Web-Application Project is a project type that is provided as an add-on project type. The Web-Application Projects compile to (generally) a single-DLL and 1...N content files. It is, pretty much, the same compilation model that VS.NET 2003 used.

(2)

You have a good question regarding signing a single DLL file.

Here is some information, but I got stuck trying to find the "module name", as mentioned in the MSDN help.

Here are some of the steps.

  1. First, you need to create a Public/Private Key Pair.
  2. Choose >Start, >Programs, >Microsoft Visual Studio 2005, >Visual Studio Tools, >Visual Studio 2005 Command Prompt.
  3. Enter the following at the command prompt and then press Enter...
    sn -k C:\Temp\sgKey.snk
  4. Now the key pair is created.
  5. Next, sign the assembly, (for example  "MyAssembly.dll"), with a strong name using the key file, (for example "sgKey.snk").
  6. At that point, MSDN, says... "At the command prompt, type the following command:
    al /out:<assembly name> <module name> /keyfile:<file name>
    In this command, assembly name is the name of the assembly to sign with a strong name, module name is the name of the code module used to create the assembly, and file name is the name of the container or file that contains the key pair."
  7. What is NOT clear to me is where one gets the "module name". Where does that come from if one is only starting with a singe file, MyAssembly.dll??? I want to type something like this...
    al /out:"c:\Temp\MyAssembly.dll" MyModule.netmodule /keyfile:"c:\Temp\sgKey.snk"
    ...but the file MyModule.netmodule does not exist. What gets used for "module name" when one starts with a single file???

So, for question (2) I am just adding to the question and (I hope) framing it a bit --

So that one can sign a single DLL file Assembly with the Assembly Linker (al.exe), where does one get a "module file" for the command line syntax if one is starting with just a single DLL file?

(Note that most of the signing information above is paraphrased from MSDN.)

For more details, check here...

ASP.NET Web Site Precompilation -- http://msdn2.microsoft.com/en-us/library/ms228015.aspx

How to: Create a Public/Private Key Pair  -- http://msdn2.microsoft.com/en-us/library/6f05ezxy.aspx

How to: Sign an Assembly with a Strong Name -- http://msdn2.microsoft.com/en-us/library/xc31ft41.aspx

 

If you or anyone finds an answer to the "when does one get the module name" question, please post it.

Thank you.

-- Mark Kamoski


http://www.WebLogicArts.com
"steven.miles"
NewsGroup User
Re: Assembly generation failed -- Referenced assembly does not have a strong name1/5/2007 3:41:11 PM

0

Thanks Mark,

I understand that the the 2 projects types are different and use different build models and that it's something to do with the new build model that is causing the "Web Application Project" to have problems with my unsigned 3rd party assembly. Maybe question 1 should have been

1. What difference in the build models causes the assembly generation failure in "Web Application Projects" and not in "Web Site Projects" when the web project is signed and references an unsigned assembly?

I use a key (.snk) that is already generated. This is about where i got to in my search. I know how to sign an assembly if i have the source Smile. The ideal solution would be one that does not need me to sign the 3rd party assembly or does behind the scenes basically making my web application project work the same way as my web site project in this context.

"mkamoski" <>
NewsGroup User
Re: Assembly generation failed -- Referenced assembly does not have a strong name1/5/2007 6:20:10 PM

0

steven.miles:

...I know how to sign an assembly if i have the source Smile. The ideal solution would be one that does not need me to sign the 3rd party assembly or does behind the scenes basically making my web application project work the same way as my web site project in this context.

Yes, that's is where I am stuck too.

I can sign an assembly when I have the source.

But, I cannot sign an assembly when all I have is a single DLL.

If you find an answer, then please post it.

I am sorry that I cannot be of more help.

Thank you.

-- Mark Kamoski

 


http://www.WebLogicArts.com
"Johnson_wei" <
NewsGroup User
Re: Assembly generation failed -- Referenced assembly does not have a strong name2/16/2007 2:06:04 AM

0

I find the answer:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=397923&SiteID=1
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:













web application type not available?

setting dev server port for multiple wap projects

web app vs web site vs web project

web application projects doesn't work after installation

name clash with 'login', 'menu' and others

application variable

migration problem while using wap

web application: cannot find definition of class methods

web application project/web site project

application_start (global.asax) not firing on windows 2003 server

vs 2005 and sql 2000

global.asax events don't fire in production after converting

please help me...its urgent

code behind code generator

wap and masterpage issue

sql database transaction and update

drag and drop from solution explorer onto web form doesn't drop object but drops file name instead

club starter kit remote server error

loads page.aspx again in every click.

list box and ajax flyout menu

vs adds height and width to some img tags

problem after renaming aspnetdb

what is the difference between website and web application?

"go to definition" of class method isn't work

web application project doesn't work online

delete option on publish deleted an excluded folder

publish -> only root web.config is copied to outputfolder?

still new to vs 2005 n hav 1 folder issue

how to search pdf content

load a image from file to webform?

problem with loginname after deployment

select distinct values from an existing vb dataset or datatable

documents security on website

wap and sharing codebehind

acess form elements in c# code through url

custom control inside assembly, importing to another assembly?

asp.net 2.0 deploymnet

how to use three tier architecture in a web project

where are namespaces defined for .net web apps not defined as class libraries?

how to specify custon httphandlers in web.config in vs2005 web app?

problems with aspx pages in web application project

converting one web site page to a wap page

parser error message: the type 'skisafeweb.global' is ambiguous

urgent...how to use only one gridview1 in all my tab control??????

converting vs2005 web site to web application

wap & tfs source control

simple question - no solution created for new wap

opening a vs 2003 solution in vs 2005 without automatically converting to 2005 solution

how to get row id, with html checkbox in gridview

data sources pane greyed out

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT