I modified the .vsi file to hopefully fix the installation problems. The template should now be installed here:
C:\Documents and Settings\{user}\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Web Developer\Personal Starter Kit MS Access.zip
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\<--path to website-->\Upload'.
Line 348: DirectoryInfo d = new DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/Upload")); Line 349: //DirectoryInfo d = new DirectoryInfo("c:\\Upload"); Line 350: return d.GetFileSystemInfos("*.*"); Line 351: } Line 352:
Unfortunately, I have only run the application locally. I am still working on some more modifications. I would think if you modify the code in the
App_Code directory (ex. AccessConnectionHelper.cs, AccessMembershipProvider.cs, etc.) by changing the references from
System.Data.OleDb to
System.Data.Odbc.
It would be a very tedious task, but I would think that should work.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\<--path to website-->\Upload'.
Line 348: DirectoryInfo d = new DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/Upload")); Line 349: //DirectoryInfo d = new DirectoryInfo("c:\\Upload"); Line 350: return d.GetFileSystemInfos("*.*"); Line 351: } Line 352:
Source File: PhotoManager.cs Line: 350
Hmmm...
This sounds like a stupid question, but do you have the Upload directory in the root of your site? If so, I believe it needs read/write access.
This sounds like a stupid question, but do you have the Upload directory in the root of your site? If so, I believe it needs read/write access.
Actually that was the problem. The install didn't have the folder and I needed to add it manually. Unfortunately, there 's no way to delete posts in this forum so I couldn't remove my earlier post.
thanks for responding and reminding me to post again.
Actually that was the problem. The install didn't have the folder and I needed to add it manually. Unfortunately, there 's no way to delete posts in this forum so I couldn't remove my earlier post.
thanks for responding and reminding me to post again.
No worries... I will take a look at the installer and fix the missing directory.
I hve installed your Personal Starter Kit for MS Access and it works fine on Visual Web Developer but when running live I can't log in.
If I type a wrong userid/pwd the error message appears. When I type the right userid/pwd nothing happens (It doesn't display Welcome <userid>...any idea?
victorcorey
Member
332 Points
104 Posts
Re: Personal Starter Kit for MS Access
Dec 21, 2005 02:41 PM|LINK
I modified the .vsi file to hopefully fix the installation problems. The template should now be installed here: C:\Documents and Settings\{user}\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Web Developer\Personal Starter Kit MS Access.zip
http://www.victorcorey.com/PersonalStarterKitMSAccess.vsi
Please let me know if there are any problems with the file.
Thanks,
VC
richisieber
Member
50 Points
10 Posts
Re: Personal Starter Kit for MS Access
Dec 24, 2005 07:32 AM|LINK
Hello vitorcorey
Congratulations your access version modification works perfectly [:)]
Have you ever tied to run the application on ODBC ?
The reaseon is, that most host providers requesting only this type of connection.
Yersterday I made my first experiance.
I downloaded the newest MS Odbc assembly. After installing I changed all Oledb to Odbc.
In web.config added two DSN entries for Personal and AspNetDb.
When I compile, I get several errors, because from Namespace: Microsoft.Data.Odbc
most Types are not supported ! [:(]
Do you know any solution to fix this problem?
Best would be in web.config
Wish you happy Xmas
Richard
victorcorey
Member
332 Points
104 Posts
Re: Personal Starter Kit for MS Access
Dec 28, 2005 04:25 PM|LINK
Unfortunately, I have not tried. I would think your idea is correct. You may also have to change the connectionstring.
richisieber
Member
50 Points
10 Posts
Re: Personal Starter Kit for MS Access
Dec 28, 2005 05:50 PM|LINK
Hello victorcorey
Its' not as simple as it looks like, because the aspnetdb provider which is developed in C+ + have other types as we expect in C# !
Does your application run on a server ?
How did you manage it ?
Richard
webber123456
Contributor
2250 Points
476 Posts
Re: Personal Starter Kit for MS Access
Dec 28, 2005 05:57 PM|LINK
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\<--path to website-->\Upload'.
Line 348: DirectoryInfo d = new DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/Upload"));Line 349: //DirectoryInfo d = new DirectoryInfo("c:\\Upload");
Line 350: return d.GetFileSystemInfos("*.*");
Line 351: }
Line 352:
Source File: PhotoManager.cs Line: 350
victorcorey
Member
332 Points
104 Posts
Re: Personal Starter Kit for MS Access
Dec 29, 2005 02:36 PM|LINK
Unfortunately, I have only run the application locally. I am still working on some more modifications. I would think if you modify the code in the App_Code directory (ex. AccessConnectionHelper.cs, AccessMembershipProvider.cs, etc.) by changing the references from System.Data.OleDb to System.Data.Odbc.
It would be a very tedious task, but I would think that should work.
victorcorey
Member
332 Points
104 Posts
Re: Personal Starter Kit for MS Access
Dec 29, 2005 05:53 PM|LINK
Hmmm...
This sounds like a stupid question, but do you have the Upload directory in the root of your site? If so, I believe it needs read/write access.
webber123456
Contributor
2250 Points
476 Posts
Re: Personal Starter Kit for MS Access
Dec 29, 2005 10:18 PM|LINK
Actually that was the problem. The install didn't have the folder and I needed to add it manually. Unfortunately, there 's no way to delete posts in this forum so I couldn't remove my earlier post.
thanks for responding and reminding me to post again.
victorcorey
Member
332 Points
104 Posts
Re: Personal Starter Kit for MS Access
Dec 29, 2005 11:13 PM|LINK
Sorry about that.
VC
kretzmann
Member
10 Points
2 Posts
Re: Personal Starter Kit for MS Access
Jan 01, 2006 03:29 PM|LINK
Hi,
I hve installed your Personal Starter Kit for MS Access and it works fine on Visual Web Developer but when running live I can't log in.
If I type a wrong userid/pwd the error message appears. When I type the right userid/pwd nothing happens (It doesn't display Welcome <userid>...any idea?
Regards Peter