Pages

Tuesday, August 21, 2012

Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0 ...


Today while updating a previously Visual Studio 2010 Website to use Visual Studio 2012 I got an error building the website in VS2012. The website calls some web services and error occurred any way I tried to build the site.

Reference.svcmap: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. App_WebReferences/WebServiceName/

This seemed odd because I hadn't used System.Web.Mvc in that project and it wasn't used as namespace or an added assembly. After looking around I did find several posts talking about similar issues and my best guess is that one of the used DLL's actually require it.

Solution

While I don't know the exact cause the solution was simple enough. Add the following to the web.conf file.



  .....
  
    
      
        
          
          
        
      
    
   
 ........


After which I finally found an answer on stackoverflow with the same solution.

When you add  Service References and  use the advance settings and but chose to not reuse types in referenced assembles. If you already added the Service Reference edit by clicking Configure Service Reference on the svcmap.

Add Service Advance Settings - Do not Reuse Types

I currently don't know why either of these fix it and don't have the time today to dig in and figure out why.

Goodluck.

Wednesday, August 15, 2012

VMWorld 2012

I'm surprised  and excited to announce that I"ll be attending VMworld 2012 this year and even more surprised to say I'll actually sitting on a panel to talk about “Doing More with Less” by Leveraging Desktop Virtualization to Reduce Costs While Improving Learning. I'll be speaking about how Northern Kentucky University (NKU) is offering more services to our students and faulty. Offering a better experiences, faster delivery of professor needs, using less time of support staff, and doing it all without spending more than we were previously.

I'll be attending VMworld with Paul Ritter, NKU's Server Team Manager,  so expect additional VMworld posts from us in the coming weeks. Also remember that if you attending VMworld to register for our session and if you have questions please leave them in the comments and I'll attempt to get answers ahead of time.


EUC3380 - Live Panel Discussion on How Education Customers Are “Doing More with Less” by Leveraging Desktop Virtualization to Reduce Costs While Improving Learning


I'll also try and take this chance to release some projects I built for NKU but honestly never got around to publishing or polishing enough for general release.

For an example I wrote a website for reporting VMware View Statistics (a feature sorely missing from the VMware product).

Active Connections from the Statistics Site
I modified the powershell scripts in I use for the Thin Client made using Windows 7 to provide a Lab Status Web Page for students that shows in real time which labs have Thin Clients and how many.



Friday, June 1, 2012

SAP Solution Manager - Web Site not clickable


Working with Solution Manager 7.1 transaction solman_setup I was surprised to fine that while the web page opened; buttons and and links were not clickable. I was using IE 8 and did try comparability mode but no difference. Here's the error in detail.

Message: 'UCF_Properties' is undefined
wd_sise_main_app
Line: 1
Char: 1222
Code: 0
URI: http://:8000/sap/bc/webdynpro/sap/wd_sise_main_app?sap-language=EN
Solution
  1. In Transaction SE38, enter and execute the report WDG_MAINTAIN_UR_MIMES. Under "Menu:, double-click "Delpoy MIMES". Then when that has finished, double-click "Force MIME deployment".
  2. In  Transaction SMICM, choose the "Goto --> HTTP Plugin --> Server Cache --> Invalidate Globally. Click "Yes".
  3. Delete Temporary Internet Files out of Internet Explorer: Tools--> Internet Options --> (General Tab, Browsing History section) Delete.
  4. Make sure that IE  comparability mode  is turned off the close the browser and re-run transaction solman_setup.

Links 

http://scn.sap.com/thread/1974122#10513070




Thursday, May 31, 2012

SAP Solution Manager 7.1 - Path component contains reserved character (':'): K:NaN.exe

Problem


While installing SAP Solution Manager 7.1 SR 1 on Windows with SQL today I ran into the following error trying to run the Installer.


An error occurred while processing option SAP Solution Manager 7.1 SR1 > SAP Systems > MS SQL Server > Central System > Central System( Last error reported by the step: Path component contains reserved character (':'): K:NaN.exe). You can now:

  • Choose Retry to repeat the current step.
  • Choose Log Files to get more information about the error.
  • Stop the option and continue with it later.
Log files are written to C:/Program Files/sapinst_instdir/SOLMAN71SR1/SYSTEM/MSS/CENTRAL/AS/sapinst_dev.log

Solution


From the log sapinst_dev.log it looks like it fails to find the JAVA_HOME Path. 
TRACE      2012-05-31 11:53:48.877
NWDiagAgent.getJavaHome()
TRACE      2012-05-31 11:53:48.888 NWOption(sapjvmHome).value()sTRACE      2012-05-31 11:53:48.888 NWOption.getDefaultValue(sapjvmHome)
TRACE[W]   2012-05-31 11:53:48.891 [ianxcreghelper.cpp:283]           CNTRegistryKey::CNTRegistryKey(., HKEY_LOCAL_MACHINE, Software\JavaSoft\Java Development Kit, ...) Error 2 (The system cannot find the file specified.
) in execution of a 'RegOpenKeyEx' function, line (78), with parameter (Software\JavaSoft\Java Development Kit).
TRACE[W]   2012-05-31 11:53:48.892 [ianxcreghelper.cpp:465]
           CNTRegistryKey::CNTRegistryKey(., HKEY_LOCAL_MACHINE, Software\JavaSoft\Java Development Kit, ...)
