From jwcolby at colbyconsulting.com Sat Sep 1 23:57:13 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Sep 2012 00:57:13 -0400 Subject: [dba-VB] Using the CLR with SQL Server Message-ID: <5042E729.3000604@colbyconsulting.com> Just a poll to see if anyone on the list is using the CLR in SQL Server. I do a lot of C# work now and mostly to automate SQL Server. I have not been using the CLR in SQL Server but I am ready to figure it out. Anyone? -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From gustav at cactus.dk Mon Sep 3 06:35:30 2012 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 03 Sep 2012 13:35:30 +0200 Subject: [dba-VB] Visual Studio and MySQL Connector/Net 6.6.2 Message-ID: Hi all Anyone having success with using the new MySQL Connector/Net 6.6.2 beta with Visual Studio? It won't even connect to a database. I've tried with VS2010 on Win7 and VS2012 on Win8. Same error: "Arithmetic operation resulted in an overflow" Note please, that at this stage only the server has been reached and your credentials have been verified. No database has been opened, thus no data read. It's so weird that I've reported it as a bug: http://bugs.mysql.com/66647 Actually, I think it's some stupid thing in a config file that has to be adjusted but doesn't the installer take care of that? And I have zero experience with MySQL in VS so I have no idea where to look. /gustav From fhtapia at gmail.com Wed Sep 5 09:48:06 2012 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 5 Sep 2012 07:48:06 -0700 Subject: [dba-VB] [dba-SQLServer] Using the CLR with SQL Server In-Reply-To: <5042E729.3000604@colbyconsulting.com> References: <5042E729.3000604@colbyconsulting.com> Message-ID: We use it here to get and submit data to our SAP Webservices -Francisco -------------------------- You should follow me on twitter here Blogs: SqlThis! | XCodeThis! On Sat, Sep 1, 2012 at 9:57 PM, jwcolby wrote: > Just a poll to see if anyone on the list is using the CLR in SQL Server. > I do a lot of C# work now and mostly to automate SQL Server. I have not > been using the CLR in SQL Server but I am ready to figure it out. > > Anyone? > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > ______________________________**_________________ > dba-SQLServer mailing list > dba-SQLServer@**databaseadvisors.com > http://databaseadvisors.com/**mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.**com > > From jwcolby at colbyconsulting.com Fri Sep 14 12:52:01 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Sep 2012 13:52:01 -0400 Subject: [dba-VB] .Net 4 Parallel library Message-ID: <50536EC1.3050006@colbyconsulting.com> Has anyone found a really good book, article or web site explaining the parallel stuff from scratch? I am finding "snippits" if you will on the web and it seems to be simple enough to actually start there but a really good really in-depth article taking it from the top would be much preferable. And I hate training videos for more than a "flyover" of a capability. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From mcp2004 at mail.ru Fri Sep 14 13:11:27 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Fri, 14 Sep 2012 22:11:27 +0400 Subject: [dba-VB] =?utf-8?q?=2ENet_4_Parallel_library?= In-Reply-To: <50536EC1.3050006@colbyconsulting.com> References: <50536EC1.3050006@colbyconsulting.com> Message-ID: <1347646287.851458587@f315.mail.ru> Hi John -- MSDN worked well for me: http://msdn.microsoft.com/en-us/library/dd460717.aspx Thank you. -- Shamil Fri, 14 Sep 2012 13:52:01 -0400 ?? jwcolby : > > > > >Has anyone found a really good book, article or web site explaining the parallel stuff from scratch? > ??I am finding "snippits" if you will on the web and it seems to be simple enough to actually start > there but a really good really in-depth article taking it from the top would be much preferable. > > And I hate training videos for more than a "flyover" of a capability. > > -- > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > _______________________________________________ > dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Fri Sep 14 14:30:35 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 14 Sep 2012 15:30:35 -0400 Subject: [dba-VB] .Net 4 Parallel library In-Reply-To: <1347646287.851458587@f315.mail.ru> References: <50536EC1.3050006@colbyconsulting.com> <1347646287.851458587@f315.mail.ru> Message-ID: <505385DB.3090900@colbyconsulting.com> And I for one find their entire MSDN web site a confusing mess. 1/2 the time the left side tree maps to the right side, the other 1/2 the time clicking in any hotlink in the right side takes you off to la la land never to return. Clicking on the right side adds brand new leafs to the left side that weren't there an instant ago. But that is just me. Of course enough hours spent looping around and around in their confusing mess would undoubtedly allow you to read everything... or probably not. And how would you ever know? There is a lot of good stuff there and I go there when I can't find something better, but it is definitely my last resort. But that is just me. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 9/14/2012 2:11 PM, Salakhetdinov Shamil wrote: > Hi John -- > > MSDN worked well for me: > > http://msdn.microsoft.com/en-us/library/dd460717.aspx > > Thank you. > > -- Shamil > > > Fri, 14 Sep 2012 13:52:01 -0400 ?? jwcolby : >> >> >> > > >> > > > >> Has anyone found a really good book, article or web site explaining the parallel stuff from scratch? >> > I am finding "snippits" if you will on the web and it seems to be simple enough to actually start >> > there but a really good really in-depth article taking it from the top would be much preferable. >> >> > And I hate training videos for more than a "flyover" of a capability. >> >> From accessd at shaw.ca Fri Sep 14 14:57:52 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 14 Sep 2012 12:57:52 -0700 Subject: [dba-VB] .Net 4 Parallel library In-Reply-To: <505385DB.3090900@colbyconsulting.com> References: <50536EC1.3050006@colbyconsulting.com><1347646287.851458587@f315.mail.ru> <505385DB.3090900@colbyconsulting.com> Message-ID: Its not just you...I have been lost for days in the MSDN tech site. ;-) Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, September 14, 2012 12:31 PM To: Salakhetdinov Shamil; Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .Net 4 Parallel library And I for one find their entire MSDN web site a confusing mess. 1/2 the time the left side tree maps to the right side, the other 1/2 the time clicking in any hotlink in the right side takes you off to la la land never to return. Clicking on the right side adds brand new leafs to the left side that weren't there an instant ago. But that is just me. Of course enough hours spent looping around and around in their confusing mess would undoubtedly allow you to read everything... or probably not. And how would you ever know? There is a lot of good stuff there and I go there when I can't find something better, but it is definitely my last resort. But that is just me. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 9/14/2012 2:11 PM, Salakhetdinov Shamil wrote: > Hi John -- > > MSDN worked well for me: > > http://msdn.microsoft.com/en-us/library/dd460717.aspx > > Thank you. > > -- Shamil > > > Fri, 14 Sep 2012 13:52:01 -0400 ?? jwcolby : >> >> >> > > >> > > > >> Has anyone found a really good book, article or web site explaining the parallel stuff from scratch? >> > I am finding "snippits" if you will on the web and it seems to be simple enough to actually start >> > there but a really good really in-depth article taking it from the top would be much preferable. >> >> > And I hate training videos for more than a "flyover" of a capability. >> >> _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Fri Sep 14 16:08:33 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sat, 15 Sep 2012 01:08:33 +0400 Subject: [dba-VB] =?utf-8?q?=2ENet_4_Parallel_library?= In-Reply-To: References: <50536EC1.3050006@colbyconsulting.com><1347646287.851458587@f315.mail.ru> <505385DB.3090900@colbyconsulting.com> Message-ID: <1347656913.868725129@f221.mail.ru> Hi John and Jim -- Well, I'm usually keeping MSDN contents treeview hidden and I'm opening topics by following topics' links in a new tab and I'm keeping MSDN tech site opened in a separate browser instance or within Visual Studio IDE - all that "preventive measures" help to not get lost in "MSDN jungles" - the latter (finding myself lost in MSDN tech. site "jungles") happens here too from time to time :) Thank you. -- Shamil Fri, 14 Sep 2012 12:57:52 -0700 ?? "Jim Lawrence" : > > > > >Its not just you...I have been lost for days in the MSDN tech site. ;-) > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, September 14, 2012 12:31 PM > To: Salakhetdinov Shamil; Discussion concerning Visual Basic and related > programming issues. > Subject: Re: [dba-VB] .Net 4 Parallel library > > And I for one find their entire MSDN web site a confusing mess. 1/2 the > time the left side tree > maps to the right side, the other 1/2 the time clicking in any hotlink in > the right side takes you > off to la la land never to return. Clicking on the right side adds brand > new leafs to the left side > that weren't there an instant ago. > > But that is just me. > > Of course enough hours spent looping around and around in their confusing > mess would undoubtedly > allow you to read everything... or probably not. And how would you ever > know? > > There is a lot of good stuff there and I go there when I can't find > something better, but it is > definitely my last resort. > > But that is just me. > > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > On 9/14/2012 2:11 PM, Salakhetdinov Shamil wrote: > > Hi John -- > > > > MSDN worked well for me: > > > > http://msdn.microsoft.com/en-us/library/dd460717.aspx > > > > Thank you. > > > > -- Shamil > > > > > > Fri, 14 Sep 2012 13:52:01 -0400 ?? jwcolby : > >> > >> > >> > > > > > >> > > > > > > > >> Has anyone found a really good book, article or web site explaining the > parallel stuff from scratch? > >> > > I am finding "snippits" if you will on the web and it seems to be > simple enough to actually start > >> > > there but a really good really in-depth article taking it from the top > would be much preferable. > >> > >> > > And I hate training videos for more than a "flyover" of a capability. > >> > >> > > _______________________________________________ > dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Sep 15 07:54:49 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Sep 2012 08:54:49 -0400 Subject: [dba-VB] where is the Parallel library Message-ID: <50547A99.1050200@colbyconsulting.com> VS 2010, .Net 4.0. I am not finding the parallel library. System.Threading.Tasks is there but I am not able to find the parallel library. Google isn't helping either. Where did they put this thing? -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From jwcolby at colbyconsulting.com Sat Sep 15 07:59:11 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Sep 2012 08:59:11 -0400 Subject: [dba-VB] where is the Parallel library In-Reply-To: <50547A99.1050200@colbyconsulting.com> References: <50547A99.1050200@colbyconsulting.com> Message-ID: <50547B9F.1050003@colbyconsulting.com> According to this: http://msdn.microsoft.com/en-us/library/dd460693(v=vs.100).aspx it is supposed to be under tasks but there is no dot object under tasks. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 9/15/2012 8:54 AM, jwcolby wrote: > VS 2010, .Net 4.0. > > I am not finding the parallel library. System.Threading.Tasks is there but I am not able to find > the parallel library. Google isn't helping either. > > Where did they put this thing? > From Gustav at cactus.dk Sat Sep 15 08:48:08 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 15 Sep 2012 15:48:08 +0200 Subject: [dba-VB] where is the Parallel library Message-ID: Hi John There is no .Parallel, but having declared: using System.Threading.Tasks; you should be ready. Here is a document that should get you started: http://www.microsoft.com/en-us/download/details.aspx?id=19222 I haven't had any use for Parallel so I cannot advise further. /gustav >>> jwcolby at colbyconsulting.com 15-09-12 14:59 >>> According to this: http://msdn.microsoft.com/en-us/library/dd460693(v=vs.100).aspx it is supposed to be under tasks but there is no dot object under tasks. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 9/15/2012 8:54 AM, jwcolby wrote: > VS 2010, .Net 4.0. > > I am not finding the parallel library. System.Threading.Tasks is there but I am not able to find > the parallel library. Google isn't helping either. > > Where did they put this thing? From jwcolby at colbyconsulting.com Sat Sep 15 09:56:39 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Sep 2012 10:56:39 -0400 Subject: [dba-VB] where is the Parallel library In-Reply-To: References: Message-ID: <50549727.6020702@colbyconsulting.com> Yep. Tons of articles out there says you need a using statement and yet not so apparently. In order to use the ForEach you must use Parallel.ForEach, the syntax of which is different from the original ForEach which I am replacing. John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it On 9/15/2012 9:48 AM, Gustav Brock wrote: > Hi John > > There is no .Parallel, but having declared: > > using System.Threading.Tasks; > > you should be ready. > Here is a document that should get you started: > > http://www.microsoft.com/en-us/download/details.aspx?id=19222 > > I haven't had any use for Parallel so I cannot advise further. > > /gustav > > >>>> jwcolby at colbyconsulting.com 15-09-12 14:59 >>> > According to this: > > http://msdn.microsoft.com/en-us/library/dd460693(v=vs.100).aspx > > it is supposed to be under tasks but there is no dot object under tasks. > > John W. Colby > Colby Consulting > > Reality is what refuses to go away > when you do not believe in it > > On 9/15/2012 8:54 AM, jwcolby wrote: >> VS 2010, .Net 4.0. >> >> I am not finding the parallel library. System.Threading.Tasks is there but I am not able to find >> the parallel library. Google isn't helping either. >> >> Where did they put this thing? > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Sep 15 10:46:49 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Sep 2012 11:46:49 -0400 Subject: [dba-VB] Missing reference or assy Message-ID: <5054A2E9.3040902@colbyconsulting.com> I have a custom class library BaseObjects2 which is compiled to a dll. I am building a new project which needs to reference this library. I used the project references to navigate to the bin/Debug directory and selected the DLL. The reference shows the the dll selected. All of the properties of the referenced file are identical to another project which successfully references and uses the library. And yet this new project puts the "blue wavey" under the using statement and when hovered over displays the error 'The type or name space name BaseObjects2 could not be found...' http://stackoverflow.com/questions/3304741/vs2010-getting-type-or-namespace-name-could-not-be-found-but-everything-seem This fixed it. My question then becomes, why is the default for new projects the 'Client Profile' and is it possible to change the default to the full .Net version. I don't do new projects all that often and I get stuck on this every time. Apparently .Net 4.5 does away with Client Profile entirely. -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From df.waters at comcast.net Mon Sep 17 19:03:14 2012 From: df.waters at comcast.net (Dan Waters) Date: Mon, 17 Sep 2012 19:03:14 -0500 Subject: [dba-VB] Rich Text on a Report Message-ID: <003b01cd9531$000b9e70$0022db50$@comcast.net> For a .Net winform app: I am creating a form that uses several richtextbox controls. I can save the textbox.rtf information to the database and have those textboxes repopulated with the textbox.rtf information when the form is opened. But how can I do the same on a .Net report? There isn't a RichTextBox control in the report's toolbox. Thanks! Dan From jwcolby at colbyconsulting.com Wed Sep 26 09:08:17 2012 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 26 Sep 2012 10:08:17 -0400 Subject: [dba-VB] exposing child class events Message-ID: <50630C51.2030906@colbyconsulting.com> I have a timer class clsTimer which wraps a timer with synchronization stuff to prevent re-entry. It raises an evTimer. This clsTimer is child to clsRunstate. clsRunState sinks the evTimer and raises its own evTimer, simply passing the timer event out to the application using clsRunState. Is it possible to simply expose the clsTimer's event? clsRunState has do the full on delegate thing in order to raise the event so I end up with a delegate in the clsTimer and another delegate in clsRunState. It works but it just seems clumsy (and verbose). IOW I have this in clsRunState public delegate void delEvTimer(object sender); public event delEvTimer evTimer; /// /// Sinks the timer class' event and simply raises its own event for the application to use /// void cTimer_evTimer() { evTimer(this); //Start the timer thread business in the consuming application. } -- John W. Colby Colby Consulting Reality is what refuses to go away when you do not believe in it From gustav at cactus.dk Wed Sep 26 10:43:14 2012 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2012 17:43:14 +0200 Subject: [dba-VB] ASP.NET Redirect on 404 error Message-ID: Hi all I have an extremely simple site, one page only: Default.aspx How can I in a simple way redirect all faulty URLs to this page? So that if the user types: www.example.com/somethingwrong the error is trapped and the user gets: www.example.com/Default.aspx I have this Web.config file which should do the job, but it doesn't: Aside from this I can google many fancy solutions. Not needed. It just needs to call the default page. /gustav From Gustav at cactus.dk Wed Sep 26 15:55:40 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Sep 2012 22:55:40 +0200 Subject: [dba-VB] ASP.NET Redirect on 404 error Message-ID: Hi all OK, I've made some progress - paying attention to Upper/lower case of Mode: Now a not-found page like: www.example.com/somewrongpage.aspx is redirected. But: www.example.com/somethingwrong still fails with 404. Any hints? /gustav >>> gustav at cactus.dk 26-09-12 17:43 >>> Hi all I have an extremely simple site, one page only: Default.aspx How can I in a simple way redirect all faulty URLs to this page? So that if the user types: www.example.com/somethingwrong the error is trapped and the user gets: www.example.com/Default.aspx I have this Web.config file which should do the job, but it doesn't: Aside from this I can google many fancy solutions. Not needed. It just needs to call the default page. /gustav From mcp2004 at mail.ru Wed Sep 26 16:16:04 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Thu, 27 Sep 2012 01:16:04 +0400 Subject: [dba-VB] =?utf-8?q?ASP=2ENET_Redirect_on_404_error?= In-Reply-To: References: Message-ID: <1348694164.528265562@f12.mail.ru> Hi Gustav -- Just a note (I have no real life experience with cases as you have) - do you have ASP.NET routing enabled for your "human-friendly" URLs - the ones without .aspx extension? http://stackoverflow.com/questions/3523264/asp-net-4-0-url-routing-http-error-404-0-not-found Thank you. -- Shamil Wed, 26 Sep 2012 22:55:40 +0200 ?? "Gustav Brock" : > > > > >Hi all > > OK, I've made some progress - paying attention to Upper/lower case of Mode: > > > ???? > ?????? > ?????? > ?????? > ???????? > ?????? > ???? > > > Now a not-found page like: > >www.example.com/somewrongpage.aspx > > is redirected. But: > >www.example.com/somethingwrong > > still fails with 404. > > Any hints? > > /gustav > > > >>> gustav at cactus.dk 26-09-12 17:43 >>> > Hi all > > I have an extremely simple site, one page only: Default.aspx > > How can I in a simple way redirect all faulty URLs to this page? So that if the user types: > >www.example.com/somethingwrong > > the error is trapped and the user gets: > >www.example.com/Default.aspx > > I have this Web.config file which should do the job, but it doesn't: > > > ???? > ?????? > ?????? > ?????? > ???????? > ?????? > ???? > > > Aside from this I can google many fancy solutions. Not needed. It just needs to call the default page. > > /gustav > > > _______________________________________________ > dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > From john at winhaven.net Thu Sep 27 00:14:26 2012 From: john at winhaven.net (John Bartow) Date: Thu, 27 Sep 2012 00:14:26 -0500 Subject: [dba-VB] The future of our lists Message-ID: <00c501cd9c6e$f73c4430$e5b4cc90$@winhaven.net> Hello Faithful List Members: Recently there was a thread on AccessD concerning the future of our lists. In order to keep the list dedicated to Access discussions we've decided to open up the DBA-Maintenance list to anyone who wishes to discuss ideas concerning the future of our lists, website, etc. Those interested can subscribe to the maintenance list for discussion on the future of the Database Advisors. Inc. email lists. Subscription link: http://databaseadvisors.com/mailman/listinfo/maintenance If you have any problems subscribing please contact me directly. Thank You for your support, John Bartow, President Database Advisors, Inc. president at databaseadvisors.com From accessd at shaw.ca Thu Sep 27 00:53:22 2012 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Sep 2012 22:53:22 -0700 Subject: [dba-VB] ASP.NET Redirect on 404 error In-Reply-To: References: Message-ID: <7ECF849319764D1DA986A1FE10F41BF6@creativesystemdesigns.com> Hi Gustav: Owning the servers is the best control, where you can just go in to the configuration of any particular site or a group of sites and set pointer to the URL for a specific error or group of errors and then place the error pages response in the site. There is a nice GUI http://www.iis.net/configreference Above is a link to documentation for setting configurations for IIS 7 and IIS 7.5, with samples, using a variety of languages Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2012 1:56 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET Redirect on 404 error Hi all OK, I've made some progress - paying attention to Upper/lower case of Mode: Now a not-found page like: www.example.com/somewrongpage.aspx is redirected. But: www.example.com/somethingwrong still fails with 404. Any hints? /gustav >>> gustav at cactus.dk 26-09-12 17:43 >>> Hi all I have an extremely simple site, one page only: Default.aspx How can I in a simple way redirect all faulty URLs to this page? So that if the user types: www.example.com/somethingwrong the error is trapped and the user gets: www.example.com/Default.aspx I have this Web.config file which should do the job, but it doesn't: Aside from this I can google many fancy solutions. Not needed. It just needs to call the default page. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Thu Sep 27 01:55:02 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Sep 2012 08:55:02 +0200 Subject: [dba-VB] ASP.NET Redirect on 404 error Message-ID: Hi Jim So true and thanks for the link, but this site will run in a hosted and shared environment, Thus it must be "auto running". /gustav >>> accessd at shaw.ca 27-09-12 7:53 >>> Hi Gustav: Owning the servers is the best control, where you can just go in to the configuration of any particular site or a group of sites and set pointer to the URL for a specific error or group of errors and then place the error pages response in the site. There is a nice GUI http://www.iis.net/configreference Above is a link to documentation for setting configurations for IIS 7 and IIS 7.5, with samples, using a variety of languages Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, September 26, 2012 1:56 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET Redirect on 404 error Hi all OK, I've made some progress - paying attention to Upper/lower case of Mode: Now a not-found page like: www.example.com/somewrongpage.aspx is redirected. But: www.example.com/somethingwrong still fails with 404. Any hints? /gustav >>> gustav at cactus.dk 26-09-12 17:43 >>> Hi all I have an extremely simple site, one page only: Default.aspx How can I in a simple way redirect all faulty URLs to this page? So that if the user types: www.example.com/somethingwrong the error is trapped and the user gets: www.example.com/Default.aspx I have this Web.config file which should do the job, but it doesn't: Aside from this I can google many fancy solutions. Not needed. It just needs to call the default page. /gustav From Gustav at cactus.dk Sat Sep 29 10:36:15 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 29 Sep 2012 17:36:15 +0200 Subject: [dba-VB] ASP.NET Redirect on 404 error Message-ID: Hi Shamil You did it again! This is, of course, how to do it, but what did I know as little as I have worked with ASP.NET. The server runs ASP.NET 4.5, so System.Web.Routing it is extremely easy to configure in Global.asax at Application_Start: protected void Application_Start(object sender, EventArgs e) { RegisterRoutes(RouteTable.Routes); } void RegisterRoutes(RouteCollection routes) { // Register a route to handle all urls. // The {*...} instructs the route to match all content after the first slash." routes.MapPageRoute( "CatchAll", // Route name "{*MyKeys}", // Route URL "~/Default.aspx" // Web page to handle route ); } Thanks for the head up! /gustav PS: Here is a brief, though good tutorial: http://www.4guysfromrolla.com/articles/012710-1.aspx >>> Salakhetdinov Shamil 26-09-12 23:16 >>> Hi Gustav -- Just a note (I have no real life experience with cases as you have) - do you have ASP.NET routing enabled for your "human-friendly" URLs - the ones without .aspx extension? http://stackoverflow.com/questions/3523264/asp-net-4-0-url-routing-http-error-404-0-not-found Thank you. -- Shamil Wed, 26 Sep 2012 22:55:40 +0200 ?? "Gustav Brock" : > > > > >Hi all > > OK, I've made some progress - paying attention to Upper/lower case of Mode: > > > **** > ****** > ****** > ****** > ******** > ****** > **** > > > Now a not-found page like: > >www.example.com/somewrongpage.aspx > > is redirected. But: > >www.example.com/somethingwrong > > still fails with 404. > > Any hints? > > /gustav > > > >>> gustav at cactus.dk 26-09-12 17:43 >>> > Hi all > > I have an extremely simple site, one page only: Default.aspx > > How can I in a simple way redirect all faulty URLs to this page? So that if the user types: > >www.example.com/somethingwrong > > the error is trapped and the user gets: > >www.example.com/Default.aspx > > I have this Web.config file which should do the job, but it doesn't: > > > **** > ****** > ****** > ****** > ******** > ****** > **** > > > Aside from this I can google many fancy solutions. Not needed. It just needs to call the default page. > > /gustav From mcp2004 at mail.ru Sun Sep 30 14:32:27 2012 From: mcp2004 at mail.ru (=?UTF-8?B?U2FsYWtoZXRkaW5vdiBTaGFtaWw=?=) Date: Sun, 30 Sep 2012 23:32:27 +0400 Subject: [dba-VB] =?utf-8?q?ASP=2ENET_Redirect_on_404_error?= In-Reply-To: References: Message-ID: <1349033547.983386790@f75.mail.ru> Thank you, Gustav, But that was you who did it again, wasn't you? ;) -- Shamil Sat, 29 Sep 2012 17:36:15 +0200 ?? "Gustav Brock" : > > > > >Hi Shamil > > You did it again! This is, of course, how to do it, but what did I know as little as I have worked with ASP.NET. > The server runs ASP.NET 4.5, so System.Web.Routing it is extremely easy to configure in Global.asax at Application_Start: > > protected void Application_Start(object sender, EventArgs e) > { > ????RegisterRoutes(RouteTable.Routes); > } > > void RegisterRoutes(RouteCollection routes) > { > ????// Register a route to handle all urls. > ????// The {*...} instructs the route to match all content after the first slash." > ????routes.MapPageRoute( > ????????"CatchAll", // Route name > ????????"{*MyKeys}", // Route URL > ????????"~/Default.aspx" // Web page to handle route > ?????); > } > > Thanks for the head up! > > /gustav > > PS: Here is a brief, though good tutorial: http://www.4guysfromrolla.com/articles/012710-1.aspx > > >>> Salakhetdinov Shamil 26-09-12 23:16 >>> > Hi Gustav -- > > Just a note (I have no real life experience with cases as you have) - do you have ASP.NET routing enabled for your "human-friendly" URLs - the ones without .aspx extension? > >http://stackoverflow.com/questions/3523264/asp-net-4-0-url-routing-http-error-404-0-not-found > > > Thank you. > > -- Shamil > > > Wed, 26 Sep 2012 22:55:40 +0200 ?? "Gustav Brock" : > > > > > > > > > > > > > > >Hi all > > > > > OK, I've made some progress - paying attention to Upper/lower case of Mode: > > > > > > > > **** > > > ****** > > > ****** > > > ****** > > > ******** > > > ****** > > > **** > > > > > > > > Now a not-found page like: > > > >www.example.com/somewrongpage.aspx > > > > > is redirected. But: > > > >www.example.com/somethingwrong > > > > > still fails with 404. > > > > > Any hints? > > > > > /gustav > > > > > > > >>> gustav at cactus.dk 26-09-12 17:43 >>> > > > Hi all > > > > > I have an extremely simple site, one page only: Default.aspx > > > > > How can I in a simple way redirect all faulty URLs to this page? So that if the user types: > > > >www.example.com/somethingwrong > > > > > the error is trapped and the user gets: > > > >www.example.com/Default.aspx > > > > > I have this Web.config file which should do the job, but it doesn't: > > > > > > > > **** > > > ****** > > > ****** > > > ****** > > > ******** > > > ****** > > > **** > > > > > > > > Aside from this I can google many fancy solutions. Not needed. It just needs to call the default page. > > > > > /gustav > > > _______________________________________________ > dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > From Gustav at cactus.dk Sun Sep 30 15:36:06 2012 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 30 Sep 2012 22:36:06 +0200 Subject: [dba-VB] ASP.NET Redirect on 404 error Message-ID: Hi Shamil Eh, well, maybe. Let's say I did it, but you directed me from a dead end into the sunlight. /gustav >>> Salakhetdinov Shamil 30-09-12 21:32 >>> Thank you, Gustav, But that was you who did it again, wasn't you? ;) -- Shamil Sat, 29 Sep 2012 17:36:15 +0200 ?? "Gustav Brock" : >Hi Shamil > > You did it again! This is, of course, how to do it, but what did I know as little as I have worked with ASP.NET. > The server runs ASP.NET 4.5, so System.Web.Routing it is extremely easy to configure in Global.asax at Application_Start: