 |
|
 |
I can't run the web application without its bin director. Unfortuanately I have a C# edition of VS.net so I can't compile this project.
Can you make the dll for this available please?
Janaka
-----------------------------
Don't do today what you can put off tomorrow
|
|
|
|
 |
|
 |
I get this error while running the asp.net app. Please help.
Thanks,
Ganesh Raju
v_ganeshraju@hotmail.com
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'PET1.ValidateUser'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="ValidateUser.aspx.cs" AutoEventWireup="false" Inherits="PET1.ValidateUser" %>
|
|
|
|
 |
|
 |
Hi
I'm getting a parser error when i tried to load Default.aspx page.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'codebank.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="codebank.Global" %>
Source File: C:\Inetpub\wwwroot\CodeBank\global.asax Line: 1
Mahesh
|
|
|
|
 |
|
 |
I only have MSDE for database and i'm trying to restore the database base with this syntax:
restore database codbank from disk = 'c:\inetpub\wwwroot\codebank\sql\codebank.bak'
but this is not working ... any help would be appreciated.
|
|
|
|
 |
|
 |
Hi,
I have followed the instructions for the project, but I am receiveing an error when I type in the address (http://pooh/codebank):
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'codebank._default'.
Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Default.aspx.vb" Inherits="codebank._default" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>
Source File: D:\Inetpub\wwwroot\intranet\codebank\Default.aspx Line: 1
When I edit default.aspx and take out Inherits="codebank._default", the page loads okay. But when I click on any of the four hyperlinks on the page, they don't work (probably due to the inherits keyword again).
I have modified the web.config file according to the instructions:
appSettings
add key="CONNECTION_STRING" value="server=servername or ip address;database=codebank;user id=your username;password=your password"
add key="FILE_PATH" value="x:\your web directory path\codebank\projectuploads\"
add key="FILE_VIRTUAL_DIRECTORY" value="http:///codebank/projectuploads/"
add key="CASE_PATH" value="x:\\codebank\projectcasestudies\"
add key="CASE_VIRTUAL_DIRECTORY" value="http:///codebank/projectcasestudies/"
appSettings
Has anyone else had these setup issues, and if so, how did you overcome them? If you can't tell, I'm still wet behind the ears when it comes to .NET, so please speak slowly!
Thanks,
Paul...
-==============-
www.e1design.com
-==============-
|
|
|
|
 |
|
 |
Ok,
Try changing the the inherits from codebank._default to codebank.default.
Bascially, the inherits is a namespace definition for the aspx page. It is an inline directive that instructs the codebehind page (i.e. default.aspx.vb) to inherit all objects/evetns from the aspx page.
As for the appSettings, I'm sure you are aware that the appSettings and add key tags have to be bracketed accordingly.
i.e
If you are not sure the MSDN reference has some examples or any web project for that.
let me know if that works for you.
regrds
/pwf
aim:luapford
www.fordjames.net
|
|
|
|
 |
|
 |
Hi... I followed the install procedure for CODEBANK and I get an error when I try to run it which says that the "codebank.GLOBAL" file is missing. This appears in the first line of the "GLOBAL.ASAX" file.
Has anyone seen this before or did I miss something during the install. I can't find the file anywhere.
Thanks
Dick Benson
|
|
|
|
 |
|
 |
This problem solve with the project compilation.
Samuel Vaz.
Web E-Commerce Developer
.NET and Macromedia Evangelist
Sao Paulo - Brazil
|
|
|
|
 |
|
 |
Since you've gone to the trouble of writing your own Web Application, you deserve your own configuration section! It's actually quite easy to do. Take a look at System.Configuration.IConfigurationSectionHandler. There are many ways you can do it, but I always find the easiest is XML Serialization (actually, deserialization in this case):
using System;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
namespace MyWebApp
{
internal class MyAppConfigSection : IConfigurationSectionHandler
{
public object Create(object parent, object configContext, XmlNode section)
{
XmlNodeReader reader = new XmlNodeReader(section);
XmlSerializer serializer = new XmlSerializer(typeof(MyAppConfig));
return (MyAppConfig)serializer.Deserialize(reader);
}
}
[XmlRoot("myAppConfig")]
public class MyAppConfig
{
public MyAppConfig()
{
}
[XmlElement("filePath")]
public string FilePath;
[XmlElement("virtualPath")]
public string VirtualPath;
[XmlElement("connectionString")]
public string ConnectionString;
}
}
Then you include the following in your Web.config:
<configuration>
<section name="myAppConfig" type="MyWebApp.MyAppConfigSection, MyWebApp" />
<myAppConfig>
<filePath>c:\inetpub\wwwroot\path</filePath>
<connectionString>Data Source=...</connectionString>
<virtualPath>/path</virtualPath>
</myAppConfig>
</configuration>
To use this in your app, since create a new instance of the MyAppConfig class and get the properties like so:
MyAppConfig config = (MyAppConfig)ConfigurationSettings.GetConfig("myAppConfig");
string filePath = config.FilePath;
You can also implicitly handle other types besides strings, since the appSettings section only handles string pairs. Example, you could have a field/property in your MyAppConfig class that's an Int32 or Boolean. The XmlSerializer implicitly handles all the intrinsics while providing you ways to handle more complex things. You should look at the System.Xml.Serialization namespace. For example, the solution I developed for my company uses XmlArray and XmlArrayItem attributes with a nested class to have a section with an array of items that can be instantiated (used for plug-in models, mostly). It allows you greater flexibility and, IMO, looks more professional.
"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
|
|
|
|
 |
|
 |
i need to insert a piece of C# between my aspx code.........for instance i need to display a txtbox only if i select the correct value from the dropdown........i tried using<%%> doesnt work.......pls help
thanx in advance
|
|
|
|
 |
|
 |
I'm a little unclear as to what you are trying to do.
1.) Is the code you are trying to add to supplement codebank or a seperate issue?
2.) Either way send me your code and I'll take a look (paul@fordjames.net)
3.) Additionally, the app is in vb.net and although you can reference C#.net or C++.net code to name a few it is preferrable to do this in another project and/or namespace.
Let me know if you would like to move forward on the above suggestions.
regards
/pwf
|
|
|
|
 |
