|
I create setup program for distributed my application to client. The client computer doesn't have .Net 2003 and crsytal report. I have problem with crystal decision when I view report from my application. The computer must be install .Net 2003. But I don't want to install it. I already install .Net Framework 1.1, but it is still erorr. How to resolve that. I really thank you, if you guys can help me
|
|
|
|
|
Contact Crystal for a redistributable product license key.
I'd offer more information than that, but I wasn't the one that had to deal with Crystal Reports the last time we completed a project using it. It looks like you need to add the redistributable to your deployment project and add a custom property with the license key details.
|
|
|
|
|
somebodys can help me do that?
why i'm try delete it but occur an error "access denied" so that folder i had shared with full control for everyone
thanks!!!
Nho'c Ti`
|
|
|
|
|
Start by eliminating the possibilty that it is user related. Take a copy of the file and see if you can delete manually but using the same user that will the code runs as. If this works and the application still cannot delete another copy of the file, then it has to be code.
We would then need to see some source to find out why it doesn't work.
Al.
|
|
|
|
|
|
I'm having difficulty getting the Microsoft Application Block for Exception Management working. In particular, I'm trying to customize the DefaultPublisher so that it uses a custom log source in the EventLog.
Here are some of my constraints, many of which I've overcome.
1) I wanted the assembly deployed to the GAC so that more than one app could share it.
2) My apps are web apps, so I had to deal with security issues regarding getting a custom log source set up.
OK, so I created my strong names for the ExceptionManagement and Interfaces assemblies, and got both installed to the GAC. No problem. I used the INSTALLUTIL.EXE to run the custom installer for the ExceptionManagement assembly.
So far so good. I manually created the registry key and string value for my log source.
Next, I set up the web.config file. Here's the way I had it set up the first time:
<configSections>
<section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler, Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement>
<publisher assembly="Microsoft.ApplicationBlocks.ExceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher"
logName="Application" applicationName="My App Log Source" />
</exceptionManagement>
Now when I generated an exception, several were logged using my custom log source, including several that it was unable to find the type for the section handler. Well, I figured out that it was because I had an assembly in the GAC and hadn't fully qualified the names.
So I fixed the web.config to be:
<configSections>
<section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement, System, Version=1.0.1404.32518, PublicKeyToken=d16c1e31f52ae760, Culture=neutral" />
</configSections>
<exceptionManagement>
<publisher assembly="Microsoft.ApplicationBlocks.ExceptionManagement"
type="Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher, System,
Version=1.0.1404.32518, PublicKeyToken=d16c1e31f52ae760, Culture=neutral" logName="Application" applicationName="My App Log Source" />
</exceptionManagement>
Well, now to the point I'm at now. I get an internal exception that has the following detail. I'm at wits end! Any help would greatly be appreciated!!!
Thanks,
Andy
1) Exception Information
*********************************************
Exception Type: System.Configuration.ConfigurationException
Message: Exception creating section handler. (E:\Users\All Users\Documents\Dev\dotNet\AcssExtranet\Web\web.config line 5)
BareMessage: Exception creating section handler.
Filename: E:\Users\All Users\Documents\Dev\dotNet\AcssExtranet\Web\web.config
Line: 5
TargetSite: System.Configuration.IConfigurationSectionHandler GetFactory(System.String)
HelpLink: NULL
Source: System.Web
StackTrace Information
*********************************************
at System.Web.Configuration.HttpConfigurationRecord.GetFactory(String configKey)
at System.Web.Configuration.HttpConfigurationRecord.Evaluate(String configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at System.Web.Configuration.HttpConfigurationSystemBase.System.Configuration.IConfigurationSystem.GetConfig(String configKey)
at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
at Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Exception exception, NameValueCollection additionalInfo)
2) Exception Information
*********************************************
Exception Type: System.IO.FileNotFoundException
Message: File or assembly name Microsoft.ApplicationBlocks.ExceptionManagement, or one of its dependencies, was not found.
FileName: Microsoft.ApplicationBlocks.ExceptionManagement
FusionLog: === Pre-bind state information ===
LOG: DisplayName = Microsoft.ApplicationBlocks.ExceptionManagement, Culture=neutral, PublicKeyToken=d16c1e31f52ae760
(Partial)
LOG: Appbase = file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Microsoft.ApplicationBlocks.ExceptionManagement, Culture=neutral, PublicKeyToken=d16c1e31f52ae760
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/extranet/742de6b4/69ece159/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
LOG: Attempting download of new URL file:///E:/Users/All Users/Documents/Dev/dotNet/AcssExtranet/Web/bin/Microsoft.ApplicationBlocks.ExceptionManagement/Microsoft.ApplicationBlocks.ExceptionManagement.EXE.
TargetSite: System.Type GetType(System.String, Boolean)
HelpLink: NULL
Source: mscorlib
StackTrace Information
*********************************************
at System.Type.GetType(String typeName, Boolean throwOnError)
at System.Web.Configuration.HttpConfigurationRecord.GetFactory(String configKey)
For more information, see Help and Support Center at
Andy Hochstetler
|
|
|
|
|
I'm using the callback function of RASDIAL (RASAPI32.DLL). It works just perfect: The RASDIAL call returns immediately and my callback function is called numerous times to process the progress/error messages. In order to wait for the successful connection, I wrote a WHILE-loop in my main class to wait for the "Connected" message. That's where I'm having problems: the Application.DoEvents() in my WHILE-loop causes a System.NullReferenceException followed by message telling me that there is no source code available at the current position. I learned that the DoEvents call is for single-threaded programming and I guess that the RasDial callback function probably introduces multiple threads. I found a workaround by using a Timer without DoEvents() but then I find myself left in the Timer-Event to go on with my app. Summary: I WANT TO USE DoEVENTS() or something equivalent! Can someone please help me out?
private void btnRasConnect_Click(object sender, System.EventArgs e) {
ras = new Dialup.RASDisplay();
uint retCode = ras.Connect(""); // RasDial with callback
if(retCode != 0) {
ras.DisplayRasError(retCode);
} else {
string tmpString = ras.GetLastMessage();
while((!tmpString.StartsWith("ERROR:")) &&
(tmpString != "Connected") &&
(tmpString != "Disconnected")) {
Application.DoEvents(); // **** causes abort in unknow module
tmpString = ras.GetLastMessage();
}
}
return;
}
public uint Connect(string varPhoneNr)
{
RASDIALPARAMS lprasdialparamsa = new RASDIALPARAMS();
FPtr myFunc = new FPtr(RasDialFunc);
lprasdialparamsa.szEntryName = m_ConnectionNames[0];
lprasdialparamsa.szPhoneNumber = varPhoneNr;
lprasdialparamsa.szDomain = "";
lprasdialparamsa.szUserName = "Administrator";
lprasdialparamsa.szPassword = "abcdefg";
uint retVal = RAS.RasDial(0,@"rasphone.pbk", ref lprasdialparamsa,0,myFunc, ref m_ConnectedRasHandle);
return(retVal);
}
public void RasDialFunc( uint unMsg, RASCONNSTATE rasconnstate, uint dwError ) {
string lpszMsg;
byte [] tmpBuf = new byte[256];
ASCIIEncoding encoding = new ASCIIEncoding();
string szStrBuf = encoding.GetString(tmpBuf);
if(dwError != 0) {
if ( RAS.RasGetErrorString( dwError, szStrBuf, 256 ) != 0 ) {
m_LastMessage = "ERROR: Undefined RAS Dial Error " + dwError.ToString();
}
else {
m_LastMessage = "ERROR: " + szStrBuf;
}
Disconnect();
return;
}
switch ( rasconnstate ) {
case RASCONNSTATE.RASCS_OpenPort: lpszMsg = "Opening Port";break;
case RASCONNSTATE.RASCS_PortOpened: lpszMsg = "Port Opened";break;
case RASCONNSTATE.RASCS_ConnectDevice: lpszMsg = "Connecting Device";break;
case RASCONNSTATE.RASCS_DeviceConnected: lpszMsg = "Device Connected";break;
case RASCONNSTATE.RASCS_AllDevicesConnected: lpszMsg = "All Devices Connected";break;
case RASCONNSTATE.RASCS_Authenticate: lpszMsg = "Starting Authentication";break;
case RASCONNSTATE.RASCS_AuthNotify: lpszMsg = "Authentication Notify";break;
case RASCONNSTATE.RASCS_AuthRetry: lpszMsg = "Authentication Retry";break;
case RASCONNSTATE.RASCS_AuthCallback: lpszMsg ="Callback Requested";break;
case RASCONNSTATE.RASCS_AuthChangePassword: lpszMsg = "Change Password Requested"; break;
case RASCONNSTATE.RASCS_AuthProject: lpszMsg = "Projection Phase Started";break;
case RASCONNSTATE.RASCS_AuthLinkSpeed: lpszMsg = "Link Speed Calculation";break;
case RASCONNSTATE.RASCS_AuthAck: lpszMsg = "Authentication Acknowledged";break;
case RASCONNSTATE.RASCS_ReAuthenticate: lpszMsg = "Reauthenticatation Started";break;
case RASCONNSTATE.RASCS_Authenticated: lpszMsg = "Authenticated";break;
case RASCONNSTATE.RASCS_PrepareForCallback: lpszMsg = "Preparation For Callback";break;
case RASCONNSTATE.RASCS_WaitForModemReset: lpszMsg = "Waiting For Modem Reset";break;
case RASCONNSTATE.RASCS_WaitForCallback: lpszMsg = "Waiting For Callback";break;
case RASCONNSTATE.RASCS_Interactive: lpszMsg ="Interactive";break;
case RASCONNSTATE.RASCS_RetryAuthentication: lpszMsg = "Retry Authentication";break;
case RASCONNSTATE.RASCS_CallbackSetByCaller: lpszMsg = "Callback Set By Caller";break;
case RASCONNSTATE.RASCS_PasswordExpired: lpszMsg = "Password Expired";break;
case RASCONNSTATE.RASCS_Disconnected: lpszMsg = "Disconnected";break;
case RASCONNSTATE.RASCS_Connected:
lpszMsg = "Connected";
m_connected = true;
break;
default: lpszMsg = "Noch nicht aufgenommener Fehler"; break;
}
m_LastMessage = lpszMsg + Environment.NewLine;
}
|
|
|
|
|
Some time ago, I found and downloaded a file that would convert files created by the two version from one to the other. Unfortunately, I have now lost it. Can anyone point me to it?
Prof. Lloyd
|
|
|
|
|
VSConvert[^].
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
http://www.codeproject.com/macro/vsconvert.asp
Practice sesquipedalianism!
|
|
|
|
|
I'm starting an application with Managed C++ with windows Forms. I know how change the current Culture and since this action every resouces that open take the new Culture Value( System::Threading::CurrentThread::CurrentUICulture = new Globalization::CultureInfo (String * IdCulture) (...) )
OK that's right, but what happens with the Main Form that is Loaded since the start of execution?
Can I do a Reload or something like that, by anyway, or assing dinamically another ResX File to the MainForm for translate it without Close()?
Thanks gurus, I expect your answers
|
|
|
|
|
You can't change the locale of a form once it is loaded. You have to create a new instance of the form with the new locale.
If you are really slick you could copy the original form, but with the new locale, and use the transparency set to 0. Once everything is in place you can fade it in over the old form, then remove the old form - This would be so nice from a UI perspective - no flicker of changing forms and a really obvious but subtle change occurs.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
OK, Colin. It works.
Thank you very much.;)
|
|
|
|
|
You got the fade-in effect to work too? If that's the case then excellent work. If not then I'm glad you got a working solution.
Regards,
Colin.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
what is the cleanest way of dealing with memory-mapped files within .Net?
Looking for a way to port a large library code that makes heavy use of memory-mapped files.
Any pointers would be appreciated. Thanks.
Chen Venkataraman
|
|
|
|
|
Chen,
From what I've read, you'll have to wrap the Win32API calls yourself and probably make use of Unsafe code in your application to get this working.
Memory Mapped Files are not directly supported in .NET ...
D.
|
|
|
|
|
I like to get help for the below sql statement.
I use two oledb connection objects to connect to 2 different sqlserver - DB's.
NewSQL = insert into sample "(SELECT * from sample1)
In the above "insert" statement the table 'sample' belongs to one conn-object and table 'sample1' belongs to another conn-object.
can anyone give me the solution.
thankyou
kaling
|
|
|
|
|
You cannot use two connections in one SQL statement in .NET. The SQL statement goes in one Command object, which is attached to one connection.
I am assuming you are using SQL Server 6.5 or previous (otherwise you should really be using a SqlConnection and not an OleDbConnection)
I am assuming this is not a one time operation. There are better solutions for copying data between two databases than this.
Okay - A solution (note: I didn't say "THE solution", just "A solution")...
Create a data reader to suck out the data from sample1. On each Read() iteration create an insert command to inject a record into sample.
Another solution may be, and I say "may be" because I've never tried it, to use a fully qualified table name: server_name.database_name.owner_name.table_name
I hope this helps.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
Another possible solution to do this is to create and use data VIEWS. Simply create a view that combines data from the two SQL servers, and then query agains it.
Peter
|
|
|
|
|
Thank You friends, for ur support in solving the problem.
kaling
|
|
|
|
|
Hi All,
I am into webdevelopment with ASP, .NET and stuffs. I am running my PC with XP OS. Can I maintain the same ot shall I change to 2000 Adv Server?
The problem here is I cant run SQL server 2000 with full server option.
Please suggest me... to be or not to be with XP?? I have plans to go for the 2003 server later (after 6 months)
I was born intelligent Education ruined me!.
|
|
|
|
|
My dev box has Windows XP with IIS and the developer version of SQL server installed for tests and sample projects. Real projects run off our Windows 2000 Server (not advanced) box with SQL server installed. Our hosting boxes are also Windows 2000 Server and they work fine.
Remember you can run SQL server on a non-server Windows installation if you have the developer edition.
regards,
Paul Watson
Bluegrass
South Africa
Marc Clifton wrote:
"organically fed captivity free regurgitated bee nectar" (honey) on dieting.
Crikey! ain't life grand?
|
|
|
|
|
Paul Watson wrote:
Remember you can run SQL server on a non-server Windows installation if you have the developer edition
I dont have it, thats the problem. So, I prefer to go for the Server 2000 as you said... may be 2003 some days later (its not right time for me. I would experiment with the 2003 with some one else PC in the office, and then give it a try to my PC )
Thanks.
I dont know how this will help the CP people - I got 500.100 internal server error when I was trying to reply your message. I got that over only after 3 try.
I was born intelligent Education ruined me!.
|
|
|
|
|
If it's just for your development machine, take this route ...
Download the MSDE 2000 SQL Desktop engine from Microsoft's site for free MSDE 2000[^]
Following that, you can then download a new GUI front-end, if you feel the need for such things, like this one MSDEGUI[^] that was developed by Christian Graus here at CP.
D.
|
|
|
|
|
Douglas Troy wrote:
Download the MSDE 2000 SQL Desktop engine
Yes, thats a better idea. Thanks a lot.
Douglas Troy wrote:
Following that, you can then download a new GUI front-end, if you feel the need for such things, like this one MSDEGUI[^] that was developed by Christian Graus here at CP.
I use the 1clickfreedb - a utility - i guess again posted in CP.
I would give a try with the utility you had specified, and try to grasp something out of it...
I was born intelligent Education ruined me!.
|
|
|
|