|
I need to compile the solution written in windows application using C#.
My build file is as follows:
<?xml version="1.0" ?>
<project name="TestNANT" default="build" basedir=".">
<target name="build">
<solution solutionfile="TestNANT.sln" configuration="Release" >
</solution>
<property name="expected.output" value="bin/${configuration}/TestNANT.exe"/>
<fail unless="${file::exists(expected.output)}">Output file doesn't exist in ${expected.output}</fail>
</target>
</project>
when i execute 'nant' command in command prompt, i get the following error:
BUILD FAILED
Microsoft Visual Studio.NET 2005 solutions are not supported.
Total time: 0 seconds.
Could anyone please help me out here or tell me the correct way to write the script...
Thanks...
Deepa
-- modified at 5:15 Wednesday 18th July, 2007
|
|
|
|
|
This really isn't the right forum (or even the right site) to be posting an NAnt question.
That being said, the last time I used NAnt (about 6 months ago), the solution task did not support Visual Studio 2005 formatted solution or project files. The work around for this is to use the exec task and run devenv.exe or msbuild with the appropriate command line. I believe there was an actual msbuild task that is part of the NAnt Contrib project, but I'm not 100% sure.
|
|
|
|
|
Hi Fellows:
I am facing an error of access voilation while running a piece of code with Unsafe Context...I am developing steganographic application.And I want to embedd DataImage into Cover image using LSB method with the help of Lockbits() and UnLockBits () methos..
But when I compile the code it is compiled & Build succesfully.But at run time the app. frozes and with the following error message for the statement.
<code>byte bb=ptr1[0] //where ptr1 is byte type pointer that points to Scan0 ,i.e 1st byte of locked image array. </code>
<b>Error :AccessVoilationUnhandelled exception</b>
Plateform :Visual C# Express edition VS.Net 2.0,Win XP
<b>Error Message:</b>
AcessVoilation: attempt to read or write protected memory.This is the oftenindication that other memeory is currupt.
also I am thanfull to Chorrina John...who write very helpful articles on Steganography...I request If she is there please help & Supervise me in my project.
Waiting for ur good response...
Thanks
I am getting B.S. degree in Computer Science.And want to enhance career in Software development.
|
|
|
|
|
Obviously ptr1 is not at all a pointer to a part of the image, but points somewhere else.
If you can show a bit more of the code, it might be possible to say anything more about it.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi everyone.
I have created an application that exports a new xls document, I did that using the com component "Microsoft Excel 9.0 object library" but of course that made my application dependant to this library. That shouldn't work on another client machine that don't have this version of Excel installed.
How can i make an application independent from my office. I mean it should be compatible with 'ALL' excel versions
any idea how to do this. and forget about the 'csv' format.
thanks
|
|
|
|
|
|
Hi, Im convinced i did this many years ago, but I cant find the code.
I did find this on Google Groups tho'
You can use the Microsoft OLE BD provider for Jet to dynamically
create an Excel workbook. Specifying a non-existent but valid path,
workbook name and Excel 'table' in a SELECT..INTO query results in it
being created.
Hope this helps
David
|
|
|
|
|
thank you guys, I think both of your suggests might work, but the first one looks like used in a web app, and the second one is cool.
Though i haven't tried any. Coz I think i found what i wanted,
http://support.microsoft.com/kb/302902/[^]
go to 'late binding', it's working for now, there's the test stuff later.but so far it worked on two workstations with MSoffice 2003 and the other 2000.
Thanks a lot for your help though, and i might use one of these methods if the current one fails, if not it's still good knowledge for me and ppl who might face such problems.
thanks
|
|
|
|
|
I have 2 things in reportviewer but print only one.
First one is datafields and anotherone is Image or Text.
I want see both in reportviewer but print only datafields.
If u have any idea in any report like RDLC,Crystal Report .... and any one then replay me....
Please replay fast...
Thanks in Advance.....
Manoj Patel
|
|
|
|
|
Hi All,
Hi,
I am developing a digital signature verification component in C# in .NET framework version 2.0.
In this verification I need to check the Certificate revocation status against a Offline CRL stored in a directory? I didnt find any api to initialize a CRL object or any examples to check revocation status?
Could some one please let me know how to use X509Chain object for offline CRL verification? I didnt find any examples. Or is there any other mechanism to do this checking?
Thanks-
Supraja
|
|
|
|
|
Hi everyone..
My TreeView Structure is like this....
TextBox
|
|_Textbox1
|_Textbox2
and im having two Textboxes Name Textbox1 and TextBox2.
My need is on selecting or clicking the Textbox1 in the tree node
the focus should be set on the Textbox1 if i clicked any other node
means the focus should be set on the coressponding Textbox..How should i achieve it?
My code is below..
private void TV_AfterSelect(object sender, TreeViewEventArgs e)
{
Control[] ctrl = this.Controls.Find(TV.SelectedNode.Text, true);
if (ctrl.Length > 0) ((TextBox)ctrl[0]).Focus();
}
But i getting only just a blink in the textbox and the focus is not appear permanently..
Rgrds
Kanna..
|
|
|
|
|
Hi friend,From Today Im going to work with Web Parts...Please let me know regarding to this...
Hi,Im Razana
|
|
|
|
|
|
Plus, it would be the best if you ask in ASP.NET forum.. thank you!
|
|
|
|
|
Webparts[^]
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Sir,
My coding for exprting crystal report in excel is as below. I can get result very well in my pc. But i can't export it in web server. I think something is missing like patches or drivers which are required for crystal reports at web server. I am giving error description also ... pls reply me quickly.
Coding Part :
MemoryStream oStream;
Response.Clear();
Response.Buffer = true;
oStream = (MemoryStream)oRD.ExportToStream(ExportFormatType.Excel);
Response.ContentType = "application/vnd.ms-excel";
try
{
//write report to the Response stream
Response.BinaryWrite(oStream.ToArray());
Response.End();
}
catch (Exception ex)
{
strScript = "<script language=javascript>\n";
strScript += "\tstrShow='CMTL';strErr='Y';strValue = '";
strScript += Server.HtmlEncode(ex.Message.ToString());
strScript +="';\n";
strScript += "</script>\n";
RegisterStartupScript ("warning", strScript);
return;
}
finally
{
//clear stream
oStream.Flush();
oStream.Close();
}
Error part at web server :
Error Message: Error in File E:\NET_Portals\CMTL\Weekly_Reports\crpCommonFieldCom.rpt:
Error detected by export DLL:
Page Error Occurred: /cmtl/cmtl_concrete_field_com.aspx
ExceptionType: CrystalDecisions.CrystalReports.Engine.ExportException
Stack Trace: at '.'I(String , EngineExceptionErrorID )
at '.'D(Int16 , Int32 )
at '.'C(Int16 )
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
at CMTL_PROJECT.cmtl_concrete_field_com.btnGraph_Click(Object sender, EventArgs e) in f:\webdevelopment\cmtl_project\cmtl_concrete_field_com.aspx.cs:line 272
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain()
khushbu patel
Reliance Industries Limited,
Software Engineer,
Jamnagar.
|
|
|
|
|
hi i have multiline textbox i want 3 lines visible at a time , after typeing then i click on next button ,
it gives me Redirect URI cannot contain newline characters.
Whts the solution to this does anybody know....
this line is showing error
<pre>
Response.Redirect("survey.aspx?Count=" + Convert.ToInt32(i + 1)+ "&temp="+Session["Query"].ToString());
</pre>
srinivas
|
|
|
|
|
|
i need to invoke a windows method. For this i call an exe file from windows\system32 directory. But i need to know in which drive winodws is installed. I think it is not wise to hard-code my code -"c:\windows\system32". So can any one tell me how do i know this path from my program in run time?
Thanks
Chayan
|
|
|
|
|
I use System.Environment.ExpandEnvironmentVariables to expand %windir%
e.g.
string MediaDir = System.Environment.ExpandEnvironmentVariables ( @"%windir%\Media\" ) ;
|
|
|
|
|
Hey, Thanks a lot for such quick response. It's really great !!! Thanks mate..
Chayan
|
|
|
|
|
Look for the Windir system variable in the environment variables...
System.Environment.GetEnvironmentVariable("windir") will return the string where Windows is installed
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Thanks mate for your great help. I am really happy to find such a simple and cool solution . Thanks a lot !!!!
Chayan
|
|
|
|
|
A better solution is System.Environment.GetFolderPath( System.Environment.SpecialFolder.System ) .
|
|
|
|
|
Thanks a lot....Now i know multiple solutions to my problem..
Chayan
|
|
|
|