Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
AnswerRe: HOW TO USE A PROPERTY IN C SHARP Pin
Stephane Rodriguez.4-Nov-02 5:15
Stephane Rodriguez.4-Nov-02 5:15 
AnswerRe: HOW TO USE THE CAPS LOCK KEY Pin
Daniel Turini4-Nov-02 6:04
Daniel Turini4-Nov-02 6:04 
AnswerRe: HOW TO USE A PROPERTY IN C SHARP Pin
Rickard Andersson205-Nov-02 21:00
Rickard Andersson205-Nov-02 21:00 
GeneralWebbrowser and windowclosing event Pin
dricks4-Nov-02 2:28
dricks4-Nov-02 2:28 
GeneralRe: Webbrowser and windowclosing event Pin
Stephane Rodriguez.4-Nov-02 5:46
Stephane Rodriguez.4-Nov-02 5:46 
GeneralCom marshalling Pin
gharrison4-Nov-02 1:12
gharrison4-Nov-02 1:12 
GeneralRe: Com marshalling Pin
Stephane Rodriguez.4-Nov-02 5:49
Stephane Rodriguez.4-Nov-02 5:49 
GeneralProblem in XmlSerialization Pin
Mazdak4-Nov-02 0:02
Mazdak4-Nov-02 0:02 
I have an xml file and xml class that its like this:

public class ModuleSettings
{
	private string connectionString;

	public ModuleSettings()
	{ }

	[XmlElement]
	public string ConnectionString
	{
		get 
		{
			return connectionString;
		}
		set 
		{
			connectionString = value;
		}
	}
}


Then somewhere in my code I do this:

HttpContext context = HttpContext.Current;

ModuleSettings data = (ModuleSettings)context.Cache["Accounts_Settings"];

if (data == null)
{
	XmlSerializer serializer = new XmlSerializer(typeof(ModuleSettings));
.
.


But last line caused unhandled error:

System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file 'E:\WINDOWS\TEMP\ugkdowv3.0.cs' could not be found error CS2008: No inputs specified at System.Xml.Serialization.Compiler.Compile() at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings) at System.Xml.Serialization.XmlSerializer..ctor(Type type)


It was OK some day before when I test it but today came back to it and saw this happend.Any idea?

Mazy

"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me
-Tom Waits

GeneralSome XML sample needed Pin
Mazdak3-Nov-02 20:43
Mazdak3-Nov-02 20:43 
GeneralRe: Some XML sample needed Pin
Paul Watson3-Nov-02 21:19
sitebuilderPaul Watson3-Nov-02 21:19 
GeneralRe: Some XML sample needed Pin
Mazdak3-Nov-02 21:35
Mazdak3-Nov-02 21:35 
Generalwebrequest download speed Pin
Anonymous3-Nov-02 18:42
Anonymous3-Nov-02 18:42 
GeneralRe: webrequest download speed Pin
Daniel Turini3-Nov-02 20:56
Daniel Turini3-Nov-02 20:56 
GeneralRe: webrequest download speed Pin
Stephane Rodriguez.3-Nov-02 20:52
Stephane Rodriguez.3-Nov-02 20:52 
GeneralRe: webrequest download speed Pin
Anonymous4-Nov-02 6:02
Anonymous4-Nov-02 6:02 
GeneralRe: webrequest download speed Pin
Stephane Rodriguez.4-Nov-02 6:14
Stephane Rodriguez.4-Nov-02 6:14 
GeneralRe: webrequest download speed Pin
Anonymous4-Nov-02 8:43
Anonymous4-Nov-02 8:43 
GeneralGetting Bitmap from WebBrowser2 Pin
Gluber3-Nov-02 10:53
Gluber3-Nov-02 10:53 
GeneralRe: Getting Bitmap from WebBrowser2 Pin
John Fisher3-Nov-02 11:18
John Fisher3-Nov-02 11:18 
GeneralBest Video Control is... Pin
antoine@orchus-tech3-Nov-02 8:36
antoine@orchus-tech3-Nov-02 8:36 
GeneralRe: Best Video Control is... Pin
Stephane Rodriguez.3-Nov-02 9:05
Stephane Rodriguez.3-Nov-02 9:05 
GeneralRe: Best Video Control is... Pin
James T. Johnson3-Nov-02 9:18
James T. Johnson3-Nov-02 9:18 
GeneralRe: Best Video Control is... Pin
Stephane Rodriguez.3-Nov-02 9:35
Stephane Rodriguez.3-Nov-02 9:35 
GeneralXML Dataset and Removing Rows... Pin
hammackj2-Nov-02 18:08
hammackj2-Nov-02 18:08 
GeneralRe: XML Dataset and Removing Rows... Pin
John Fisher4-Nov-02 8:08
John Fisher4-Nov-02 8:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.