|
Server.MapPath("~");
This returns your root directory Path
Enjoy!Best Regards,
Chetan Patel
|
|
|
|
|
hi sir,
please help me sir.i am new in asp.net and i am developing an application on asp.net.and i am using crystal report.sir my crystal report is working fine locally.but sir it is giving error on server when it loads.and the error message is this .
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
i am unable to understand that what could be the problem.and for crystal report i am adding following assemblies in web.config and same dll in my bin folder.
add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
sir please help me as soon as possible because date of submission of this project has passed.
|
|
|
|
|
|
thank u sir
but which application i am running locally same application i am deploying on server.but i am facing the problem on server.while all the dll's in web.config and bin folder are same as locally running application on server.
please help me.
|
|
|
|
|
I am not talking abt application .I am talking abt software..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
|
hi
I want compare old html file with a new one and highlight the differences between them, but the difference should only be the one made in the text not the html tags... like what we see in browser
waiting for a early reply
thanking you
kirti
|
|
|
|
|
asset
|
.=====Fixed assest
.
.=====Current asest
|
======Cash
.======Bank
|
=====SbH Bank
==== Hdfc Bank
account code, parent code, ac/name, acctype
| | | |
10000 assest o
101000 10000 fixed 1
102000 10000 current 1
1020200 bank 1020000 1
10202001 sbh bank 1020200 2
10202001 Hdfc Bank 1020200 2
please make this application with asp.net with c#
Thanks Regards
|
|
|
|
|
|
I am trying to add a vb class in a project that is written in C# but i do not know how and there is no toturial how to do that help please.
|
|
|
|
|
|
you mean i do not add the file directly? I have to add the dll file of the vb class to the project??
|
|
|
|
|
Yes..!thts a good practice
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Creating DLL for each file is not a good practice. . If there are multiple cs and that can be compile into a single dll. For single code file we can easily put into App_code folder with some Config file change.
|
|
|
|
|
Abhijit Jana wrote: Creating DLL for each file is not a good practice
I never mention tht for each file..! Did I?
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Don't Misunderstood me. As He was asking for the single file that's why I told.
|
|
|
|
|
LOL..!Just trying to chatting with u after a long time..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
send me ur gmail id :mca_abhijit@yahoo.co.in or let me know your skype id
|
|
|
|
|
You can add VB class file inside App_Code Folder with in a new folder like,
App_Code > VB Class > MyVBFile.vb
and create another folder ( like :CSharpClass ) where you can put all of C# class file
Now, open Web.config file and do the following entry,
<compilation>
<codeSubDirectories>
<add directoryName="VBClass"/>
<add directoryName="CSharpClass"/>
</codeSubDirectories>
</compilation>
You may have a quick look into this article,
<a href="http://www.codeproject.com/KB/aspnet/AspNetAppFolder.aspx#f
Please let me know if you have any issue
|
|
|
|
|
Hello all, Could somebody tell me how can i close all the windows opened in my windows application except my main window.
|
|
|
|
|
|
Hi, all
would you please show me how to call following sp from asp.net
say the TEST sp is as follows takes the following parameters:
@ID , @MeetingID, @Title
how can I call this from c# (code behind file) in the folowing fashion
TEST @ID=intID,@MeetingID=intMID,@Title=strTitle
or
TEST @Title=strTitle,@ID=intID,@MeetingID=intMID
or
TEST @Title=strTitle,@MeetingID=intMID,@ID=intID
NOTE: All of these statement execute successfully from query analyzer.
Thanks in advance.
|
|
|
|
|
Just add the parameters below
As it is a store procedure all you have to do is to send the params to the SP..!
public static bool Update_Driver(int ID, int MeetingID, string Title)
{
bool result = false;
SqlCommand command = new SqlCommand("Your Store ProcedureName", YourConnection);
command.CommandType = System.Data.CommandType.StoredProcedure;
command.Parameters.AddWithValue("@ID", ID);
command.Parameters.AddWithValue("@MeetingID", MeetingID);
command.Parameters.AddWithValue("@Title", Title);
command.Connection.Open();
try
{
result = Convert.ToBoolean(command.ExecuteNonQuery());
}
catch (Exception ie)
{
}
command.Connection.Close();
command.Connection.Dispose();
return result;
}
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi,
I am developing a Web Application in ASP.NET and when I publish, I got options for publishing either only the required files to run the website OR all project files. If I choose all project files, then, lots of unnecessary files are being published that I dont want. I want to publish only the required files. But I see that, some files (zip fils) in a folder is not published, I think, Visual Studio assumes that, a zip file is not required to run the website. But thats wrong. I want to publish a zip file so that user can download that individually. Would anyone tell me how I can do that ?
|
|
|
|
|
AFAIK
Publishing is not but converting dll and make the code secure...!
So after publishing the files add the required zip files to the project where it used to be.So they will be no problem adding the zip files manually as it is not part of the code . If you want into a package i am afraid you cant add it manually..!
refer the link below it may help..!
http://msdn.microsoft.com/en-us/library/1y1404zt(VS.80).aspx[^]
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|