The subkey 'HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit' does not exist on the 'localhost' host.
ERROR      2012-05-31 11:53:48.912 [syxxcpath.cpp:63]
           CSyPathComponent::CSyPathComponent(const iastring& stringValue, bool mightBePrefix)
           lib=syslib module=syslib
FSL-02107  Path component contains reserved character (':'): K:NaN.exe
That wasn't my first guess of course because if you read the Selection 1.1 New Features of

Wednesday, May 23, 2012

SAP - You are not authorized to make changes


Ran into a problem today during a fresh setup of SAP Solution Manager and I found very little about it on google so I thought I would share.

While following the SOLMAN_SETUP Transaction I started to get an error saying "You are not authorized to make changes" when trying to make any changes. This was after I had restarted the configuration and really puzzled me as it had worked a few minutes before and the account I was logged in with was 'ddic'.




After some investigation thinking I had messed something up in the SAP installation or the system corrupted something I noticed that when I reran the SOLMAN_SETUP Transaction I got the following login prompt from Netweaver.


I finally figured out that the SSO Browser Logon ticket was the problem. I had opened another SAP Portal Instance to look at some settings and that had caused the issue. Easy solution to just completely close all the browser windows and rerun the SOLMAN_SETUP Transaction, I had just been I had been over thinking the problem.

More on the SAP Browser Ticket.

Monday, April 2, 2012

Expanded Guide for Windows 8 on VMware View

Last week I started trying to get a Vmware View Pool working for Demoing Windows 8 for users. At my boss's request because we could show what we can do with View and also preventing people from digging up old PCs and laptops to install it on.


I quickly found the post made by Andre Leibovici at http://myvirtualcloud.net/?p=2991 on the steps to creating a VMware Pool of Windows 8 VMs. Great blog by the way. This post was exactly what I was looking for but I ran into a few problems like others in the comments of his blog that I wanted to try and answer if possible.


Normally we can we can install windows and then the VMware Tools followed by the VMware View Agent. Then create a pool selecting that VM to be replicated/cloned. However currently after looking at the logs I believe there is a issue with the VMware View Agent communication with the View Server which shows up as "Waiting for agent".


Waiting for Agent Problem

Before I had started to follow Leibovici's post I tried to create a Windows 8 VMware Automated Pool like I normally would. This is where one of my problems came up. I created the Windows 8 VM, Installed the VMware tools, then Agent and tried to create a Pool. I cloned my windows 8 VM to 5 VMs , customized them and started them. Then started "Waiting for agent". For anyone that has tried this might know this is as far as the VM ever gets. You can see the errors by checking out the logs on both the client and server.

View Agent Log Events Path: C:\ProgramData\VMware\VDM
View Server Log Events Path: C:\ ProgramData\VMware\VDM\logs


At this time I know of no solution for this issue. These VM's do exist in the ADAM Database under the Servers OU but changing the pae-OSVersion has no effect. You'll find the following links talking about it it but none of which provided a solution as of yet.




While I had no luck finding a solution for this I believe its why Leibovici guide has your create a manual pool and connect the Windows 8 vm's as "Other Sources" in order to get around this problem.

Other Sources

If your like me you may never use this feature of View. If so you let me show you it should look like. From inside the VMware View Admin web site expand View Configuration and select Registered Desktop Sources. You'll notice that i have a Zero here because in this screen shot I have not yet successively connected a machine as a Other Source.



This shows you two types of sources Terminal Services Sources and Other Sources. Other Sources is what were interested in. Other Sources are normally Physical machines with the VMware View Agent Installed so that View Offer these machines in a Manual Pool. Because following Leibovici's post we want our Windows 8 VM to show up under Other Sources.

How to Search VMware View ADAM Instance

A few of the VMware View posts I've read recently had people searching for Objects by hand from the Servers OU in the VMware View Adam Database.  I"m not sure if they just didn't feel like explaining how to search it but I figured I'd five a quick guide on how to do this because even in a small View deployment this can be like finding a needle in a hay stack as there can easily be hundreds of objects.

First we need to Connect to the VMware View ADAM instance which I covered here. .

Next Right Click the "Default naming Context..."  and select New, and then Query.


Open a New Query Window. Enter what ever you want for the name.
Most likely for the "Root of Search" you want the to click browse and select the top node.
and finally the Query String you'll need to edit to find what your looking for.

Usually I'm looking for a Pool of Vms or specific VM.

When looking for a pool of VMs with same base name I can use a '*' as a wildcard search. Be sure to replace basename with your vm pool name.


(&(objectClass=pae-VM)(pae-displayname=basename*) )


If I know the full VM name then something like the following.


(&(objectClass=pae-VM)(pae-displayname=FullVMName) )



Play around and see what works. To edit your query right click it choose settings.



You can also use any type of boolean search to do more complicated searches.

Logical Operator Description
= Equals to
& AND
! Not
| OR