Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:624346
More Search Options
RSS Available
Matching Posts
Serializing certain properties of an abstract class.
Hi, I have a concrete class called Agency that inherits from an abstract class called _Agency. I am trying to write a web service and serialize the Agency object for my service, however I am getting errors because the abstract _Agency class inherits from further abstract classes and obviously contains unserializable items. I need to able to serialize just the properties of the abstract class for my service as when i try to initiate the web service it gives a runtime error stating that an interface
Posted to
C#
(Forum)
by
martin2dabo
on 2/11/2008
Re: Could not load type 'namespace.User' from assembly 'assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Ok, so I have done some further tests on this issue and found something else that i quite interesting. I searched my whole computer for any instance of the named DLL. I then deleted all files so my computer according to the search mechanism in windows XP has no instance of said DLL as far as I know. Now, i also consolidated two of the projects into one which yielded no new results. When i rebuilt the project that is causing the problems it isnt producing the correct DLL, rather it is produced a very
Posted to
Configuration and Deployment
(Forum)
by
martin2dabo
on 11/16/2007
Re: Could not load type 'namespace.User' from assembly 'assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Ok, I just noticed something interesting. I looked in the asp.net temporary files directory and found the DLL. The size of the DLL is 24kb where as the updated one in the bin directory of the project is 28kb (both have the same modified date). Now why would it be an older version when i am building a new one all the time?
Posted to
Configuration and Deployment
(Forum)
by
martin2dabo
on 11/15/2007
Re: Could not load type 'namespace.User' from assembly 'assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I am positive that the references are correct as i always check for the last modified date on the dll before adding it as a reference. It seems as if it is not using the DLL in the BIN folder and using an old version that is stored somewhere. Do the files in the temporary asp.net folder have anything to do with this?
Posted to
Configuration and Deployment
(Forum)
by
martin2dabo
on 11/15/2007
Re: Could not load type 'namespace.User' from assembly 'assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Ok, So i built each project again, made sure that each dll was last modified to the current date and time which they were. I removed all references from each project and readded them. Still I get the same problem. This is a nightmare. I appreciate your response.
Posted to
Configuration and Deployment
(Forum)
by
martin2dabo
on 11/15/2007
Re: Could not load type 'namespace.User' from assembly 'assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Thanks for your reply, Now, i have another question. When i load up the DLL in object explorer I see the type User() in there? What possible reason could there be that it cant find the type? Is it referencing a cached DLL thats old or not the most recent one? The one I see in the BIN directory has a time stamp that is current. Thanks
Posted to
Configuration and Deployment
(Forum)
by
martin2dabo
on 11/15/2007
Could not load type 'namespace.User' from assembly 'assemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Hi Folks, I am having a very frustrating time trying to resolve an issue I have been experiencing. I have 1 solution which contain three different projects within it. The first project has NO reference to anything in the other two. The second project references the DLL produced by the first project. The third project references the DLL produced by the first project and also the DLL produced by the second project. Now my issue is that in the third project i instantiate some web custom controls from
Posted to
Configuration and Deployment
(Forum)
by
martin2dabo
on 11/15/2007
Application.Run() without showing the form
Evening all, My question is can I have an System.Windows.Forms.Application.Run(MainForm) statement and execute it without having parsed MainForm visually appear. I have attempted to set properties such as Visible and methods like Hide() in the Form_Load event to no avail. It still shows the form. //This is the class where i try and run my mainForm code Trip_GenericWebBrowser _newGenericBrowserForm = new Trip_GenericWebBrowser (); _newGenericBrowserForm.Controls.Add(_newBrowser); _newGenericBrowserForm
Posted to
Free For All
(Forum)
by
martin2dabo
on 2/28/2007
Re: Casting
Indeed, I use casting everywhere in my code particularly when i have conditionals to determine the type of a control or object that is passed into a method for example. public object _returnObj(System.Windows.Forms.Control _ctrl) { object _castedObj; if (_ctrl.GetType() == typeof (System.Windows.Forms.ListBox)) { _castedObj = (System.Windows.Forms.ListBox) _ctrl; } else { _castedObj = (System.Windows.Forms.TextBox) _ctrl; } return _castedObj; }
Posted to
C#
(Forum)
by
martin2dabo
on 2/28/2007
Re: Casting
All casting is achieving in this instance to my understanding, is that you are telling string s to expect a string value. It doesnt actually convert it to a string, hence the .ToString() function. M
Posted to
C#
(Forum)
by
martin2dabo
on 2/28/2007
Page 1 of 4 (39 items) 1
2
3
4
Next >
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online