.NET site sub-dir of .NET site, TemplateSourceDirectory returns null - ideas?

Hello,

Should be an easy answer for anyone familiar with .NET hosting / IIS / permissions...  Please help!

This site was working for going on 2 years, build in VS 2003, minus unexpected system crashes, config changes, incompatible upgrades, etc. done by my hosting company (I will be moving soon!)  Yes, I am re-writing with master pages and the works in 2005 - but would like to get the old site up until I can publish the new one.

I have a main site as, for example:  mysite.com/
I have admin site as a sub-dir of my base site. physically literally a sub directory named securedir 
Accessed via their shared SSL cert: https:// secure05.hostingcompany.com/mysite-com/securedir

I am not sure what the hosting company did (I do know they 'love' - literally - to upgrade their servers, add new features, always changing stuff, a responsible company would not change installed client systems other than maybe security updates off hours - but I have had my site go down due to Front Page extensions being installed, shared SSL path changes, expired shared SSL certificates, and other - they won't tell me stuff...) sorry, I like to type...

I get this error now:

 Server Error in '/mysite-com/Securedir' Application.

The file's virtual path must have a length greater than zero.
Parameter name: virtualPath

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: The file's virtual path must have a length greater than zero.
Parameter name: virtualPath

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: The file's virtual path must have a length greater than zero.
Parameter name: virtualPath]
   System.Web.UI.Control.MapPathSecure(String virtualPath) +2115421
.... and the rest...

Stepping through the code in VS2005 (after 2005 converted my local copy from 2003), and running on Vista Ultimate...
I can see that  TemplateSourceDirectory is NOT returning anything - so MapPathSecure that expects a string is getting null.

By the MSDN example quote:
// An HttpException occurs if the server control does not,;
// have permissions to read the resulting mapped file.
I believe they changed permissions on my directory - directly or accidentally - maybe even a .NET of windows update???

// My code that is failing

OleDbCommand myCommand = new OleDbCommand (); myConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " +"Data Source="this.MapPathSecure(this.TemplateSourceDirectory) + "ProdDB.mdb"));

Mousing over TemplateSourceDirectory while debugging yields no virtual directory assignment - Tried Page.Template... and without this. - no difference.

The application starts, runs long enough to show the login page - so it appears to still be set as a web-site - not sure what is different. I do notice the bottom of the failing page states:
        Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Could it be a problem with 2.0?  The site was written in VS 2003 - 1.1

I am sure it is a 'you need to set permissions on the subdirectory to...' ??? or something simple I can tell my over-active, kid-run I think, hosting company.

Thank you - I appreciate your help!

Todd

0
mnswiftone
9/6/2007 6:16:27 AM
asp.net.config-deploy 12495 articles. 0 followers. Follow

0 Replies
1430 Views

Similar Articles

[PageSpeed] 29
Get it on Google Play
Get it on Apple App Store

Reply:

Similar Artilces:

Net:Net:Net::LDAP::FAQ
------_=_NextPart_001_01C6429F.D89AA417 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, Net::LDAP Net::LDAPS Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, ....) password? I don't like to write the secret password to the perl file. Best regards Barbara Wilbert ------_=_NextPart_001_01C6429F.D89AA417-- Wilbert Barbara (CI/OSI) * wrote: > Hello, > > Net::LDAP > Net::LDAPS > > Is there a possible to LDAP bind with an encrypted (SHA, SSHA, CRYPT, > ......

What is .NET Passport in our .NET site and where can i download it?
and how can i use also?Parco LeeOwner + Webmaster + System Engineer + Professional ProgrammerSoftDweller Lab (a software laboratory)http://www.softdweller.comA professional laboratory for new technology softwares developing by .NET.http://www.nowlover.com Hi, ..NET Passport authentication is an authentication mechanism provided by Microsoft to utilize it in .net applications. It uses Microsoft's Passport ( a single sign on mechanism) to check the user's credentails (mostly hotmail.com or msn.com account). The facility is extended to any valid email id which is registered with passport...