|
 |
I'm a little unclear as to what you are trying to do.
1.) Is the code you are trying to add to supplement codebank or a seperate issue?
2.) Either way send me your code and I'll take a look (paul@fordjames.net)
3.) Additionally, the app is in vb.net and although you can reference C#.net or C++.net code to name a few it is preferrable to do this in another project and/or namespace.
Let me know if you would like to move forward on the above suggestions.
regards
/pwf
|
|
|
|
 |
|
 |
newb,
On your DropDownList control set AutoPostBack to True, OnSelectedIndexChanged to the name of your handler function. In your Page_Load, add in an "If" check to only run Page_Load code if it is not a PostBack. Then build a function to handle the OnSelecteIndexChange of your dropdown, in which you will set the visibility of your textbox to true.
|
|
|
|
 |
|
 |
Paul,
Nice job over all.
I have been looking for some functionality like this for some time.
I had problems getting the SQL parts working since I am not an SQL guru, but
I finally got it up and running.
I would suggest going into alittle more detail on the installation procedure
for those of us that are not SQL guru's. That took me the most time.
Below is a link to GotDoNet's message board source which is a really
nice web app feature you may want to integrate into your code repository.
It also has some real nice sql database install scripts which
set all the SQL user role security up nicely.
http://www.gotdotnet.com/userarea/filedetails.aspx?FileName=GDNMessageBoardSource.zip
If you are interested, I have a small "PostCode" web app which allows a
users working in Visual Studio or a browser to "post" code snippets
up to a web server.
Again, Keep up the good work
|
|
|
|
 |
|
 |
Please don't take this the wrong way, but the reason why so many CodeProject articles are great is that they take you through the design process for a solution, explaining how it works etc.
I've not downloaded the code or tried it out on my own machine, so it may well be that you've heavily commented it, but its always good to be able to read an article to find out how and why something works in case it applies to my own work.
I'm also pretty sure there was something posted in the lounge fairly recently about people uploading tools but without much of an article.
Don't let this put you off posting on CP in future, but CP is more than just a code repository -- it includes rationale and reasoning.
--
Paul
"I need the secure packaging of Jockeys. My boys need a house!"
- Kramer, in "The Chinese Woman" episode of Seinfeld
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
 |
|
|
 |