Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deploying Production MM.Net web app questions
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Deploying Production MM.Net web app questions
Divers
Thread ID:
01433570
Message ID:
01433570
Vues:
127
We are at point we are designing how our MM.NET web app (our first) is going to be setup on the Win 2008 server.

We had IIS and the app directory all setup, and used the 'Publish web site' option to move the app to the server.

It would not run, of course, hitting error that it could not find the MM.NET assemblies. Doh.

We tried the first two options Kevin details in his MM.NET help file, "Deploying MM .NET Assemblies for a Web Application."

We simply could not get the first two, Deploying MM .NET assemblies into the GAC on a Production Machine and Deploying MM .NET Assemblies into the Web Application's bin Folder to work, no matter what we tried. In each case, a folder in the project would be created with a long script in which the assemblies/dll's were rerferenced, but the dll's were never copied anywhere we could find on the server.

Finally, we just went to the program files\mere mortals install, picked out the three dll's from there, and dropped them in the bin folder. That seems to work just fine. And to be honest, I have always preferred such a clean solution to the complexity of involving the registry, etc.

We remain curious why we could not get the first two options to work, however.

Here are the steps/options we tried:

1. open web site, which is defined as https: IIS project on local web server on XP PC
2. File->New Project->Other Project Types->Setup and Deployment->Web Setup Project (as a folder within the VS project space), with 'create new solution' and 'create dir for solution'
3. In the File System pane, right-click the File System on Target Machine node and select Add Special Folder | Global Assembly Cache Folder.
4. Right-click the new Global Assembly Cache Folder and select the Add Assembly from the shortcut menu.
5. Select and add from Assemblies dialog:
Mere Mortals Framework 2008
Mere Mortals Framework Interfaces 2008
Mere Mortals Framework Web Forms 2008

Note: the following files then appear in the projects GAC folder:
dte80a.olb (triggers error: 'cannot be shared in GAC, only assemblies allowed)
EnvDTE.dll
Microsoft.VisualStudio.TemplateWizardInterface.dll
Oakleaf.MM2008.Automation.dll
Oakleaf.MM2008.Framework.dll
Oakleaf.MM2008.Framework.dll (yes, listed twice)
Oakleaf.MM2008.Interfaces.dll
Oakleaf.MM2008.Interfaces.dll (again, listed twice)
Oakleaf.MM2008.WebForms.dll
System.Data.SqlServerCe.dll
VSLangProj.dll
vslangproj.olb (triggers error: 'cannot be shared in GAC, only assemblies allowed)

Then we would run the websetup, but the MM.NET dlls never appear in GAC on the target server, and we could not find the three dlls anywhere.

I walked through this again just now. Publishing the web site resulted in deleting the three MM.NET dlls I had manually copied to the bin dir on the server. But there is no evidence in GAC on the server for Oakleaf, and the dlls are no longer in the bin folder in the installed app itself.

There is a long 1,100 line script in the websetup folder that was created, and which was also copied to the server. Sample of contents follow:

"DeployProject"
{
"VSVersion" = "3:800"
"ProjectType" = "8:{978C614F-708E-4E1A-B201-565925725DBA}"
"IsWebType" = "8:TRUE"
"ProjectName" = "8:WebSetup"
"LanguageId" = "3:1033"
"CodePage" = "3:1252"
"UILanguageId" = "3:1033"
"SccProjectName" = "8:"
"SccLocalPath" = "8:"
"SccAuxPath" = "8:"
"SccProvider" = "8:"
"Hierarchy"
{
"Entry"
{
"MsmKey" = "8:_6273CA4319B201DA08F9C0AAE1E7820E"
"OwnerKey" = "8:_A856DB947BA2A00C0857D36797A4AB0A"
"MsmSig" = "8:_UNDEFINED"
}
...
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:OakLeaf.MM2008.Framework, Version=3.6.0.0, Culture=neutral, PublicKeyToken=511bd18e16c7f771, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_6AFAB18782F74E77A3A549DF03DB53E9"
{
"Name" = "8:OakLeaf.MM2008.Framework.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:C:\\Program Files\\Mere Mortals .NET Framework 2008\\Mere Mortals Framework\\OakLeaf.MM2008.Framework.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_6EEA2BB74ABE40569B227E0696DB47DE"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
Ronald D. Edge
Retired from Indiana University Mar 1, 2011

"You've got to be very careful if you don't know where you are going,
because you might not get there."
“When you come to the fork in the road, take it.”
--Yogi Berra
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform