|
I do not drag the setup.exe to the target machine. I simply click it str8 from the file server.
The .net framework is not installed on the file server.
Do you think this may be the problem?
I have published other .net applications to this server and installed on multiple target cpu's without any issue.
I do have a app.config file with a hardcoded file path. Do you think this could be the issue?
although i dont think may be the issue either.
below is my app.config
<?xml version="1.0" encoding="utf-8" ?><br />
<configuration><br />
<br />
<configSections><br />
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ><br />
<section name="Navision_Add_On.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /><br />
</sectionGroup><br />
</configSections><br />
<appSettings><br />
<br />
<add key="WorkingDirectory" value="C:\Navision_Plug" /><br />
<br />
</appSettings><br />
<br />
</configuration>
|
|
|
|
|
I also get errors trying to run a .NET app from a file server. But I have always been able to drag the same executable to the desktop, double click it and it runs just fine. I would recommend you add this to your process.
Brent
|
|
|
|
|
Brent,
I drag the setup.exe to the desktop along with the other files that it needs double click on the target computer and the same exact error happens.
|
|
|
|
|
Application has encountered a problem and needs to close.
1. My code debugs and runs perfectly fine.
2. I publish my application to a shared file server.
3. I log on to the target machine and browse to the folder I published my application files.
4. I click the setup.exe
5. It begins verifying application requirements.
6. Are you sure u want to install this application dialog pops up - Install or Don't Install button
7. I click the install button.
8 Acts as if it begins to install then Error -
{APPLICATION NAME} has encountered a problem and needs to close. We are sorry for the inconvience..
9. Button that says Send Error Report and button that says Dont Send
10. Also hyperlink on form that says "What data does this error report contain"
11. If i click the link gives me some wierd information - keywords in the info below
Event Type: clr20r3 Mscorlib system.io.directorynotfound
It does not tell me what the problem is.
I am clueless. can somebody help me please.
Thanks in advance
Kourvoisier
|
|
|
|
|
Try reinstalling the .NET framework on the target machine.
|
|
|
|
|
This cant be the problem.
I have tryed to deploy on multiple cpu's with .net framework installed still run into same problem.
|
|
|
|
|
kourvoisier wrote: Event Type: clr20r3 Mscorlib system.io.directorynotfound
This error makes me suspect that you've got hard coded paths in your installer somewhere and that the configuration on your devbox is different than on the target machines.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
I have actually published the files directly to the target machine by passing the file server and received the same error.
I have published other .net applications to this server and installed on multiple target cpu's without any issue.
I do have a app.config file with a hardcoded file path. Do you think this could be the issue?
although i dont think may be the issue either.
below is my app.config
<configuration>
<configsections>
<sectiongroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<appsettings>
<add key="WorkingDirectory" value="C:\Navision_Plug">
|
|
|
|
|
Hi,
In my project i have a one dataset now i need to convert that data set in to hash table in c#language. and that dataset contains only one table.
as well as again i need to convert that hash table in to data set also
plz any one tell me the solution
thanks in advance
|
|
|
|
|
hi.
i am trying to get the index of text >int StartMeta = fileAsText.IndexOf(
|
|
|
|
|
hi
try this way:
int StartMeta = fileAsText.IndexOf("
|
|
|
|
|
Hello marky,
You have to set a \ before the " char, so that the compiler knows that it's not a string decleration!
int StartMeta = fileAsText.IndexOf("<meta name=\"description\"");
All the best,
Martin
|
|
|
|
|
Thank yo sooooo much Martin!!!
|
|
|
|
|
|
i have created a windows application in .net 2005.
i want the application shortcut on the folder right click.
like archive (Ex Win RAR) programes that we install in windows.
is there any popsiblity when we take setup.
if it is needed write in registry. where to write? and what to write?
any idea? any links? any suggestios?
please help me.
thank u.
joe
|
|
|
|
|
Search this website for "C# shell" -- you'll need to do some Windows shell interop to get options on the Windows shell context menu.
|
|
|
|
|
thank u Freind
for ur replay
i found the place in the registry . where to add the value and key
in Hkey_class_root/Directroy/create a new key and value.
i have done this. i have edited the registry using my program .
now i have created exe to create key in the registy.
but i want to pass the value " installed location" to exe at the installation
of my project.
how to pass the installtion location from my setup progame to my exe
how to do that.
thank u
|
|
|
|
|
i have form MDI parent and other forms child for it
when i open first form inside the MDI parent i use the following code:
Items.AddItem additem = new Items.AddItem();
additem.MdiParent = this;
additem.Show();
untill now there is no problem but when i want to open another form by clicking any button inside the child form, i want to be child for the MDI parent but nothing happen.
i use the following code:
frm_Main main = new frm_Main();
Items.AddItemUnits itemunit = new AddItemUnits();
itemunit.MdiParent = main;
itemunit.Show();
i want to open the itemunit inside the main "which is MDI paren"
please reply me
Sayed M. Ali
Solution Developer
|
|
|
|
|
You are recreating your Mdi parent in frm_Main main = new frm_Main(); Why not remove this line, and replace itemunit.MdiParent = main; with itemunit.MdiParent = this.MdiParent;
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'll preface this by saying that I'm a Webservice novice. I get the concept, but I know next to nothing about the details. It's something I need to remedy, especially with SOA/WCF/etc. That being said...
I have two Web Site Projects. One is exposed to the other as different webservices. I have a class in the service project that I'd like to consume in the other project. This class contains properties and methods. I've noticed a few things:
- The class won't be exposed in the wsdl unless it's used by the asmx.cs file. Simply having the class in the same assembly doesn't mean anything.Is that correct?
- When I use the class as a return type of one of the service's web methods, it's defined in the wsdl as a compex type bt with no fields or methods. Is this because the service will only expose the fields of the class (i.e. not the properties or the methods)?
- Assuming the above to be true, is there any way for my consumer project to consume this class and use its methods without exposing the methods in the web service? Or am i going about this the wrng way entirely?
Thanks for your help.
|
|
|
|
|
Hi,
a mysterious Exception has occurred in one of my applications, thrown while doing or preparing a web request using a WebProxy:
"System.NotSupportedException: The ServicePointManager does not support proxies of web-proxy scheme."
I did not explicitely use a "ServicePointManager". Unfortunately I cannot backtrack where this Exception was thrown exactly.
Google did not return a usable information about this error message.
What does this message mean? Has anybody an idea?
Thanks in advance,
Alex
|
|
|
|
|
HI,
I'm building COM obejct in C++ and using it in C# and I can't figure out which type in C++ coresponds to bool type in C#. If I use bool in C++ , I allways get "expecting a type specification near "bool" " error. I tried boolean or BOOL , but any of them corresponds to bool in C# (after COM object is wrapped in .NET VS)
Do you have anty idea how what to use?
|
|
|
|
|
Hi, we're a couple of students on our internship, and we're kinda stuck in the project we're doing. I'll first try to explain what it is we are expected to make.
You have to imagine a white empty 2D paper which is virtually unlimited in size. An admin can place a question on this paper, users can then reply on the active question. The admin can also zoom in and zoom out and drag the paper around and post new questions. So we have to work with an environment that contains a fair amount of questions linked to answers. Every question can be differently scaled, so this means that you have to zoom in more on some questions than others.
Basic functionality would have to be panning the paper, by that I mean hold mouse down and dragging it to another position, thus moving all objects on the paper in that direction.
We've tried this with the following code, however the performance was really bad.
void Window_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e)<br />
{<br />
if (mbMouseDown)<br />
{<br />
Point bNew = e.GetPosition(Window);<br />
foreach (UIElement oObject in LayoutRoot.Children)<br />
{<br />
Canvas.SetTop(oObject, bNew.X - mpBegin.X);<br />
Canvas.SetLeft(oObject, bNew.Y - mpBegin.Y);<br />
}<br />
}<br />
mbMouseDown = false;<br />
}<br />
<br />
void LayoutRoot_MouseMove(object sender, System.Windows.Input.MouseEventArgs e)<br />
{<br />
if (mbMouseDown)<br />
{<br />
Point bNew = e.GetPosition(Window);<br />
foreach (UIElement oObject in LayoutRoot.Children)<br />
{<br />
Canvas.SetTop(oObject, bNew.X - mpBegin.X);<br />
Canvas.SetLeft(oObject, bNew.Y - mpBegin.Y);<br />
}<br />
}<br />
}<br />
<br />
void LayoutRoot_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)<br />
{<br />
mbMouseDown = true;<br />
mpBegin = e.GetPosition(Window);<br />
}
With the zooming we tried the scaling functionality of wpf.
private void Window_MouseWheel(object sender, MouseWheelEventArgs e)<br />
<br />
{<br />
<br />
if (e.Delta > 0)<br />
<br />
{<br />
<br />
mpScaleSize = new Point((mpScaleSize.X - 0.05), (mpScaleSize.Y - 0.05));<br />
<br />
grdCanvas.LayoutTransform = new ScaleTransform(mpScaleSize.X, mpScaleSize.Y);<br />
<br />
zoomX.Content = mpScaleSize.X.ToString();<br />
<br />
zoomY.Content = mpScaleSize.Y.ToString();<br />
<br />
}<br />
<br />
else<br />
<br />
{<br />
<br />
mpScaleSize = new Point((mpScaleSize.X + 0.05), (mpScaleSize.Y + 0.05));<br />
<br />
grdCanvas.LayoutTransform = new ScaleTransform(mpScaleSize.X, mpScaleSize.Y);<br />
<br />
zoomX.Content = mpScaleSize.X.ToString();<br />
<br />
zoomY.Content = mpScaleSize.Y.ToString();<br />
<br />
}<br />
<br />
}
This again wasn't going smoothly.
(My laptop is a IBM Thinkpad r50p, 1,7Ghrz Centrino, 1gig RAM, maybe it's just not fast enough?)
Anyway , I've posted this same question on the msdn forums. One person with little experience with the subject suggested me that I should try to work with visualBrushes and use it as some kind of view. I've been playing around with the VisualBrushes for a while now.
I've managed to get controls from code onto the VisualBrush(which is on a rectangle in the center of my app), however working with VisualBrush as some kind of view isn't working for me.What I "discovered"is that working with the viewbox property of the visualbrush might be the solution, but I can't seem to get it to work.
To my understanding the viewbox is a rectangle with it's x & y as panning values, and it's with & height as crop/stretch values (zoom).
Anyone with some experience in the area, I would really appreciate the help.
Thanks,
Tobias
|
|
|
|
|
I always meet the situation in my code. For example when filling array while parsing a text file or reading Sql query result.
I used two solutions to this:
1. at first I fill ArrayList, then copy items to the array with help of CopyTo method of ArrayList
<code>
ArrayList arr = new ArrayList();
while(reader.Read())
{
arr.Add(reader.GetString(0));
}
string[] strs = new string[arr.Count];
arr.CopyTo(strs);
... do sth
return strs;
</code>
2. create array of maximum expexcted length and then copy items to new array when first array is filled and the length is known
<code>
string[] strs = null;
using(string[] tmpArray = new string[MAX_POSSIBLE_LENGTH])
{
int i = 0;
while(reader.Read())
{
tmp[i] = reader.GetString(0);
i ++;
}
strs = new string[i];
Array.Copy(tmpArray, strs, i);
}
... do something
return strs;
</code>
Does somebody know the better solution? If there is not one which of the above is better?
Evgeny Pokhilko
C# .NET monomaniac
|
|
|
|
|
The first is obviously better. There's no other way, an ArrayList will allow you to change the size, an Array will not. I assume you're not using .NET 2.0, if you are, don't use arraylist.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|