Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:691879
More Search Options
RSS Available
Matching Posts
Re: An attempt to attach an auto-named database for file ... failed
I've just had this same problem and figured out what the cause is. This error message is happening because the account which the Application Pool is running does not have sufficient permissions to auto-attach the database. Please note this is NOT the account which is used to run the website. My Application Pool is the DefaultAppPool and was using Network Service account to run. I changed this to Local System and it started working. However, I believe this has security implications which I cannot
Posted to
Time Tracker Starter Kit
(Forum)
by
garrygrimshaw
on 7/3/2009
Re: Custom VB.NET Data Access Layer sample without tableadapters
Thanks. The PetShop 4.0 example is the closest thing I've seen to my requirements so far. Although it's written in c# I managed to figure it out. Not sure I'll be directly copying the structure in that project though because I want my DAL/BLL to be much simpler - the petshop example seems a bit overkill in my opinion. Why can't I find a vb example of a simple DAL/BLL/Presentation layer project to download? I've searched for hours without any luck!
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
garrygrimshaw
on 5/5/2009
Re: how to check reader return nothing
You are getting the error because you need to enclose your Email and Password variables in single quotations in your SQL statement, like so: "SELECT * FROM Customer WHERE Email='" & Email & "' AND Password='" & Pass & "'" Plus, you needed to have a space directly before the AND This will fix your error but it not related to your post question about checking if a datareader is returning null.
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
garrygrimshaw
on 5/1/2009
Custom VB.NET Data Access Layer sample without tableadapters
Hi, Are there any good sample downloads of a custom data access layer written in vb.net? I'm talking about one which is written using classes in class libraries, preferably using the DAAB sqlhelper... NOT a data access layer using tableadapters! I have always used tableadapters before but now I need to create a custom data access layer written by my own hands. I just need examples so that I know I am doing it right. Thanks,
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
garrygrimshaw
on 5/1/2009
Re: can't access shared member of a class in a visual studio 'web site'
I see, it's all starting to make sense now. I should have realised, I remember seeing lots of separate dll files with dynamically generated names in the bin folder, and because the page isn't referencing one site-wide dll file, that's where the problem is. Thanks for your help.
Posted to
Visual Basic .NET
(Forum)
by
garrygrimshaw
on 11/11/2008
Re: can't access shared member of a class in a visual studio 'web site'
Hi, sorry for the late reply. Using Imports Page1 did not work. I messed around with using a namespace to wrap all my UI pages as I realised that Web Application Projects uses a root namespace in the project pages. However, when I tried setting a namespace in my pages I lost all my designer generated code, ie references to server controls in code behind. In WAPs there is a code-gen file where all this info is stored, but in Websites this is hidden somewhere but I don't know where! I am assuming
Posted to
Visual Basic .NET
(Forum)
by
garrygrimshaw
on 11/10/2008
Re: can't access shared member of a class in a visual studio 'web site'
Hi, thanks for your reply. I first created the Utilities class file in the root of the web site and it wouldn't work. However, when I saved it into the App_Code folder (because VS prompts you to do this when creating a new class file) it works! So does this mean that if I want common shared functions across my site they all have to be in the one location of App_Code? I find this quite strange because page code-behind files are also classes just the same yet they don't work. It seems for code
Posted to
Visual Basic .NET
(Forum)
by
garrygrimshaw
on 11/5/2008
can't access shared member of a class in a visual studio 'web site'
Hi, I have a simple web site created within visual studio 2005, (not a web application project). I have two pages, one which contains a shared function in the code-behind, and the other which calls this shared function. However, when I try to instantiate the class containing the shared member, I get a 'Name <classname> is not declared' error. Page 1 code behind: Partial Class Page1 Inherits System.Web.UI.Page Public Shared Function SomeFunction() As String 'Do Something End Function
Posted to
Visual Basic .NET
(Forum)
by
garrygrimshaw
on 11/5/2008
Re: User Controls getting cached when I don't want them to
Hi, thanks for replying, No I don't use smart navigation at all, but I've figured out that it is a problem with offline file synchronization with Windows Vista and not related to asp.net directly. I use offline files because I use a laptop to take work around with me, but it seems that sometimes Vista cannot recognise when I am 'online' and still gives me the offline cached version instead of the one directly from my network file share. Very annoying!
Posted to
State Management
(Forum)
by
garrygrimshaw
on 3/17/2008
Re: User controls are getting cached when I don't want them to.
Hi, thanks for replying but I've figured out that it is a problem with offline file synchronization with Windows Vista and not related to asp.net directly. I use offline files because I use a laptop to take work around with me, but it seems that sometimes Vista cannot recognise when I am 'online' and still gives me the offline cached version instead of the one directly from my network file share. Very annoying.
Posted to
Configuration and Deployment
(Forum)
by
garrygrimshaw
on 3/17/2008
Page 1 of 6 (60 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online