[PATCH lib/Net/Config.pm, MANIFEST, t/lib/Mock/Socket.pm, lib/Net/Config.t] Add Tests for Net::Config
Here's a test suite for Net::Config. In the process of writing this, I've fixed an apparent bug that prevented single values from becoming array references when necessary. I think it's right, but perhaps Graham should weigh in on this. In the process, with some advice from perl-qa, I've added a mock object so the test could control the output of Socket::inet_ntoa() and Socket::inet_aton(). t/lib/Mock/ seemed like as good a place as any. I'm happy to rework this patch if it personally offends anyone whose opinion matters. :) -- c --- lib/Net/~Config.pm S...

online sites to convert C#.Net to VB.Net
what are the best sites to convert C#.Net code to VB.Net code? I have to convert .net 2005 code from one to the other. just wondering what your experiences have been. thanks much I am a big fan of developer fusion's converters. I think they work reasonably well. They are quick and get the job done, and it is quick and easy to go either way. VB to C# or C# to VB.http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspxhttp://labs.developerfusion.co.uk/convert/csharp-to-vb.aspxJust my recommendation. I am sure you'll hear a few different responses.Brendan C. Brendan EnrickBr...

A community site for Service Oriented with Microsoft .Net
Hi, I'm a .net developer and the owner of the domain ServiceOriented.net. I'm planning to set up an online developer community for Service Oriented with Microsoft .net. Website hosting will cost 30$ per month. Will Microsoft be a sponsor of  www.ServiceOriented.net? Best regards -ngocthan   Just a quick suggestion....I think that you'd do well to build the site and get it going before asking for sponsors, and you'll be far more likely to get them.  Community sponsors want to know that their money is helping the community, and paying for a site that hasn't be...

Keep your .Net site alive with SimmSoft Dot Net Ready
Announcing SimmSoft Dot Net Ready Dot Net Ready is a pure .net windows app designed to check many different web pages and specified intervals. Use Dot Net Read to keep your ASP.Net sites responsive, measure response times, load test web pages and sites, and whatever else you can think of! And best of all...it is FREE! Go to http://www.simmsoft.com for details and download. Hi, fantanstic product but..... could you make it run as a service so I don't need to keep the administrator logged in on the server ? Cheers Try SmarterPing if all you want is a service that pings your site...

how to convert vb.net website to csharp.net web site
Can we convert a website(VB.NET) to csharp.net website in VS2005???mahmood Why do you want to convert VB into C#? you can create new modules for the site in C#, and they can co-exist in the same system. If you have some specific requirements, then use online tools to convert vb.net into c# to convert the codebehind files. Most probably the .aspx file will remain unchanged, but you might need to make some changes here and there.You will get lots of converters online by just googling it. I would strongly recommend avoiding converting codes, as I have faced the horrors of the process. Pr...

Errors in Web.config when deploying Club Site Starter Kit on net
On my machine (localhost) i have no problem running it. But when i run it on my host i get this error:Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused...

Converting Web Site from Vb.Net 2003 to Vb.Net 2005
I have a web site in vb.net 2003 that I what to convert to vb.net 2005. I open my web site in the visual studio 2005 by Local IIS option. I follow the steps of the visual studio conversion wizard.In the conversion report I received the following warning 'Referencepath' settings have not been converted.  Can anyone tell what I have to do to make this warning disappear? Best regards,Sérgio 'Referencepath'  is a property you can set with with VS2003 project file, sothat when ever you to do Add reference this path is serached for class libraries.  We do not  have that ...

