Deployment Error


Author
Message
rmoore
rmoore
StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)
Group: Forum Members
Posts: 21, Visits: 84
I'm trying to deploy an application to a Windows 2000 Server. The way we deploy applications here is that a folder is created that contains the .exe and all the required .dll's. Then users only have to click a shortcut to the app's .exe file. I keep getting a "Method not found" exception whenever I try to open a couple forms from an MDI. Here is the stack trace:

====================================================================================================================================================

Method not found: 'Void MicroFour.StrataFrame.UI.Windows.Forms.SearchFieldItem.set_SecurityKey(System.String)'.

Exception (MissingMethodException): Source="UJ.ExceptionManagement"; Target=null; Tag=null;

Message = "Method not found: 'Void MicroFour.StrataFrame.UI.Windows.Forms.SearchFieldItem.set_SecurityKey(System.String)'."

Environment: ThreadIdentity="" DateTime=["2007-06-01 13:45:27.475"] ThreadName=null WindowsIdentity="STRUSS\rmoore" ThreadId="1" DomainName="CMPR.exe" OSVersion=["Microsoft Windows NT 5.0.2195 Service Pack 4"] MachineName="INVENTORY"

UserName="rmoore"

Frame0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

at CMPR.CreditMemoForm.InitializeComponent()

at CMPR.CreditMemoForm..ctor()

at CMPR.MDIMainForm.tsbtnCreditMemo_Click(Object sender, EventArgs e)

Implementer (MDIMainForm): components=System.ComponentModel.Container; tsbtnCreditMemo=(->sender); tsbtnProblemReview={Problem Review Form}; ToolStripSeparator1=System.Windows.Forms.ToolStripSeparator;

ToolStripSeparator2=System.Windows.Forms.ToolStripSeparator; tsbtnSettings=Settings; tsbtnCustomerMaintenance={Customer Maintenance}; ToolStripSeparator3=System.Windows.Forms.ToolStripSeparator; tsbtnEditMonths={Lock/Unlock Months};

ToolStripSeparator4=System.Windows.Forms.ToolStripSeparator; LockedMonthsBO1={ [CMPR.LockedMonthsBO]};

scrollPosition (Point): x=0; y=0;

ToolStrip1 = {System.Windows.Forms.ToolStrip, Name: ToolStrip1, Items: 9}

Parameters: sender={Credit Memo Form}; e=System.EventArgs;

Remaining Stack Trace - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)

at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)




I've confirmed that the Security Key in the Security Project Properties dialog matches what is in AppMain.vb as

SecurityBasics.SecurityDataSourceKey = "CMPR.EncryptionKey"


There is no ViewSecurityKey set on any of the forms in question. Any ideas why I'm getting this error?



Thanks
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
By default .NET does not allow an application to run from a network drive.  You either need to setup your machine policies on each computer to allow a trust for that network drive, or like we do, have the client insgtall locally and then look to a network drive to see if there is a new version.  if so, it downloads it to the local machine, then updates itself.  Your problem here though is that the network drive is not a "trusted" source and your .NET application is not allowed to run.
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Control Panel, .NET Framework 2.0 Configuration, Runtime Security Policy, then "Adjust Zone Security"



If that works to fix your issue (it did mine as Trent said) you can set that via GPO.

Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks Keith, I was in a bit of a rush and failed to mention where to set it.  Smile
rmoore
rmoore
StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)
Group: Forum Members
Posts: 21, Visits: 84
The application runs on the network drive it's just that when I click a button to open a maintenance form, I get this error. This happens on 3 of the 4 maintenance forms the 4th one opens just fine. We have deployed several StrataFrame based applications successfully by this manner. However this is the first application that uses RBS. So I'm not sure that I understand your response. Can you elaborate a little more on this?



Thanks
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
I was off base then, I was just telling you where to set what Trent thought your problem might be.



Good luck.

Keith Chisarik
rmoore
rmoore
StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)
Group: Forum Members
Posts: 21, Visits: 84
I adjusted zone security but I'm still getting a MissingMethodException. The method in question is:

Void MicroFour.StrataFrame.UI.Windows.Forms.SearchFieldItem.set_SecurityKey(System.String)



StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
It looks like you have the latest version of the DLLs in the C:\Program Files\Common Files\MicroFour\StrataFrame folder, but the DLLs were not placed in the GAC.  VS is referencing the DLLs in the common files folder, but at runtime, the DLLs in the GAC are being used, and the SearchFieldItem.SecurityKey property is not there.  Try dragging the MicroFour StrataFrame*.dll files into the C:\Windows\Assembly folder and see if that fixes the problem.
rmoore
rmoore
StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)StrataFrame Beginner (29 reputation)
Group: Forum Members
Posts: 21, Visits: 84
Yes, that fixes the problem.



Thanks, Ben!
StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Glad you're working Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search