Sys.WebForms.PageRequestManagerParserErrorException: The message recieved from the server could not be<br />
parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response<br />
filters, HttpModules, or server trace is enabled<br />
Details: Error parsing near '<script language='ja'
The system complains because you are doing something very insecure. I think you can turn this off with PageValidation or something, but rather find another way. I suggest you try that in the Web or ASP.NET forum.
I am having some serious problems using the built-in setup project in VS2005. During installation users can check if they want a client programm installation, a client installation including database (and database server) or only database (including database server).
Depending on what the user chooses I'd like to show a different setup dialog.
i.e. user chooses client -> install -> ready
user chooses client incl. database -> show dialog with textboxes for servername/databasename
Is it possible to include a user-defined customizable dialog in the setup project?
Is it possible to define different "ways" in a setup project? (on a) show this dialogue, on b) show another dialogue)
I don't think it's possible to insert custom dialogs into an Installation using a Visual Studio Setup Project. You can customize the dialogs that are already available, but that's about it. For fine grained control over the setup project you'll need to use some other Installer package to create your MSI file. Orca is Microsoft's basic MSI file editor: http://support.microsoft.com/kb/255905[^]
That being said, I've run into the same situation. What I did was customize one of the existing dialogs to allow the user to select a Client (no DB) or Server (lots of DB) installation, and then pass that choice into a Custom Action DLL that performed any configuration items that the MSI wasn't able to handle (that included my DB setup). The custom action can do whatever you want, so I handrolled a dialog sequence that prompted for the DB login info (and a bunch of other stuff) and then went to work beating Windows into submission using C#.
My application depends on a sql server database I want to deploy my project in the client machine with out deploying the sql server express edition because it take some disk space and it some times cause some problems in its deployment(mainly if user don't have any experience).Is there any way to overcome this situation.
Right-click your project and add a new installer class. Within your installer class add following code
Public Overrides Sub Install(ByVal stateSaver As _
' Creates the database.
ExecuteSql("master", "CREATE DATABASE dbTest")
' Creates the tables.
ExecuteSql(strDBName, "CREATE TABLE .....")
Catch ex As Exception
' Reports any errors and abort.
I found this code in the net. Although it is written in vb.net it may help you.
thanks for help,
but does it will work on a client without installing any version of sql server.The main problem is that the user will use the database as a flat database like the access database.
is there a sql engine in framework 2 to attache the database to it.
most SMTP servers limit sending messages to 600 per hour, my application enables user to send
mail message to more than the limited number so I want to know how to get the count of messages sent in the current hour to inform user that there may be some messages will be send after an amount of time.
I have to find [start -> stop2] enumerator, and then cut the end. I cannot find stop1 directly, because between start and stop1 there are other elements which satisfy a stop1 condition. Other words, I need to get the last element which statisfies a condition stop1 before stop2. Hope it's clear what I meant here.
Any help appreciated.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
You van combine the boolean test. !stop1condition && !stop2condition
!(stop1condition || stop2condition)
You have misunderstood me. I do not want to search for the first occurance of stop1 or stop2. I want to find a stop1 which is nearest to stop2 in a backward search. As I sad: the last stop1 before stop2.
Consider the following example:
My win forms application (c#) runs fine when its on a local path.
But, its not working when its located on a network / UNC path.
To make it work from a network path, I need help on the following :
1. Best way to determine if the current path is network path or not.
2. From the network path, I want to get the current user's TEMP directory path.
Neither Environment.GetEnvironmentVariable(Temp) nor Path.GetTempPath() worked from network path.
3. From the code/pgm running on network path, I want to run a batch file present in the user's TEMP directory.
Your problems is due to the .NET Frameworks default Runtime Security Policy. So if you need to run an .NET application from a network drive or UNC path, the best way is to configure the runtime policy in the .NET Framework Configuration utility (found under Control panel/Administrative tools).