Post form with data to a external site (.net 1.1 vb.net)
Hi I have now been googling for hours and I can not find a answer. :-( I am programming a e-shop (.net 1.1) and what I want to achive is: Customer fillout form, clicks on the Pay button then should the following thing happen: 1. Form date is saved to the database ( normal vb.net code ) 2. The data that should be posted to the external form is create from the saved data   ( normal vb.net code ) 2. A post is done to an external site with created data as "post" data and then user is redirected to this site. Thanks   Christian   Use the System.Net.HttpWebRequest...

Access .Net 2.0 Application from .Net 2.0 Web Site
I need to populate a specific form in a .Net desktop application from a .net web application.  Is there an easy way to go about this? Hi, Based on my understanding, you want to start an executable application from your ASP.NET websit, right? We can invoke Process.Start method (http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx) to launch an executable application from ASP.NET application. Note: Please keep in mind, the ASP.NET application is running on the server, so it will start the executable application that exists in the server.   I look...

install .net 3.5 without affecting .net 2.0 sites?
On my local system I have developed an older site in asp.net 2.0 and do not wish to upgrade that site. However, I also want to build a new site and for that I want to use asp.net 3.5. Is there anything I should watch out for, or I can I just install the 3.5 runtime etc?please mark answers as 'Answered' and post back solutions when you figure stuff out that isnt in the post already. Go ahead and install .net 3.5. It won't effect older projects. My Blog"Don't be afraid to be wrong; otherwise you'll never be right." The 3.5 framework is just extensions to the 2...

HELP Running a web-site with .NET 2.0 and NET 1.1
Hi evreybody,  I have a HUGE problem. I running a website that I have just created with ASP .NET 2.0 technology, well within my web site there is an web application that needs to run under V1.1. I'm using IIS 6.0 and I was wondering to see if anybody can help me run my new site, and run that web app at the same time. Basically is two sites within one web directory, the way you acces both sites is by the same link, just one is ROOT/default aspx (V2.0) and the other is Root/webapp/default.aspx (v1.1) can anybody help me... :( THANK you you will have to define them as two separate w...

Net Farmers net
Has anyone been able to access any of the tests at http://suicide.netfarmers.net ? I can get the default page but none of the tests appear to be operating over the last several weeks. -- CK I just tested and works as usual!!!Every session TCP_error,because my Shields_guard is intact<<G>> -- Regard: Joh@nnes� 1216771 Ont.Inc. "Nothing is more damaging to a new truth than an old error" "CK" <ckphalon@lascenltd.com> wrote in message news:9i45gg$1qa9$1@news.grc.com... : Has anyone been able to access any of the tests at : http://suicide...

Can a .NET 1.1 page execute in a .NET 2.0 web site?
I've got a ASP.NET 1.1 web site to which I would like to add some ASP.NET 2.0 web pages. Could I just change the web site to point to the 2.0 .NET version and still have the .NET 1.1 web pages work so that both versions are in the same web site? Have you some of you approached this? Thanks. The official answer is maybe It's not officially supported, but most ASP.NET 1.1 pages will run fine under ASP.NET 2.0.  Officially you should run the upgrade wizard on your 1.1 pages. This is a  pretty good blog entry.      JamesMy Blog: http://www.wintersfamily.plus.c...

converting to vb.net from c#.net authorize.net
authorize.net offered me some sample code when I signed up with them the only problem is the sample code is in c#.net but my page that they type all of their credit card into is vb.net <code><%@ Import Namespace="System.Net" %> <%@ Import Namespace="System.IO" %> <script language="C#" runat="server"> void Page_Load(Object Src, EventArgs E) { myPage.Text = readHtmlPage("https://certification.authorize.net/gateway/transact.dll"); } private String readHtmlPage(string url) { ...

To .NET or not .NET, that is the question
I'm running WinXP pro 32-bit, meaning I've got the version 1-dot-something of .NET that XP came with. I've been looking for various softwares, and more and more often come across .NET version 2 being prerequisite. No urgency for me re. my questions to this group - so far I have just decided to hit the red X on those download pages - but the desire for this newer version of .NET seems to be growing for me. Firstly, according to my (limited) research, newer .NET versions are inclusive of the previous ones, and the current version seems to be 3.5. So if I go for i...

Post form with data to a external site (.net 1.1 vb.net) #2
Hi There I am programming a e-shop (.net 1.1) and what I want to achive is: Customer fill out form, clicks on the Pay button then should the following thing happen: Problem is that I need to do a "Clean post" like if the user would have pressed the submit buttom on a normal HTML page I don't need the result in the ASP application, the external site will take over from there. The syntax are ASP.net local application : form data is save in a local db ASP.net local application : A POST string is created ( I could create a FORM in real html but then the use has to press twice) The ...

Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

Differences between .net 1, .net 1.1, .net 2.0 and .net 3.0
Hi, This seems to be a common question, but i havent got an answer yet:(Can, any one please explain me the differences between these versions.If you keep your feet firmly on the ground, you'll have trouble putting on your pants! Have a look into this links http://en.wikipedia.org/wiki/.NET_Framework http://blogs.msdn.com/mohammadakif/archive/2006/12/03/net-3-0-different-versions-of-the-net-framework.aspx http://www.codeproject.com/aspnet/ComparisonASP1xASP20.aspAshok Rajawww.iGold.inDon't forget to click "Mark as Answer" on the post that helped you. This credits that m...

Using Dot Net Nuke to maintain a site developed in VS.NET using C#
Hi,Does anyone know if there is a way to create a site using C# and Visual Studio.NET 2003, but then use Dot Net Nuke to allow non-technical users to add content to the site.  The current state of the site must be accessible in both VS.NET and DNN regardless of which application saved it last.  Also preferably I would like the language used to remain C# even when edited by the marketing staff, so that I can still maintain it myself using VS.NET.  Hope you understand what I mean. If this is not possible, I wonder if anyone knows what solution I am after.   Thanks in adv...

net send in .net
Hi,  I am trying to execute net send comman in my vb.net code. But I am getting "win32 exception unhandled error". Please help me. My code is:Dim psi As New ProcessStartInfo() psi.UseShellExecute = False psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test" Process.Start(psi)  Thanks in advance! Shwetha Tryu changing   psi.FileName = "Net send" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "xxx.xxx.xx.xx test" to   psi.FileName = "net.exe" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "Send xxx.xxx.xx.xx test"   Hope it helps Hi Shwetha, You just need to do a small modification to your code. Instead of "Net Send" in the place of the filename, give "Net". Change your code as below: Dim psi As New ProcessStartInfo() psi.UseShellExecute = False psi.FileName = "Net" 'xxx.xxx.xx.xx  - IP address of a system in my network psi.Arguments = "Send xxx.xxx.xx.xx test" Process.Start(psi) Thats it! I did the same mistake when I came over a similar situation.   Bye Prabaa Oh! Thank you so much Thank you so much Prabaa....

Differences between .net 1, .net 1.1, .net 2.0 and .net 3.0 #2
Hi, This seems to be a common question, but i havent got an answer yet:(Can, any one please explain me the differences between these versions.If you keep your feet firmly on the ground, you'll have trouble putting on your pants! There are too many differences for one email - - from 1.0 to 1.1 (not a whole lot of real change, other than fixes, at least compared to 1.1 to 2.0) With 2.0, there were many new declarative controls, with many new ideas added in With 3.0, it's a superset of 2.0 - instead of replacing the installation completely, it just 'added on' new functionality - I would...

Installing .NET 2 causes 'server application anunavailable' on existing .NET 1.1 site
Hi!I have a computer running an ASP.NET 1.1 web site. After installing .net framework 2.0 on the same server I got a 'server application anunavailable' on the ASP1.1 web site. I set the Security settings to 'Everyone' and I temporarily solved the problem.What should I do?Dimitris PapadimitriouSoftware Development Professional If you are running on Windows 2003, they you need to make sure that your V1.1 and V2.0 applications are running in a separate application pool/process.  Otherwise, you will get a load error when the second CLR gets loaded into the same process. Try going into th...

Develop in .NET 3.5...Deploy on .NET 3.0...Assembly strong name issue in web.config
Hi. I develop locally using web developer express 2008. I have .NET 3.5 installed on the development machine.I am trying to deploy to a Windows Server 2003 machine running.NET 3.0.Not surprisingly, I get an error about the strong assembly names referenced all over my web.config when I try to access the site on the production server.I don't think any of my code truly relies on .NET 3.5--it should all be compatible with the 3.0 framework.Here's my error message:Parser Error Message: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77...

Web resources about - .NET site sub-dir of .NET site, TemplateSourceDirectory returns null - ideas? - asp.net.config-deploy

Resources last updated: 2/17/2016 2:42:49 AM